mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +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 provider = getProviderByModel(model)
|
||||
|
||||
if (!provider.apiKey) {
|
||||
if (provider.id !== 'ollama' && !provider.apiKey) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user