Skip to content

Commit bbd82e7

Browse files
authored
Merge pull request #870 from olddonkey/codex/572-sambanova-nebius-model-apis
feat(providers): add SambaNova and Nebius presets
2 parents efdfd1c + 4c9c64b commit bbd82e7

19 files changed

Lines changed: 769 additions & 24 deletions

File tree

‎docs-site/src/content/docs/getting-started/quickstart.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ocx init
1313

1414
`ocx init` walks you through:
1515

16-
1. **Pick a provider** — choose one of the 70 built-in registry presets or `custom` to type a base
16+
1. **Pick a provider** — choose one of the 72 built-in registry presets or `custom` to type a base
1717
URL and adapter.
1818
2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`.
1919
3. **Default model** — for key, local, and custom providers, accept the preset or enter a model id.

‎docs-site/src/content/docs/guides/providers.md‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The ChatGPT passthrough catalog also layers in the bare GPT-5.6 Sol/Terra/Luna s
8989

9090
## 2. Account login (OAuth)
9191

92-
Six provider presets use OAuth login — plus GitHub Copilot via an experimental unofficial
92+
Seven provider presets use OAuth login — plus GitHub Copilot via an experimental unofficial
9393
device-flow bridge. opencodex stores their credentials in
9494
`~/.opencodex/auth.json` and refreshes them automatically. `chatgpt` is also accepted by the login
9595
CLI; it acquires a ChatGPT credential while creating a `forward`-mode provider entry.
@@ -101,6 +101,7 @@ ocx login kimi # Moonshot Kimi
101101
ocx login kiro # import kiro-cli credentials (or token fallback)
102102
ocx login google-antigravity
103103
ocx login cursor # standalone Cursor PKCE login
104+
ocx login command-code # Command Code browser OAuth (or import ~/.commandcode/auth.json)
104105
ocx login github-copilot # GitHub device flow → Copilot token (Copilot Pro/Business)
105106
ocx login chatgpt # standalone ChatGPT OAuth login
106107
ocx logout <provider>
@@ -216,7 +217,7 @@ selectors, then retry. Signing in from a machine with no existing `kiro-cli` ses
216217

217218
## 3. API-key catalog
218219

219-
opencodex ships 70 built-in presets: 58 key-based, eight OAuth, three local, and one default
220+
opencodex ships 72 built-in presets: 60 key-based, eight OAuth, three local, and one default
220221
ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard,
221222
validates the key, and stores it; validation is provider-specific. Notable entries:
222223

@@ -252,6 +253,8 @@ free-experimentation model.
252253
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
253254
| Baseten Model APIs | `https://inference.baseten.co/v1` |
254255
| Command Code | `https://api.commandcode.ai/provider/v1` |
256+
| SambaNova Cloud | `https://api.sambanova.ai/v1` |
257+
| Nebius Token Factory | `https://api.tokenfactory.nebius.com/v1` |
255258
| Together | `https://api.together.xyz/v1` |
256259
| Fireworks | `https://api.fireworks.ai/inference/v1` |
257260
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -308,6 +311,20 @@ account-scoped and comes from the authenticated discovery endpoint after login.
308311
configured Bearer key. Create keys at
309312
[Command Code Studio](https://commandcode.ai/studio/).
310313

314+
**SambaNova Cloud discovery.** The preset reads SambaNova Cloud's public `/v1/models` list from the fixed API
315+
host, preserves provider-native ids, and caps discovery at 128 KiB and 128 raw rows. Because the
316+
catalog is unauthenticated, the CLI login flow reports the key as unverifiable instead of treating
317+
the public response as proof. Chat requests still use the configured Bearer key and disable parallel
318+
function calls, which SambaNova does not yet support. Private SambaStudio deployment endpoints are
319+
out of scope. Create keys in
320+
[SambaNova Cloud](https://cloud.sambanova.ai/apis).
321+
322+
**Nebius Token Factory discovery.** The preset requests the authenticated verbose model catalog and
323+
keeps only rows whose architecture produces text, excluding embedding and image-generation models.
324+
It preserves slash-containing native ids plus reported context and input-modality metadata, and caps
325+
discovery at 512 KiB and 512 raw rows. Dedicated deployment hosts are out of scope. Create keys in
326+
[Nebius Token Factory](https://tokenfactory.nebius.com).
327+
311328
> **Baseten scope:** The preset covers Baseten's shared [Model APIs](https://docs.baseten.co/inference/model-apis/overview)
312329
> only. Use a personal [API key](https://docs.baseten.co/organization/api-keys) for local use, or a team key
313330
> with **Call Model APIs** access for shared/production use. Dedicated Truss `predict` endpoints use different

‎docs-site/src/content/docs/ja/getting-started/quickstart.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ ocx init
1313

1414
`ocx init` では次の手順を説明します。
1515

16-
1. **プロバイダーを選択してください** — 70 の組み込みレジストリ プリセットのいずれか、または `custom` を選択してベースを入力します
17-
URLとアダプター。
16+
1. **プロバイダーを選択してください** — 72 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。
1817
2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。
1918
3. **デフォルト モデル** — キー、ローカル、カスタム プロバイダーの場合は、プリセットを受け入れるか、モデル ID を入力します。
2019
4. **プロキシ ポート** — デフォルトは `10100` です。

‎docs-site/src/content/docs/ja/guides/providers.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ ChatGPT パススルーカタログには GPT-5.6 Sol/Terra/Luna の名前空間
8484

8585
## 2. アカウントログイン(OAuth)
8686

87-
OAuth ログインを使うプロバイダープリセットは 6 つで、これに実験的な非公式デバイスフロー
87+
OAuth ログインを使うプロバイダープリセットは 7 つで、これに実験的な非公式デバイスフロー
8888
ブリッジ経由の GitHub Copilot が加わります。認証情報は `~/.opencodex/auth.json` に保存され、
8989
自動更新されます。ログイン CLI は `chatgpt` も受け付けます。このコマンドは ChatGPT 認証情報を
9090
発行し `forward` モードのプロバイダーエントリを作成します。
@@ -96,6 +96,7 @@ ocx login kimi # Moonshot Kimi
9696
ocx login kiro # kiro-cli 認証情報の取り込み(トークンフォールバック対応)
9797
ocx login google-antigravity
9898
ocx login cursor # Cursor 専用 PKCE ログイン
99+
ocx login command-code # Command Code のブラウザ OAuth (または ~/.commandcode/auth.json を取り込み)
99100
ocx login github-copilot # GitHub デバイスフロー → Copilot トークン (Copilot Pro/Business)
100101
ocx login chatgpt # 別途 ChatGPT OAuth ログイン
101102
ocx logout <provider>
@@ -143,7 +144,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht
143144

144145
## 3. API キーカタログ
145146

146-
opencodex には組み込みプリセットが 70 個含まれています。キー方式 58、OAuth 8、ローカル 3、
147+
opencodex には組み込みプリセットが 72 個含まれています。キー方式 60、OAuth 8、ローカル 3、
147148
デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、
148149
入力したキーを検証した後保存します(検証はプロバイダー固有です)。主な項目は以下のとおりです:
149150

@@ -179,6 +180,8 @@ Cline IDE/CLI のみで API からは使えません。`minimax/minimax-m2.5`
179180
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
180181
| Baseten Model APIs | `https://inference.baseten.co/v1` |
181182
| Command Code | `https://api.commandcode.ai/provider/v1` |
183+
| SambaNova Cloud | `https://api.sambanova.ai/v1` |
184+
| Nebius Token Factory | `https://api.tokenfactory.nebius.com/v1` |
182185
| Together | `https://api.together.xyz/v1` |
183186
| Fireworks | `https://api.fireworks.ai/inference/v1` |
184187
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -229,6 +232,19 @@ CLI 資格情報の取り込みも可能)。モデルカタログはアカウン
229232
discovery エンドポイントから取得します。チャットリクエストは設定済みの bearer キーを使います。
230233
キーは [Command Code Studio](https://commandcode.ai/studio/) で作成します。
231234

235+
**SambaNova Cloud の discovery:** preset は固定 API ホスト上の SambaNova Cloud の公開 `/v1/models` 一覧を読み、
236+
プロバイダー固有の ID を保持し、discovery を 128 KiB と raw 128 行に制限します。カタログは認証不要のため、
237+
CLI の login flow は公開レスポンスをキーの有効性の証拠にせず、キーを検証不能として報告します。chat リクエストは
238+
引き続き設定済み Bearer キーを使い、SambaNova がまだ対応していない並列 function call は無効にします。
239+
非公開の SambaStudio deployment endpoint は対象外です。キーは
240+
[SambaNova Cloud](https://cloud.sambanova.ai/apis) で作成します。
241+
242+
**Nebius Token Factory の discovery:** preset は認証付きの verbose モデルカタログを取得し、architecture
243+
が text を出力する行だけを残して embedding と image-generation モデルを除外します。スラッシュを含む
244+
ネイティブ ID と、報告された context / input modality metadata を保持し、discovery を 512 KiB と raw
245+
512 行に制限します。dedicated deployment のホストは対象外です。キーは
246+
[Nebius Token Factory](https://tokenfactory.nebius.com) で作成します。
247+
232248
> **Baseten の対象範囲:** このプリセットは Baseten の共有 [Model APIs](https://docs.baseten.co/inference/model-apis/overview)
233249
> のみを対象とします。ローカル利用では個人の [API キー](https://docs.baseten.co/organization/api-keys)を、
234250
> 共有/本番利用では **Call Model APIs** 権限を持つチームキーを使用してください。専用 Truss `predict`

‎docs-site/src/content/docs/ko/getting-started/quickstart.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ocx init
1313

1414
`ocx init`은 다음 과정을 안내합니다:
1515

16-
1. **프로바이더 선택** — 내장 레지스트리 프리셋 70개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다.
16+
1. **프로바이더 선택** — 내장 레지스트리 프리셋 72개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다.
1717
2. **API 키** — 키를 붙여넣거나 `${ANTHROPIC_API_KEY}` 같은 환경 변수를 참조합니다.
1818
3. **기본 모델** — 키, 로컬, custom 프로바이더에서는 프리셋을 그대로 쓰거나 모델 ID를 직접 입력합니다.
1919
4. **프록시 포트** — 기본값은 `10100`입니다.

‎docs-site/src/content/docs/ko/guides/providers.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ChatGPT 패스스루 카탈로그에는 GPT-5.6 Sol/Terra/Luna의 네임스페
8383

8484
## 2. 계정 로그인 (OAuth)
8585

86-
OAuth 로그인을 사용하는 프로바이더 프리셋은 여섯 개이며, 여기에 실험적 비공식 디바이스 플로우
86+
OAuth 로그인을 사용하는 프로바이더 프리셋은 일곱 개이며, 여기에 실험적 비공식 디바이스 플로우
8787
브리지를 쓰는 GitHub Copilot이 추가됩니다. 자격 증명은 `~/.opencodex/auth.json`에 저장되고
8888
자동으로 갱신됩니다. 로그인 CLI는 `chatgpt`도 받습니다. 이 명령은 ChatGPT 자격 증명을
8989
발급받고 `forward` 모드 프로바이더 항목을 만듭니다.
@@ -95,6 +95,7 @@ ocx login kimi # Moonshot Kimi
9595
ocx login kiro # kiro-cli 자격 증명 가져오기(토큰 폴백 지원)
9696
ocx login google-antigravity
9797
ocx login cursor # Cursor 전용 PKCE 로그인
98+
ocx login command-code # Command Code 브라우저 OAuth (또는 ~/.commandcode/auth.json 가져오기)
9899
ocx login github-copilot # GitHub 디바이스 플로우 → Copilot 토큰 (Copilot Pro/Business)
99100
ocx login chatgpt # 별도 ChatGPT OAuth 로그인
100101
ocx logout <provider>
@@ -142,7 +143,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http
142143

143144
## 3. API 키 카탈로그
144145

145-
opencodex에는 빌트인 프리셋이 70개 들어 있습니다. 키 방식 58개, OAuth 8개, 로컬 3개,
146+
opencodex에는 빌트인 프리셋이 72개 들어 있습니다. 키 방식 60개, OAuth 8개, 로컬 3개,
146147
기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고,
147148
입력한 키를 검증한 뒤 저장합니다(검증은 프로바이더별로 다릅니다). 주요 항목은 다음과 같습니다:
148149

@@ -179,6 +180,8 @@ Cline IDE/CLI에서만 제공되며 API로는 사용할 수 없습니다. `minim
179180
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
180181
| Baseten Model APIs | `https://inference.baseten.co/v1` |
181182
| Command Code | `https://api.commandcode.ai/provider/v1` |
183+
| SambaNova Cloud | `https://api.sambanova.ai/v1` |
184+
| Nebius Token Factory | `https://api.tokenfactory.nebius.com/v1` |
182185
| Together | `https://api.together.xyz/v1` |
183186
| Fireworks | `https://api.fireworks.ai/inference/v1` |
184187
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -227,6 +230,19 @@ CLI 사용자는 `~/.commandcode/auth.json`의 로컬 CLI 자격 증명을 가
227230
계정 단위이며 로그인 후 인증된 discovery 엔드포인트에서 가져옵니다. 채팅 요청은 설정된 bearer
228231
키를 사용합니다. 키는 [Command Code Studio](https://commandcode.ai/studio/)에서 생성합니다.
229232

233+
**SambaNova Cloud 검색:** 프리셋은 고정 API 호스트의 SambaNova Cloud 공개 `/v1/models` 목록을 읽고, 프로바이더
234+
네이티브 ID를 보존하며 discovery를 128 KiB와 raw 행 128개로 제한합니다. 카탈로그에는 인증이 필요하지 않으므로
235+
CLI 로그인 흐름은 공개 응답을 키 유효성의 증거로 사용하지 않고 키를 검증할 수 없는 것으로 보고합니다. chat 요청은
236+
계속 설정된 Bearer 키를 사용하고 SambaNova가 아직 지원하지 않는 병렬 function call은 비활성화합니다. 비공개
237+
SambaStudio deployment 엔드포인트는 범위에서 제외합니다. 키는
238+
[SambaNova Cloud](https://cloud.sambanova.ai/apis)에서 생성합니다.
239+
240+
**Nebius Token Factory 검색:** 프리셋은 인증된 verbose 모델 카탈로그를 요청하고 architecture가 text를
241+
출력하는 행만 유지해 embedding 및 image-generation 모델을 제외합니다. 슬래시가 포함된 네이티브 ID와
242+
보고된 context 및 input modality metadata를 보존하며 discovery를 512 KiB와 raw 행 512개로 제한합니다.
243+
dedicated deployment 호스트는 범위에서 제외합니다. 키는
244+
[Nebius Token Factory](https://tokenfactory.nebius.com)에서 생성합니다.
245+
230246
> **Baseten 범위:** 이 프리셋은 Baseten의 공유 [Model APIs](https://docs.baseten.co/inference/model-apis/overview)만
231247
> 지원합니다. 로컬 사용에는 개인 [API 키](https://docs.baseten.co/organization/api-keys)를, 공유/프로덕션
232248
> 사용에는 **Call Model APIs** 권한이 있는 팀 키를 사용하세요. 전용 Truss `predict` 엔드포인트는

‎docs-site/src/content/docs/ru/getting-started/quickstart.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ocx init
1313

1414
`ocx init` проведёт вас по следующим шагам:
1515

16-
1. **Выбор провайдера** — выберите один из 70 встроенных пресетов реестра или `custom`, чтобы
16+
1. **Выбор провайдера** — выберите один из 72 встроенных пресетов реестра или `custom`, чтобы
1717
ввести базовый URL и адаптер вручную.
1818
2. **API-ключ** — вставьте ключ или сошлитесь на переменную окружения вида `${ANTHROPIC_API_KEY}`.
1919
3. **Модель по умолчанию** — для провайдеров с ключом, локальных и `custom` примите значение из

0 commit comments

Comments
 (0)