Skip to content

fix(providers): route MiMo through chat completions#264

Open
inkdust2021 wants to merge 1 commit into
Stack-Cairn:mainfrom
inkdust2021:codex/fix-mimo-chat-completions
Open

fix(providers): route MiMo through chat completions#264
inkdust2021 wants to merge 1 commit into
Stack-Cairn:mainfrom
inkdust2021:codex/fix-mimo-chat-completions

Conversation

@inkdust2021

Copy link
Copy Markdown

问题

MiMo 官方仅提供 OpenAI Chat Completions 接口,但 Codex 类型供应商默认使用 Responses API。即使用户配置的是 MiMo Token Plan,运行时仍会注入 store: true,被本地网关拒绝。

修复

  • 识别 mimo-* 模型及 MiMo 官方 API 目标。
  • 无论存量配置是否保存为 openai-responses,运行时统一切换到 openai-completions
  • 非 MiMo 模型和现有 OpenAI Responses 行为保持不变。

测试

  • 新增 Token Plan Base URL + openai-responses 存量配置回归测试。
  • GUI 前端测试 1223 项全部通过。
  • GUI 生产构建通过。
  • Biome lint 通过(仅存量 warning)。
  • macOS 应用实测 MiMo 请求成功。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant