fix: app stucks at generating response state after stopped the previous session (#4662)

* chore: add OpenAI o3-mini model to ship with the app by default

* chore: should not reload model on inference parameters update

* chore: update cortex.cpp rc build
This commit is contained in:
Louis 2025-02-17 15:24:43 +07:00 committed by GitHub
parent 9dc2597540
commit e0437afb2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 10 deletions

View File

@ -108,5 +108,18 @@
"stream": true "stream": true
}, },
"engine": "openai" "engine": "openai"
},
{
"model": "o3-mini",
"object": "model",
"name": "OpenAI o3-mini",
"version": "1.0",
"description": "OpenAI most recent reasoning model, providing high intelligence at the same cost and latency targets of o1-mini.",
"format": "api",
"inference_params": {
"max_tokens": 100000,
"stream": true
},
"engine": "openai"
} }
] ]

View File

@ -1 +1 @@
1.0.10-rc10 1.0.10-rc12

View File

@ -182,7 +182,6 @@ const ThreadRightPanel = () => {
if (!activeThread || !activeAssistant) return if (!activeThread || !activeAssistant) return
setEngineParamsUpdate(true) setEngineParamsUpdate(true)
resetModel()
updateModelParameter(activeThread, { updateModelParameter(activeThread, {
params: { [key]: value }, params: { [key]: value },
@ -204,13 +203,7 @@ const ThreadRightPanel = () => {
} }
} }
}, },
[ [activeAssistant, activeThread, setEngineParamsUpdate, updateModelParameter]
activeAssistant,
activeThread,
resetModel,
setEngineParamsUpdate,
updateModelParameter,
]
) )
if (!activeThread) { if (!activeThread) {
@ -287,7 +280,10 @@ const ThreadRightPanel = () => {
<AccordionItem title={ENGINE_SETTINGS} value={ENGINE_SETTINGS}> <AccordionItem title={ENGINE_SETTINGS} value={ENGINE_SETTINGS}>
<EngineSetting <EngineSetting
componentData={settings.engineSettings} componentData={settings.engineSettings}
onValueChanged={onValueChanged} onValueChanged={(key, value) => {
resetModel()
onValueChanged(key, value)
}}
/> />
</AccordionItem> </AccordionItem>
)} )}