Improve PromptInput component (#3266)

* allow typing while streaming + refactor props

* remove duplicate function
This commit is contained in:
Sean Hatfield
2025-02-19 07:18:55 +08:00
committed by GitHub
parent eeaa6b0151
commit 3390ccf4b1
2 changed files with 6 additions and 13 deletions

View File

@@ -282,8 +282,7 @@ export default function ChatContainer({ workspace, knownHistory = [] }) {
<PromptInput
submit={handleSubmit}
onChange={handleMessageChange}
inputDisabled={loadingResponse}
buttonDisabled={loadingResponse}
isStreaming={loadingResponse}
sendCommand={sendCommand}
attachments={files}
/>