fix(models): Update function_call provider check to exclude embedding models (#3281)
This commit is contained in:
parent
8a3bf652d3
commit
a0fde96b40
@ -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…
x
Reference in New Issue
Block a user