mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
- 模型感知 instructions:刷新 instructions.txt 至最新 GPT-5-Codex prompt,新增 GPT-5.1 / GPT-5.2 真实 Codex 编码 agent prompt;新增 openai.CodexBaseInstructionsForModel 按模型选用(codex 系→GPT-5-Codex,gpt-5.2→GPT-5.2,gpt-5.1/gpt-5→GPT-5.1), defaultCodexSynthInstructions 改为按 model 选择 - client_metadata:OAuth /responses 请求用账号真实 openai_device_id 注入 client_metadata["x-codex-installation-id"];加法式、幂等、不覆盖既有项, 无 device_id(非 OAuth 账号)则不写入、不伪造 - anthropic 转换补全 SSE 事件 reasoning_text.delta 与 custom_tool_call_input.delta (含 custom_tool_call item 注册为 tool_use),与 chat completions 路径对齐 - 新增单元测试覆盖以上行为(apicompat / openai / service) 承接上一提交,仍为加法式改进,不改动既有可工作的请求头。