Compare commits

..

2 Commits

Author SHA1 Message Date
754b77657b fix: new chat set input 2023-08-29 13:42:32 +08:00
a96399ee15 Merge pull request #22 from langgenius/fix/fix-parse-conversation-error
fix: log message json pares error
2023-08-28 17:34:03 +08:00

View File

@ -63,6 +63,8 @@ const Main: FC = () => {
const [conversationIdChangeBecauseOfNew, setConversationIdChangeBecauseOfNew, getConversationIdChangeBecauseOfNew] = useGetState(false)
const [isChatStarted, { setTrue: setChatStarted, setFalse: setChatNotStarted }] = useBoolean(false)
const handleStartChat = (inputs: Record<string, any>) => {
createNewChat()
setConversationIdChangeBecauseOfNew(true)
setCurrInputs(inputs)
setChatStarted()
// parse variables in introduction