- 24 Mar, 2026 1 commit
-
-
InCerry authored
-
- 20 Mar, 2026 1 commit
-
-
Remx authored
- 接入 gpt-5.4-mini/nano 模型识别与规范化,补充默认模型列表 - 增加 gpt-5.4-mini/nano 输入/缓存命中/输出价格与计费兜底逻辑 - 同步前端模型白名单与 OpenCode 配置 - 补充 service tier(priority/flex) 计费回归测试
-
- 19 Mar, 2026 1 commit
-
-
Remx authored
- 接入 gpt-5.4-mini/nano 模型识别与规范化,补充默认模型列表 - 增加 gpt-5.4-mini/nano 输入/缓存命中/输出价格与计费兜底逻辑 - 同步前端模型白名单与 OpenCode 配置 - 补充 service tier(priority/flex) 计费回归测试
-
- 16 Mar, 2026 1 commit
-
-
Elysia authored
OAuth upstreams (ChatGPT) reject requests containing role:"system" in the input array with HTTP 400 "System messages are not allowed". Extract such items before forwarding and merge their content into the top-level instructions field, prepending to any existing value. Co-Authored-By:Claude Sonnet 4.6 <noreply@anthropic.com>
-
- 14 Mar, 2026 1 commit
-
-
ius authored
-
- 12 Mar, 2026 1 commit
-
-
yexueduxing authored
-
- 11 Mar, 2026 1 commit
-
-
CoolCoolTomato authored
-
- 10 Mar, 2026 1 commit
-
-
rickylin047 authored
The ChatGPT backend-api codex/responses endpoint requires `input` to be an array, but the OpenAI Responses API spec allows it to be a plain string. When a client sends a string input, sub2api now converts it to the expected message array format. Empty/whitespace-only strings become an empty array to avoid triggering a 400 "Input must be a list" error.
-
- 07 Mar, 2026 1 commit
-
-
shaw authored
-
- 06 Mar, 2026 2 commits
-
-
神乐 authored
-
yangjianbo authored
- 接入 gpt-5.4 模型识别与规范化,补充默认模型列表 - 增加 gpt-5.4 输入/缓存命中/输出价格与计费兜底逻辑 - 同步前端模型白名单与 OpenCode 上下文窗口(1050000/128000) Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit 924476dcac6181cd0f3ee731ec7b73672ff03793)
-
- 16 Feb, 2026 1 commit
-
-
0-don authored
-
- 13 Feb, 2026 1 commit
-
-
yangjianbo authored
-
- 07 Feb, 2026 3 commits
-
-
erio authored
Key changes: - Upgrade model mapping: Opus 4.5 → Opus 4.6-thinking with precise matching - Unified rate limiting: scope-level → model-level with Redis snapshot sync - Load-balanced scheduling by call count with smart retry mechanism - Force cache billing support - Model identity injection in prompts with leak prevention - Thinking mode auto-handling (max_tokens/budget_tokens fix) - Frontend: whitelist mode toggle, model mapping validation, status indicators - Gemini session fallback with Redis Trie O(L) matching - Ops: enhanced concurrency monitoring, account availability, retry logic - Migration scripts: 049-051 for model mapping unification
-
yangjianbo authored
- 不再从 GitHub 拉取 opencode codex_header.txt\n- 删除 ~/.opencode 缓存与异步刷新逻辑\n- 所有 instructions 统一使用内置 codex_cli_instructions.md
-
yangjianbo authored
- Codex CLI 请求仅使用内置 instructions,不再读取 opencode 缓存/回源\n- 新增 gateway.force_codex_cli(环境变量 GATEWAY_FORCE_CODEX_CLI)\n- ForceCodexCLI=true 时转发上游强制 User-Agent=codex_cli_rs/0.0.0\n- 更新 deploy 示例配置
-
- 06 Feb, 2026 1 commit
-
-
yangjianbo authored
-
- 05 Feb, 2026 1 commit
-
-
yangjianbo authored
-
- 03 Feb, 2026 1 commit
-
-
liuxiongfeng authored
- 修改 applyCodexOAuthTransform 函数签名,增加 isCodexCLI 参数 - 移除 && !isCodexCLI 条件,对所有 OAuth 请求统一处理 - 新增 applyInstructions/applyCodexCLIInstructions/applyOpenCodeInstructions 辅助函数 - 新增 isInstructionsEmpty 函数检查 instructions 字段是否为空 - 添加 Codex CLI 和非 Codex CLI 场景的测试用例 逻辑说明: - Codex CLI + 有 instructions: 保持不变 - Codex CLI + 无 instructions: 补充 opencode 指令 - 非 Codex CLI: 使用 opencode 指令覆盖
-
- 02 Feb, 2026 1 commit
-
-
song authored
-
- 17 Jan, 2026 1 commit
-
-
IanShaw027 authored
- codex_transform: 过滤无效工具,支持 Responses-style 和 ChatCompletions-style 格式 - tool_corrector: 添加 fetch 工具映射,修正 bash/edit 参数命名规范
-
- 14 Jan, 2026 2 commits
-
-
yangjianbo authored
-
yangjianbo authored
避免上游 Store 必须为 false 的错误 仅在缺失或 true 时写回 store 测试: go test ./internal/service -run TestApplyCodexOAuthTransform 测试: make test-backend(golangci-lint 已单独执行)
-
- 13 Jan, 2026 3 commits
-
-
yangjianbo authored
完善 function_call_output 续链校验与引用匹配 续链场景强制 store=true,过滤 input 时避免副作用 补充续链判断与过滤相关单元测试 测试: go test ./...
-
ianshaw authored
## 主要改动 1. **模型规范化扩展到所有账号** - 将 Codex 模型规范化(如 gpt-5-nano → gpt-5.1)应用到所有 OpenAI 账号类型 - 不再仅限于 OAuth 非 CLI 请求 - 解决 Codex CLI 使用 ChatGPT 账号时的模型兼容性问题 2. **reasoning.effort 参数规范化** - 自动将 `minimal` 转换为 `none` - 解决 gpt-5.1 模型不支持 `minimal` 值的问题 3. **Session/Conversation ID fallback 机制** - 从请求体多个字段提取 session_id/conversation_id - 优先级:prompt_cache_key → session_id → conversation_id → previous_response_id - 支持 Codex CLI 的会话保持 4. **Tool Call ID fallback** - 当 call_id 为空时使用 id 字段作为 fallback - 确保 tool call 输出能正确匹配 - 保留 item_reference 类型的 items 5. **Header 优化** - 添加 conversation_id 到允许的 headers - 移除删除 session headers 的逻辑 ## 相关 Issue - 参考 OpenCode issue #3118 关于 item_reference 的讨论
-
IanShaw027 authored
## 问题 - 使用OpenAI API key时,opencode客户端可能因instructions不兼容而报错 - 依赖外部GitHub获取instructions,网络故障时会失败 ## 解决方案 1. 将codex CLI标准instructions嵌入到项目中 2. 实现自动fallback机制: - 优先使用opencode GitHub的instructions - 失败时自动fallback到本地codex CLI instructions 3. 添加辅助函数用于错误检测和手动替换 ## 改动 - 新增: internal/service/prompts/codex_cli_instructions.md - 从codex项目复制的标准instructions - 使用go:embed嵌入到二进制文件 - 修改: internal/service/openai_codex_transform.go - 添加embed支持 - 增强getOpenCodeCodexHeader()的fallback逻辑 - 新增GetCodexCLIInstructions()公开函数 - 新增ReplaceWithCodexInstructions()用于手动替换 - 新增IsInstructionError()用于错误检测 ## 优势 - 零停机:GitHub不可用时仍能正常工作 - 离线可用:不依赖外部网络 - 兼容性:使用标准codex CLI instructions - 部署简单:instructions嵌入到二进制文件
-
- 11 Jan, 2026 1 commit
-
-
cyhhao authored
-
- 10 Jan, 2026 2 commits
- 09 Jan, 2026 2 commits