fix(models): Update function_call provider check to exclude embedding models (#3281)

This commit is contained in:
SuYao
2025-03-13 21:35:21 +08:00
committed by GitHub
parent 95782579e7
commit a98fcfb68d
+1 -1
View File
@@ -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
}