Merge pull request #6236 from xiaohuanxiong3/main

add tool call support for deepseek-chat、deepseek-reasoner(Only for deepsee…
This commit is contained in:
Nate Sesti 2025-07-01 18:29:06 -07:00 • committed by GitHub
commit 355ab1c5b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,7 +179,9 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
return false;
},
deepseek: (model) => {
if (model !== "deepseek-reasoner") {
// https://api-docs.deepseek.com/quick_start/pricing
// https://api-docs.deepseek.com/guides/function_calling
if (model === "deepseek-reasoner" || model === "deepseek-chat") {
return true;
}