Add provider-level round-robin proxy pools for keyless providers, with per-key and per-account overrides

オープン
#9,102 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api, backend

調査の方向性

Start from the provider-level outbound proxy introduced in #5289 and the routing discussion in #5324, which the issue cites for context. The issue names no concrete source files, so first locate where a provider's proxy is chosen per request and how streams are held open. Done means a keyless provider with a three-proxy round-robin pool sends successive requests through P1, P2, P3, P1, and an in-flight stream keeps its original proxy.

索引モデルが issue の本文から書いたものです。

説明

account-pool enhancement
Area

Proxy and routing / Dashboard

What are you trying to accomplish?

I would like to manage outbound proxies in a Proxy tab under each provider. A provider that accepts unauthenticated requests should be able to rotate through multiple proxies without registering an API key, an OAuth account, or a dummy credential.

What prevents this today?

#5289 introduced a provider-level outbound proxy. A single fixed proxy does not cover a pool of exits for one provider. #5324 discussed per-account routing and invited a smaller opt-in proposal.

What should OpenCodex do?
  • Let a provider select a fixed proxy or an ordered round-robin proxy pool.
  • For a keyless provider, choose the next proxy when a new request starts. Keep the chosen proxy for the lifetime of that request, including its stream. Concurrent requests should retain their own selection.
  • For providers that use credentials, let each API key or stored OAuth account inherit the provider default, select a fixed proxy, or select its own round-robin pool. Proxy rotation should work independently of credential rotation.
Example usage or interface

In Providers → Example → Proxy, add P1, P2, and P3 and select Round robin. With zero credentials configured, four successive requests should exit through P1, P2, P3, and P1. If the first request is still streaming when the second starts, the first stream stays on P1.

For an authenticated provider, Key A could inherit that pool while Key B stays pinned to P2.

Suggested first slice

Start with an opt-in provider-level pool and the four-request keyless example above. Per-key and per-OAuth-account overrides can build on that provider default.

主要言語
TypeScript
スター
16.9k
フォーク
1.3k
平均マージ
1日 4時間
マージ済み PR(30日)
814

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lidge-jun/opencodex のほかの issue

lidge-jun/opencodex の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。