辰ing
bd2aafb8fc
feat(translator): custom 工具调用以 custom_tool_call item 回放给客户端
上游模型对 custom(freeform)工具的调用经 chat completions 返回为
function call(arguments 为 {"input": ...}),但 Codex Desktop 仅
识别 custom_tool_call item 形态。
响应方向按原始请求中声明为 type=custom 的工具名(顶层 tools 与
additional_tools,流开始时缓存于状态)区分处理:
- 流式:output_item.added(type=custom_tool_call)→
custom_tool_call_input.done → output_item.done;JSON arguments
增量无法映射为 freeform input 增量,故 custom 工具不发
arguments delta,完整 input 随 done 事件一次性下发
- response.completed 与非流式输出同样产出 custom_tool_call item,
input 从 {"input": ...} 包装中解出
Ref #4219
2026-07-12 20:39:55 +08:00
..
2026-05-08 11:46:46 +08:00
2026-07-11 02:50:23 +08:00
2026-07-11 12:15:55 +08:00
2025-09-26 00:54:52 +08:00
2025-11-13 08:38:03 +08:00
2026-06-23 14:57:53 +08:00
2026-07-11 02:50:23 +08:00
2026-07-08 00:21:03 +08:00
2026-07-07 02:39:13 +08:00
2026-06-23 23:27:11 +08:00
2026-06-28 21:19:34 +08:00
2026-06-13 01:10:27 +08:00
2026-06-12 23:15:00 +08:00
2026-06-18 13:33:10 +08:00
2026-06-26 12:05:07 +08:00
2026-06-12 23:15:00 +08:00
2026-07-08 16:47:37 +08:00
2026-06-29 11:54:26 +08:00
2026-06-29 09:43:40 +08:00
2026-07-11 00:49:30 +08:00
2026-07-10 14:31:53 +08:00
2026-07-12 20:27:51 +08:00
2026-07-04 08:49:59 +08:00
2026-06-23 14:33:27 +08:00
2026-06-23 23:21:33 +08:00
2026-07-10 00:12:18 +08:00
2026-07-12 20:39:55 +08:00
2026-07-11 02:50:23 +08:00
2026-07-09 22:39:59 +08:00
2026-07-09 22:39:59 +08:00
2026-01-28 10:58:35 +08:00