chat defaults
This commit is contained in:
parent
d0f19b7718
commit
ff0e48c90f
1 changed files with 4 additions and 4 deletions
|
|
@ -28,8 +28,8 @@ export default function ChatPage() {
|
||||||
const [messages, setMessages] = useState<Message[]>([])
|
const [messages, setMessages] = useState<Message[]>([])
|
||||||
const [input, setInput] = useState("")
|
const [input, setInput] = useState("")
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const [endpoint, setEndpoint] = useState<EndpointType>("chat")
|
const [endpoint, setEndpoint] = useState<EndpointType>("langflow")
|
||||||
const [asyncMode, setAsyncMode] = useState(false)
|
const [asyncMode, setAsyncMode] = useState(true)
|
||||||
const [streamingMessage, setStreamingMessage] = useState<{
|
const [streamingMessage, setStreamingMessage] = useState<{
|
||||||
content: string
|
content: string
|
||||||
functionCalls: FunctionCall[]
|
functionCalls: FunctionCall[]
|
||||||
|
|
@ -509,7 +509,7 @@ export default function ChatPage() {
|
||||||
onClick={() => setAsyncMode(false)}
|
onClick={() => setAsyncMode(false)}
|
||||||
className="h-7 text-xs"
|
className="h-7 text-xs"
|
||||||
>
|
>
|
||||||
Sync
|
Streaming Off
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant={asyncMode ? "default" : "ghost"}
|
variant={asyncMode ? "default" : "ghost"}
|
||||||
|
|
@ -518,7 +518,7 @@ export default function ChatPage() {
|
||||||
className="h-7 text-xs"
|
className="h-7 text-xs"
|
||||||
>
|
>
|
||||||
<Zap className="h-3 w-3 mr-1" />
|
<Zap className="h-3 w-3 mr-1" />
|
||||||
Async
|
Streaming On
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{/* Endpoint Toggle */}
|
{/* Endpoint Toggle */}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue