mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: add defaultToolProtocol native for DeepSeek V3.1/V3.2 to improve tool calling reliability
When reasoning mode is enabled, DeepSeek models may not follow XML tool format correctly. Setting defaultToolProtocol to native uses OpenAI-style function calling instead, which is more reliable than XML parsing when reasoning_effort is enabled.
This commit is contained in:
parent
959d233fd7
commit
fe67da2172
2 changed files with 6 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ export const fireworksModels = {
|
|||
supportsImages: false,
|
||||
supportsPromptCache: false,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsReasoningEffort: ["low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
inputPrice: 0.56,
|
||||
|
|
@ -114,6 +115,7 @@ export const fireworksModels = {
|
|||
supportsImages: false,
|
||||
supportsPromptCache: false,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsReasoningEffort: ["low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
inputPrice: 0.56,
|
||||
|
|
|
|||
|
|
@ -214,6 +214,8 @@ describe("FireworksHandler", () => {
|
|||
contextWindow: 163840,
|
||||
supportsImages: false,
|
||||
supportsPromptCache: false,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsReasoningEffort: ["low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
inputPrice: 0.56,
|
||||
|
|
@ -237,6 +239,8 @@ describe("FireworksHandler", () => {
|
|||
contextWindow: 163840,
|
||||
supportsImages: false,
|
||||
supportsPromptCache: false,
|
||||
supportsNativeTools: true,
|
||||
defaultToolProtocol: "native",
|
||||
supportsReasoningEffort: ["low", "medium", "high"],
|
||||
reasoningEffort: "medium",
|
||||
inputPrice: 0.56,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue