Skip to content

Commit 18545f8

Browse files
authored
Merge pull request #751 from olddonkey/codex/572-chutes-hyperbolic-model-apis
feat(providers): add Hyperbolic preset
2 parents 89cb08f + 5fe8afb commit 18545f8

14 files changed

Lines changed: 261 additions & 14 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 61 built-in registry presets or `custom` to type a base
16+
1. **Pick a provider** — choose one of the 62 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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ selectors, then retry. Signing in from a machine with no existing `kiro-cli` ses
190190

191191
## 3. API-key catalog
192192

193-
opencodex ships 61 built-in presets: 50 key-based, seven OAuth, three local, and the default
193+
opencodex ships 62 built-in presets: 51 key-based, seven OAuth, three local, and the default
194194
ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard,
195195
validates the key, and stores it. Notable entries:
196196

@@ -208,6 +208,7 @@ validates the key, and stores it. Notable entries:
208208
| DeepSeek | `https://api.deepseek.com` |
209209
| Cerebras | `https://api.cerebras.ai/v1` |
210210
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
211+
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
211212
| Together | `https://api.together.xyz/v1` |
212213
| Fireworks | `https://api.fireworks.ai/inference/v1` |
213214
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -232,6 +233,11 @@ endpoint (e.g. **Xiaomi MiMo**) use the `anthropic` adapter (`x-api-key`).
232233
`chat`, preserves slash-containing native model ids, and caps live discovery at 512 KiB and 512 raw
233234
rows. Create keys in [DeepInfra's dashboard](https://deepinfra.com/dash/api_keys).
234235

236+
**Hyperbolic discovery.** The preset reads `/v1/models` with the configured bearer key, preserves
237+
slash-containing native model ids, and caps live discovery at 256 KiB and 256 raw rows. It covers
238+
serverless text and vision-language chat only; Hyperbolic's separate image, audio, and GPU endpoints
239+
are out of scope. Create keys at [Hyperbolic](https://app.hyperbolic.ai).
240+
235241
> **Tencent Cloud Coding Plan usage restriction:** Tencent documents this subscription for
236242
> interactive coding tools only. General API automation, custom application backends, and
237243
> non-interactive batch use are prohibited and may cause the plan key to be suspended.

docs-site/src/content/docs/ja/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. **プロバイダー選択** — 組み込みレジストリのプリセット 61 個から一つを選ぶか、`custom` を選んで
16+
1. **プロバイダー選択** — 組み込みレジストリのプリセット 62 個から一つを選ぶか、`custom` を選んで
1717
base URL とアダプターを直接入力します。
1818
2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。
1919
3. **デフォルトモデル** — API キー、ローカル、custom プロバイダーではプリセット値を使うかモデル ID を直接入力します。

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht
119119

120120
## 3. API キーカタログ
121121

122-
opencodex には組み込みプリセットが 61 個含まれています。キー方式 50、OAuth 7、ローカル 3、
122+
opencodex には組み込みプリセットが 62 個含まれています。キー方式 51、OAuth 7、ローカル 3、
123123
デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、
124124
入力したキーを検証した後保存します。主な項目は以下のとおりです:
125125

@@ -137,6 +137,7 @@ opencodex には組み込みプリセットが 61 個含まれています。キ
137137
| DeepSeek | `https://api.deepseek.com` |
138138
| Cerebras | `https://api.cerebras.ai/v1` |
139139
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
140+
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
140141
| Together | `https://api.together.xyz/v1` |
141142
| Fireworks | `https://api.fireworks.ai/inference/v1` |
142143
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -149,7 +150,7 @@ opencodex には組み込みプリセットが 61 個含まれています。キ
149150
| SiliconFlow | `https://api.siliconflow.cn/v1` |
150151
| Xiaomi MiMo | `https://api.xiaomimimo.com/anthropic` |
151152
| Kilo | `https://api.kilo.ai/api/gateway` |
152-
| GitHub Copilot · GitLab Duo | `https://api.githubcopilot.com` · `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
153+
| GitLab Duo | `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
153154
| Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` |
154155
| …その他多数 | opencode zen、Vercel AI Gateway、Venice、NanoGPT、Synthetic、Qianfan、Alibaba、Parallel、ZenMux、LiteLLM |
155156

@@ -161,6 +162,11 @@ opencodex には組み込みプリセットが 61 個含まれています。キ
161162
`chat` タグを持つ行だけを残し、スラッシュを含むネイティブモデル ID を保持します。live discovery は
162163
512 KiB、raw 512 行に制限します。キーは [DeepInfra dashboard](https://deepinfra.com/dash/api_keys) で作成します。
163164

165+
**Hyperbolic の discovery:** preset は設定済みの bearer キーで `/v1/models` を読み、スラッシュを含む
166+
ネイティブモデル ID を保持し、live discovery を 256 KiB と raw 256 行に制限します。serverless text /
167+
vision-language chat のみを対象とし、別系統の image、audio、GPU endpoint は対象外です。キーは
168+
[Hyperbolic](https://app.hyperbolic.ai) で作成します。
169+
164170
> **Tencent Cloud Coding Plan の利用制限:** Tencent はこのサブスクリプションを対話型
165171
> コーディングツール専用としています。一般的な API 自動化、カスタムアプリのバックエンド、
166172
> 非対話型バッチ利用は禁止されており、プランキーが停止される場合があります。

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. **프로바이더 선택** — 내장 레지스트리 프리셋 61개 중 하나를 고르거나, `custom`을 선택해
16+
1. **프로바이더 선택** — 내장 레지스트리 프리셋 62개 중 하나를 고르거나, `custom`을 선택해
1717
base URL과 adapter를 직접 입력합니다.
1818
2. **API 키** — 키를 붙여넣거나, `${ANTHROPIC_API_KEY}`와 같은 환경 변수를 참조합니다.
1919
3. **기본 모델** — API 키, 로컬, custom 프로바이더에서는 프리셋 값을 쓰거나 모델 id를 직접 입력합니다.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http
119119

120120
## 3. API 키 카탈로그
121121

122-
opencodex에는 빌트인 프리셋이 61개 들어 있습니다. 키 방식 50개, OAuth 7개, 로컬 3개,
122+
opencodex에는 빌트인 프리셋이 62개 들어 있습니다. 키 방식 51개, OAuth 7개, 로컬 3개,
123123
기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고,
124124
입력한 키를 검증한 뒤 저장합니다. 주요 항목은 다음과 같습니다:
125125

@@ -137,6 +137,7 @@ opencodex에는 빌트인 프리셋이 61개 들어 있습니다. 키 방식 50
137137
| DeepSeek | `https://api.deepseek.com` |
138138
| Cerebras | `https://api.cerebras.ai/v1` |
139139
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
140+
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
140141
| Together | `https://api.together.xyz/v1` |
141142
| Fireworks | `https://api.fireworks.ai/inference/v1` |
142143
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -149,7 +150,7 @@ opencodex에는 빌트인 프리셋이 61개 들어 있습니다. 키 방식 50
149150
| SiliconFlow | `https://api.siliconflow.cn/v1` |
150151
| Xiaomi MiMo | `https://api.xiaomimimo.com/anthropic` |
151152
| Kilo | `https://api.kilo.ai/api/gateway` |
152-
| GitHub Copilot · GitLab Duo | `https://api.githubcopilot.com` · `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
153+
| GitLab Duo | `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
153154
| Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` |
154155
| …그 외 다수 | opencode zen, Vercel AI Gateway, Venice, NanoGPT, Synthetic, Qianfan, Alibaba, Parallel, ZenMux, LiteLLM |
155156

@@ -161,6 +162,11 @@ Bearer API 키를 사용합니다. registry가 소유하는 DeepInfra 모델 목
161162
유지하고, 슬래시가 포함된 네이티브 모델 ID를 보존합니다. live discovery는 512 KiB 및 raw 512행으로
162163
제한합니다. 키는 [DeepInfra dashboard](https://deepinfra.com/dash/api_keys)에서 생성합니다.
163164

165+
**Hyperbolic 검색:** 프리셋은 설정된 bearer 키로 `/v1/models`를 읽고, 슬래시가 포함된 네이티브 모델 ID를
166+
보존하며 live discovery를 256 KiB와 raw 행 256개로 제한합니다. serverless text 및 vision-language chat만
167+
대상으로 하며 별도 image, audio, GPU 엔드포인트는 범위에서 제외합니다. 키는
168+
[Hyperbolic](https://app.hyperbolic.ai)에서 생성합니다.
169+
164170
> **Tencent Cloud Coding Plan 사용 제한:** Tencent는 이 구독을 대화형 코딩 도구 전용으로
165171
> 안내합니다. 일반 API 자동화, 사용자 애플리케이션 백엔드 및 비대화형 일괄 호출은 금지되며
166172
> 플랜 키가 정지될 수 있습니다.

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

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ OAuth-провайдеры, чьи учётные данные содержат
126126

127127
## 3. Каталог API-ключей
128128

129-
opencodex поставляется с 61 встроенным пресетом: 50 на основе ключей, семь OAuth, три локальных и
129+
opencodex поставляется с 62 встроенными пресетами: 51 на основе ключей, семь OAuth, три локальных и
130130
пресет ChatGPT-форварда по умолчанию. Селектор **Add provider** в дашборде открывает страницу
131131
выдачи ключей провайдера, проверяет ключ и сохраняет его. Наиболее заметные записи:
132132

@@ -144,6 +144,7 @@ opencodex поставляется с 61 встроенным пресетом:
144144
| DeepSeek | `https://api.deepseek.com` |
145145
| Cerebras | `https://api.cerebras.ai/v1` |
146146
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
147+
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
147148
| Together | `https://api.together.xyz/v1` |
148149
| Fireworks | `https://api.fireworks.ai/inference/v1` |
149150
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -170,6 +171,11 @@ opencodex поставляется с 61 встроенным пресетом:
170171
`/` и ограничивает live discovery 512 KiB и 512 исходными строками. Ключи создаются в
171172
[дашборде DeepInfra](https://deepinfra.com/dash/api_keys).
172173

174+
**Discovery для Hyperbolic.** Пресет читает `/v1/models` с настроенным bearer-ключом, сохраняет
175+
нативные id моделей со знаком `/` и ограничивает live discovery размером 256 KiB и 256 исходными
176+
строками. Он охватывает только serverless text и vision-language chat; отдельные image, audio и GPU
177+
endpoint в него не входят. Ключи создаются в [Hyperbolic](https://app.hyperbolic.ai).
178+
173179
> **Ограничение Tencent Cloud Coding Plan:** Tencent разрешает использовать эту подписку только
174180
> в интерактивных инструментах программирования. Автоматизация общего API, серверы пользовательских
175181
> приложений и неинтерактивные пакетные вызовы запрещены и могут привести к блокировке ключа плана.

docs-site/src/content/docs/zh-cn/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. **选择 provider** —— 从内置 registry 的 61 个预设中选择一个,或选择 `custom` 手动输入
16+
1. **选择 provider** —— 从内置 registry 的 62 个预设中选择一个,或选择 `custom` 手动输入
1717
base URL 和 adapter。
1818
2. **API key** —— 粘贴一个 key,或引用一个环境变量,例如 `${ANTHROPIC_API_KEY}`
1919
3. **默认模型** —— 对于 API key、本地和 custom provider,可接受预设值或输入模型 id。

docs-site/src/content/docs/zh-cn/guides/providers.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Kiro 登录需要 Kiro CLI:Unix 使用 `curl -fsSL https://cli.kiro.dev/instal
111111

112112
## 3. API 密钥目录
113113

114-
opencodex 内置 61 个预设:50 个密钥预设、7 个 OAuth 预设、3 个本地预设,以及默认的
114+
opencodex 内置 62 个预设:51 个密钥预设、7 个 OAuth 预设、3 个本地预设,以及默认的
115115
ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提供商的控制台,验证并保存密钥。
116116
主要条目包括:
117117

@@ -129,6 +129,7 @@ ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提
129129
| DeepSeek | `https://api.deepseek.com` |
130130
| Cerebras | `https://api.cerebras.ai/v1` |
131131
| DeepInfra | `https://api.deepinfra.com/v1/openai` |
132+
| Hyperbolic | `https://api.hyperbolic.xyz/v1` |
132133
| Together | `https://api.together.xyz/v1` |
133134
| Fireworks | `https://api.fireworks.ai/inference/v1` |
134135
| Moonshot (Kimi API) · Kimi (coding) | `https://api.moonshot.ai/v1` · `https://api.kimi.com/coding/v1` |
@@ -141,7 +142,7 @@ ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提
141142
| SiliconFlow | `https://api.siliconflow.cn/v1` |
142143
| Xiaomi MiMo | `https://api.xiaomimimo.com/anthropic` |
143144
| Kilo | `https://api.kilo.ai/api/gateway` |
144-
| GitHub Copilot · GitLab Duo | `https://api.githubcopilot.com` · `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
145+
| GitLab Duo | `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
145146
| Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` |
146147
| ……以及更多 | opencode zen、Vercel AI Gateway、Venice、NanoGPT、Synthetic、Qianfan、Alibaba、Parallel、ZenMux、LiteLLM |
147148

@@ -152,6 +153,10 @@ OpenAI Chat Completions 提供商。registry 固定的 DeepInfra 模型列表 UR
152153
同时保留含 `/` 的原生模型 id,并把实时发现限制为 512 KiB 和 512 条原始记录。
153154
密钥可在 [DeepInfra 控制台](https://deepinfra.com/dash/api_keys)创建。
154155

156+
**Hyperbolic 发现:**该预设会使用已配置的 bearer 密钥读取 `/v1/models`,保留含 `/` 的原生模型 id,
157+
并将实时发现限制为 256 KiB 和 256 条原始记录。它仅覆盖 serverless text 与 vision-language chat;独立的
158+
image、audio 和 GPU 端点不在范围内。密钥可在 [Hyperbolic](https://app.hyperbolic.ai) 创建。
159+
155160
> **腾讯云 Coding Plan 使用限制:**腾讯将此订阅限定为交互式编程工具使用。禁止通用 API
156161
> 自动化、自定义应用后端和非交互式批量调用;违规使用可能导致套餐密钥被停用。
157162

0 commit comments

Comments
 (0)