mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 02:09:03 +08:00
fix(api.ts): modify provider apiKey check to exclude 'ollama' provider
This commit is contained in:
parent
e6359d2048
commit
fe34fb3c25
@ -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