jaeminbird
5bd07865a3
fix(anthropic): honor object tool_choice on /v1/messages
...
Anthropic sends tool_choice as an object: {"type": "auto" | "any" |
"none"} or {"type": "tool", "name": ...}. The endpoint only read the
"tool" object, so {"type": "none"} still offered the tools and
{"type": "any"} did not require a call. The object was also forwarded
to the backend unchanged, and the llama.cpp backend turns any object
tool_choice into "required", so even {"type": "auto"} forced a tool
call there. Read the object form, and forward the OpenAI equivalent.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: jaeminbird <jaeminbird@gmail.com >
2026-10-29 01:27:48 -04:00
..
2026-08-02 09:23:26 +02:00
2026-09-22 07:06:32 +00:00
2026-09-18 06:12:03 +01:00
2026-10-28 15:10:36 +01:00
2026-07-17 22:08:20 +02:00
2026-10-08 22:03:07 +02:00
2026-10-22 17:58:53 +02:00
2026-10-07 14:10:45 +02:00
2026-10-12 09:35:25 +02:00
2026-10-07 14:10:45 +02:00
2026-10-07 16:57:23 +02:00
2026-08-18 09:03:16 +02:00
2026-10-19 23:43:47 +02:00
2026-10-28 15:10:36 +01:00
2026-09-13 19:06:43 +02:00
2026-10-19 22:52:07 +02:00
2026-10-19 22:52:07 +02:00
2026-08-03 18:03:46 +02:00
2026-08-18 11:31:03 +00:00
2026-10-16 10:41:45 +02:00
2026-10-11 00:26:40 +02:00
2026-10-08 22:03:07 +02:00
2026-10-27 10:27:45 +01:00
2026-10-14 01:06:14 +02:00
2026-10-22 17:57:19 +02:00
2026-10-24 14:29:39 +02:00
2026-10-24 22:47:04 +02:00
2026-07-17 22:08:20 +02:00
2026-09-28 08:33:15 +02:00
2026-10-11 00:30:09 +02:00
2026-07-17 22:08:20 +02:00
2026-10-08 22:03:07 +02:00
2026-10-25 09:21:58 +00:00
2026-07-17 22:08:20 +02:00
2026-10-19 23:42:40 +02:00
2026-10-08 22:03:07 +02:00
2026-10-24 23:50:41 +02:00
2026-08-03 18:03:46 +02:00
2026-10-13 08:27:24 +00:00
2026-09-13 01:51:19 +02:00
2026-07-21 09:40:10 +02:00
2026-10-25 08:50:00 +00:00
2026-10-24 00:07:02 +02:00
2026-10-24 14:29:39 +02:00
2026-07-17 22:08:20 +02:00
2026-09-11 21:49:51 +00:00
2026-10-25 00:26:45 +02:00
2026-10-13 08:13:55 +00:00
2026-10-23 15:25:37 +02:00
2026-10-23 15:25:37 +02:00
2026-08-02 09:23:26 +02:00
2026-10-29 01:27:48 -04:00
2026-10-22 17:57:19 +02:00
2026-10-08 22:03:07 +02:00
2026-10-13 17:58:21 +02:00
2026-09-30 20:22:49 +02:00
2026-10-05 15:57:16 +02:00
2026-10-22 17:57:19 +02:00
2026-09-11 21:48:07 +00:00