mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 15:49:29 +08:00
fix(models): Update function_call provider check to exclude embedding models (#3281)
This commit is contained in:
parent
da835570f9
commit
d74e585f1f
@ -185,7 +185,7 @@ export function isFunctionCallingModel(model: Model): boolean {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['gemini', 'deepseek', 'anthropic'].includes(model.provider)) {
|
if (['gemini', 'deepseek', 'anthropic'].includes(model.provider) && !EMBEDDING_REGEX.test(model.id)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user