fix: provider activation status (#5081)
* fix: provider activation status * fix: thread assistant model
This commit is contained in:
parent
c324ed592a
commit
994de67f9e
@ -55,7 +55,7 @@ export const useModelProvider = create<ModelProviderState>()(
|
||||
}),
|
||||
api_key: existingProvider?.api_key || provider.api_key,
|
||||
base_url: existingProvider?.base_url || provider.base_url,
|
||||
active: existingProvider?.active || true,
|
||||
active: existingProvider ? existingProvider?.active : false,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@ -48,12 +48,11 @@ export const createThread = async (thread: Thread): Promise<Thread> => {
|
||||
...thread,
|
||||
assistants: [
|
||||
{
|
||||
...(thread.assistants?.[0] ?? defaultAssistant),
|
||||
model: {
|
||||
id: thread.model?.id ?? '*',
|
||||
engine: thread.model?.provider ?? 'llama.cpp',
|
||||
},
|
||||
id: 'jan',
|
||||
name: 'Jan',
|
||||
},
|
||||
],
|
||||
metadata: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user