shaw
9d81467937
refactor: 重构 Chat Completions 端点,采用类型安全的 Responses API 转换
将 /v1/chat/completions 端点从 ResponseWriter 劫持模式重构为独立的
类型安全转换路径,与 Anthropic Messages 端点架构对齐:
- 在 apicompat 包新增 Chat Completions 完整类型定义和双向转换器
- 新增 ForwardAsChatCompletions service 方法,走 Responses API 上游
- Handler 改为独立的账号选择/failover 循环,不再劫持 Responses handler
- 提取 handleCompatErrorResponse 为 Chat Completions 和 Messages 共用
- 删除旧的 forwardChatCompletions 直传路径及相关死代码
2026-03-11 22:15:32 +08:00
..
2026-03-11 15:04:07 +08:00
2026-03-10 11:20:10 +08:00
2026-02-02 22:13:50 +08:00
2026-03-04 11:29:31 +08:00
2026-02-28 15:01:20 +08:00
2026-01-09 18:26:32 +08:00
2026-03-09 01:18:49 +08:00
2026-03-08 14:12:17 +08:00
2026-03-08 14:12:17 +08:00
2026-02-14 11:23:10 +08:00
2026-02-07 19:04:08 +08:00
2026-03-09 19:55:18 +08:00
2026-03-10 11:20:10 +08:00
2026-02-07 22:14:07 +08:00
2026-03-09 19:55:18 +08:00
2026-03-09 19:55:18 +08:00
2026-01-06 20:31:40 +08:00
2026-03-01 15:45:44 +08:00
2026-02-07 17:12:15 +08:00
2025-12-28 17:48:52 +08:00
2026-02-28 15:01:20 +08:00
2026-03-05 16:06:05 +08:00
2026-02-23 12:45:37 +08:00
2026-02-23 12:45:37 +08:00
2026-02-12 19:01:09 +08:00
2026-03-11 22:15:32 +08:00
2026-03-05 16:46:14 +08:00
2026-02-28 15:01:20 +08:00
2026-03-09 15:08:37 +08:00
2026-02-28 19:28:08 +08:00
2026-02-28 19:28:08 +08:00
2025-12-26 16:45:40 +08:00
2025-12-31 08:50:12 +08:00
2025-12-31 08:50:12 +08:00
2026-03-04 13:54:18 +08:00
2026-03-07 21:55:38 +08:00
2026-02-28 15:01:20 +08:00
2026-03-07 21:55:38 +08:00
2026-02-28 15:01:20 +08:00
2025-12-26 16:45:40 +08:00
2026-02-02 22:13:50 +08:00
2026-02-28 15:01:20 +08:00
2026-02-28 15:01:20 +08:00
2026-02-28 15:01:20 +08:00
2026-02-02 22:13:50 +08:00
2026-03-03 01:05:11 +08:00
2026-03-05 16:06:05 +08:00