server auth stuff, prooompt engineering
This commit is contained in:
@@ -59,7 +59,7 @@ export default function ChatInterface({ sessionId }: ChatInterfaceProps) {
|
||||
})
|
||||
const handleSend = () => {
|
||||
const text = input.trim()
|
||||
if (!text || status != 'ready') return
|
||||
if (!text || status != 'ready' || sessionId == undefined) return
|
||||
setInput('')
|
||||
sendMessage({ text })
|
||||
addMessage({
|
||||
@@ -140,7 +140,7 @@ export default function ChatInterface({ sessionId }: ChatInterfaceProps) {
|
||||
<div className='flex flex-col gap-2'>
|
||||
<Button
|
||||
onClick={handleSend}
|
||||
disabled={status != "ready" || !input.trim()}
|
||||
disabled={status != "ready" || !input.trim() || sessionId == undefined}
|
||||
>
|
||||
Send
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user