mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +08:00
fix(api.ts): modify provider apiKey check to exclude 'ollama' provider
This commit is contained in:
parent
953ae8a46b
commit
06a5327b52
@ -67,7 +67,7 @@ export async function fetchMessagesSummary({ messages, assistant }: { messages:
|
|||||||
const model = getTopNamingModel() || assistant.model || getDefaultModel()
|
const model = getTopNamingModel() || assistant.model || getDefaultModel()
|
||||||
const provider = getProviderByModel(model)
|
const provider = getProviderByModel(model)
|
||||||
|
|
||||||
if (!provider.apiKey) {
|
if (provider.id !== 'ollama' && !provider.apiKey) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user