Merge pull request #4135 from janhq/fix/default-local-model

fix: default local model from starter screen
This commit is contained in:
Louis 2024-11-27 09:02:34 +07:00 committed by GitHub
commit 943b034c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,9 +68,9 @@ const ThreadLeftPanel = () => {
threadDataReady && threadDataReady &&
assistants.length > 0 && assistants.length > 0 &&
threads.length === 0 && threads.length === 0 &&
(recommendedModel || downloadedModels[0]) (downloadedModels[0] || recommendedModel)
) { ) {
const model = recommendedModel || downloadedModels[0] const model = downloadedModels[0] || recommendedModel
requestCreateNewThread(assistants[0], model) requestCreateNewThread(assistants[0], model)
} else if (threadDataReady && !activeThreadId) { } else if (threadDataReady && !activeThreadId) {
setActiveThread(threads[0]) setActiveThread(threads[0])