Unverified Commit 7bfdca7a authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix: embeded chat app input (#2159)

parent 48d5628f
...@@ -385,6 +385,7 @@ const Main: FC<IMainProps> = ({ ...@@ -385,6 +385,7 @@ const Main: FC<IMainProps> = ({
const [messageTaskId, setMessageTaskId] = useState('') const [messageTaskId, setMessageTaskId] = useState('')
const [hasStopResponded, setHasStopResponded, getHasStopResponded] = useGetState(false) const [hasStopResponded, setHasStopResponded, getHasStopResponded] = useGetState(false)
const [shouldReload, setShouldReload] = useState(false) const [shouldReload, setShouldReload] = useState(false)
const [userQuery, setUserQuery] = useState('')
const [visionConfig, setVisionConfig] = useState<VisionSettings>({ const [visionConfig, setVisionConfig] = useState<VisionSettings>({
enabled: false, enabled: false,
number_limits: 2, number_limits: 2,
...@@ -622,6 +623,8 @@ const Main: FC<IMainProps> = ({ ...@@ -622,6 +623,8 @@ const Main: FC<IMainProps> = ({
<div className='h-full overflow-y-auto' ref={chatListDomRef}> <div className='h-full overflow-y-auto' ref={chatListDomRef}>
<Chat <Chat
chatList={chatList} chatList={chatList}
query={userQuery}
onQueryChange={setUserQuery}
onSend={handleSend} onSend={handleSend}
isHideFeedbackEdit isHideFeedbackEdit
onFeedback={handleFeedback} onFeedback={handleFeedback}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment