galiehneh
998bb3d975
fix(tools): scope Claude tool type defaulting to gateways that need it ( #3905 )
...
defaultClaudeToolType() stamped tools[].type = "custom" onto every
Claude-format request carrying tools since e08ac6da . That satisfied
MiniMax (error 2013) but broke Anthropic-compatible endpoints that only
accept the legacy typeless tool shape. DeepSeek's endpoint
(api.deepseek.com/anthropic/v1/messages) whitelists its tool `type` enum
to the web_search_* variants and answers HTTP 400 "unknown variant
`custom`", so every Claude Code request routed to a DeepSeek connection
failed and surfaced as a persistent 503.
Run the defaulting only when the target provider declares the new
requireClaudeToolType quirk (MiniMax, MiniMax-CN). Add
shouldDefaultClaudeToolType(provider, finalFormat, tools, PROVIDERS) in
translator/concerns/toolCall.js so the gate is unit-testable, and cover
MiniMax keeping the explicit type, DeepSeek/Anthropic staying typeless,
non-Claude formats and tool-less requests never defaulting.
Effectively a no-op for MiniMax and a restore of the pre-e08ac6da
behaviour everywhere else. Another strict gateway now only needs the same
one-line quirk instead of a global behavioural change.
2026-09-10 23:03:53 +07:00
..
2026-07-19 16:29:55 +07:00
2026-06-29 15:29:49 +07:00
2026-07-19 16:29:55 +07:00
2026-08-14 16:32:54 +07:00
2026-07-16 16:15:24 +07:00
2026-09-09 09:57:13 +07:00
2026-09-10 22:48:28 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-06-14 18:49:38 +07:00
2026-07-29 18:10:09 +07:00
2026-07-29 18:10:09 +07:00
2026-06-14 18:49:38 +07:00
2026-06-26 12:03:58 +07:00
2026-07-29 18:10:09 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-09-02 20:42:53 +07:00
2026-09-10 22:48:28 +07:00
2026-09-10 22:48:28 +07:00
2026-08-05 13:13:54 +07:00
2026-09-10 21:57:49 +07:00
2026-08-05 10:52:03 +07:00
2026-09-10 22:06:48 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-07-20 15:39:55 +07:00
2026-06-14 18:49:38 +07:00
2026-09-10 22:26:44 +07:00
2026-07-30 09:43:55 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-06-14 18:49:38 +07:00
2026-07-10 11:29:48 +07:00
2026-06-15 11:38:43 +07:00
2026-06-14 18:49:38 +07:00
2026-08-14 16:21:11 +07:00
2026-06-16 23:32:28 +07:00
2026-09-03 09:13:45 +07:00
2026-07-15 17:34:08 +07:00
2026-06-15 11:38:43 +07:00
2026-09-05 21:03:02 +07:00
2026-09-05 21:03:02 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-07-16 15:33:19 +07:00
2026-06-14 18:49:38 +07:00
2026-09-02 20:04:35 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 18:18:04 +07:00
2026-09-10 18:53:50 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 18:10:09 +07:00
2026-06-29 15:12:18 +07:00
2026-08-13 17:53:44 +07:00
2026-07-29 18:09:35 +07:00
2026-07-29 19:34:14 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 18:10:09 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 18:10:09 +07:00
2026-09-10 23:03:53 +07:00
2026-09-10 23:03:53 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 18:10:09 +07:00
2026-06-15 11:38:43 +07:00
2026-06-14 18:49:38 +07:00
2026-07-29 20:21:27 +07:00
2026-06-14 18:49:38 +07:00
2026-08-28 16:04:45 +07:00
2026-09-03 10:13:15 +07:00
2026-09-10 22:06:48 +07:00
2026-09-10 21:08:32 +07:00
2026-09-03 09:24:18 +07:00
2026-09-10 22:05:22 +07:00
2026-07-10 11:57:15 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-07-30 09:43:55 +07:00
2026-09-03 23:02:52 +07:00
2026-09-10 18:53:50 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-07-29 18:10:09 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-07-10 11:29:06 +07:00
2026-08-05 13:38:13 +07:00
2026-08-05 13:38:13 +07:00
2026-08-05 13:38:13 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 18:18:04 +07:00
2026-06-14 18:49:38 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 18:10:09 +07:00
2026-06-14 18:49:38 +07:00
2026-09-03 09:59:30 +07:00
2026-06-15 11:38:43 +07:00
2026-06-15 11:38:43 +07:00
2026-07-25 17:25:19 +07:00
2026-06-26 11:37:44 +07:00
2026-06-15 18:18:04 +07:00
2026-06-14 18:49:38 +07:00
2026-09-10 22:05:22 +07:00
2026-06-14 18:49:38 +07:00
2026-06-14 18:49:38 +07:00
2026-07-25 17:25:19 +07:00
2026-08-27 17:52:01 +07:00
2026-08-05 11:46:23 +07:00
2026-07-03 11:03:18 +07:00
2026-08-27 16:10:00 +07:00
2026-06-15 11:38:43 +07:00
2026-07-29 21:05:23 +07:00