Commit d0684a09 authored by Joel's avatar Joel

fix: switch conversation

parent ba9e2ea9
...@@ -7,7 +7,6 @@ import { ChevronDownIcon } from '@heroicons/react/24/outline' ...@@ -7,7 +7,6 @@ import { ChevronDownIcon } from '@heroicons/react/24/outline'
import ModelIcon from '@/app/components/app/configuration/config-model/model-icon' import ModelIcon from '@/app/components/app/configuration/config-model/model-icon'
import { UNIVERSAL_CHAT_MODEL_LIST as MODEL_LIST } from '@/config' import { UNIVERSAL_CHAT_MODEL_LIST as MODEL_LIST } from '@/config'
console.log(MODEL_LIST)
export type IModelConfigProps = { export type IModelConfigProps = {
modelId: string modelId: string
onChange: (model: string) => void onChange: (model: string) => void
......
...@@ -229,6 +229,7 @@ const Main: FC<IMainProps> = () => { ...@@ -229,6 +229,7 @@ const Main: FC<IMainProps> = () => {
setConversationIdChangeBecauseOfNew(false) setConversationIdChangeBecauseOfNew(false)
} }
// trigger handleConversationSwitch // trigger handleConversationSwitch
setCurrConversationId(id, APP_ID)
setIsShowSuggestion(false) setIsShowSuggestion(false)
hideSidebar() hideSidebar()
} }
......
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