Skip to content

gproxy v2.2.2

Choose a tag to compare

@LeenHawk LeenHawk released this 31 Jul 16:13

v2.2.2

Adds native OpenAI Realtime WebSocket passthrough with routing, authentication, credential handling, model rewriting, and pre-upgrade failover; and lets the Console apply bundled OpenRouter prices to matching price rules in one click.

English

Added

  • OpenAI Realtime WebSocket passthrough. Native deployments now proxy /v1/realtime and /v1/live WebSockets through both aggregated and provider-scoped routes for OpenAI API-key and Codex OAuth providers. Sessions use the normal routing, downstream authentication, credential selection and refresh, upstream model rewrite, and failover pipeline, completing upstream handshakes before upgrading the downstream connection. Codex Realtime has been verified against api.openai.com rather than the ChatGPT backend. Providers may set settings_json.endpoints.openai_realtime as an exact endpoint override, and downstream ?key= parameters are stripped before forwarding. Edge deployments explicitly return 501 because Realtime passthrough is not supported there. Existing providers retain their stored routing rules and must reset routing defaults to receive the new Realtime cell.
  • One-click default prices. The Console price-rule form can apply bundled OpenRouter defaults for the matching model in one click. It chooses the longest matching substring and fills input, output, cache-creation (5-minute, 30-minute, and 1-hour), cache-read, and image price fields.

简体中文

新增

  • OpenAI Realtime WebSocket 透传。 Native 部署现可通过 aggregated route 与 provider-scoped route 透传 /v1/realtime/v1/live WebSocket,支持 OpenAI API key 与 Codex OAuth provider。会话复用常规的路由、下游鉴权、credential 选择与刷新、上游模型重写和 failover pipeline,并在升级下游连接前完成上游握手。Codex Realtime 已实测使用 api.openai.com,而非 ChatGPT backend。Provider 可通过 settings_json.endpoints.openai_realtime 配置精确 endpoint override;转发前会剥离下游 ?key= 参数。Edge 部署明确不支持 Realtime 透传并返回 501。已有 provider 会保留数据库中的路由规则,需要重置默认路由后才能获得新的 Realtime cell。
  • 一键应用默认价格。 Console 价格规则表单现可根据匹配的 model 一键应用内置 OpenRouter 默认价格。匹配会选择最长 substring,并填充输入、输出、Cache Creation(5 分钟、30 分钟和 1 小时)、Cache Read 与图片价格字段。