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 8a3bf652d3
commit a0fde96b40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}