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