Skip to content

OmniProxy v1.2.2

Choose a tag to compare

@github-actions github-actions released this 05 Jul 10:29
· 66 commits to master since this release

v1.2.2 - Model routing, client setup, and release hardening / 模型路由、客户端配置与发布加固

This stable release consolidates the validated v1.2.2 beta line. It separates one-click client setup from backend gateway routing, adds model-level backend chains, improves Codex and Claude Code official model defaults, and hardens beta/stable release assets and update diagnostics.

本正式版汇总已验证的 v1.2.2 beta 版本线:明确一键客户端配置与后端网关路由的职责边界,新增按模型配置后端链,优化 Codex 与 Claude Code 官方默认模型,并加固 beta/正式版发布附件和更新诊断。

Features / 新特性

  • Model-level gateway routing: Added model routes that map a client-sent model name to a primary backend and ordered fallback backends.
    • 模型级网关路由:新增按模型名匹配的路由,可为客户端发送的模型配置主后端和有序备用后端。
  • Client setup separation: One-click setup now controls which model a coding tool sends; Gateway Routing controls which backend serves that model.
    • 客户端配置职责分离:一键配置只控制编程工具发送的模型;网关路由负责该模型使用哪个后端。
  • Codex multi-model setup: Codex one-click setup supports up to four selected models and writes generated profile files for them.
    • Codex 多模型配置:Codex 一键配置最多支持 4 个模型,并写入对应的生成配置文件。
  • Official model defaults: Codex defaults to GPT-5.5, GPT-5.4, and GPT-5.4 mini; Claude Code defaults to Anthropic's official default alias.
    • 官方模型默认值:Codex 默认选择 GPT-5.5、GPT-5.4 和 GPT-5.4 mini;Claude Code 默认使用 Anthropic 官方 default 别名。
  • DeepSeek 1M option: Added a distinct deepseek-v4-pro[1m] client model for Claude Code 1M context activation.
    • DeepSeek 1M 选项:新增独立的 deepseek-v4-pro[1m] 客户端模型,用于激活 Claude Code 1M 上下文。

UX / 体验优化

  • Automatic credential matching: Gateway route credential selectors default to automatic matching, so OmniProxy can choose a usable credential type for the backend.
    • 凭据自动匹配:网关路由凭据选择默认自动匹配,由 OmniProxy 根据后端可用凭据选择类型。
  • Preserved route edits: Unsaved gateway route edits are preserved across page navigation and refreshes triggered by other actions.
    • 保留未保存路由编辑:切换页面或其他操作触发刷新时,会保留尚未保存的网关路由修改。
  • Simplified routing page: The model routing page now follows a model-first flow: search/select model, choose primary backend, then add ordered fallback backends.
    • 简化路由页面:模型路由页改成模型优先流程:搜索/选择模型、选择主后端、再添加有序备用后端。
  • Pure route browsing: Opening the route page or switching selected models no longer creates hidden route entries until the user edits the route.
    • 无副作用浏览路由:打开路由页或切换模型不会隐式创建配置,只有实际编辑时才写入草稿。

Bug Fixes / 问题修复

  • Codex automatic credentials: Codex routes in automatic credential mode prefer active Codex auth.json credentials, but fall back to any active OpenAI credential before using low-quota credentials.
    • Codex 自动凭据:Codex 自动凭据模式会优先使用活跃的 Codex auth.json,但会先回退到任意活跃 OpenAI 凭据,再考虑低额度凭据。
  • Credential selection persistence: Fixed selected credential types such as Codex auth.json reverting to API key after navigating away and back.
    • 凭据选择持久性:修复选择 Codex auth.json 等凭据类型后,切换页面再回来又变回 API Key 的问题。
  • DeepSeek model identity: deepseek-v4-pro[1m] is preserved as an independent client-side model route key while upstream DeepSeek requests normalize to deepseek-v4-pro.
    • DeepSeek 模型身份deepseek-v4-pro[1m] 会作为独立客户端模型路由键保存,上游 DeepSeek 请求仍归一化为 deepseek-v4-pro
  • Quota and routing guardrails: Fixed model-aware routing edge cases and low-quota selected-account switching behavior found during the beta line.
    • 额度与路由保护:修复 beta 验证中发现的按模型路由边界和已选账号低额度切换问题。

Release & Update / 发布与更新

  • macOS DMG assets: Beta and stable releases now publish unsigned universal macOS DMG assets and SHA256 checksum files.
    • macOS DMG 附件:beta 和正式版发布会附加未签名 universal macOS DMG 及 SHA256 校验文件。
  • Release workflow validation: Release builds run line-limit checks, backend tests, and frontend tests before packaging assets.
    • 发布流程验证:发布构建在打包前会运行行数限制检查、后端测试和前端测试。
  • Update diagnostics: Added user-facing update diagnostics and a release checklist covering beta validation, install/update/uninstall checks, and asset verification.
    • 更新诊断:新增面向用户的更新诊断和发布检查清单,覆盖 beta 验证、安装/更新/卸载检查和附件校验。

Breaking Changes / 不兼容更新

  • None / 无

Validation / 验证

  • go test ./...
  • cmd /c npm test
  • cmd /c npm run build
  • node scripts/check-lines.mjs
  • git diff --check
  • GitHub Actions release builds for v1.2.2-beta.1 through v1.2.2-beta.7

Full Changelog / 完整更新日志: v1.2.1...v1.2.2