Skip to content

Commit 635721f

Browse files
committed
fix(providers): widen DeepInfra discovery limit
1 parent 88ce43b commit 635721f

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ endpoint (e.g. **Xiaomi MiMo**) use the `anthropic` adapter (`x-api-key`).
225225

226226
**DeepInfra and Novita AI discovery.** The `deepinfra` preset uses DeepInfra's registry-owned
227227
model-list URL and keeps only rows tagged `chat`; `novita` keeps only rows whose `model_type` is
228-
`chat`. Both preserve slash-containing native model ids and cap live discovery at 512 KiB and 256
229-
raw rows. Create keys in [DeepInfra's dashboard](https://deepinfra.com/dash/api_keys) or
228+
`chat`. Both preserve slash-containing native model ids and cap live discovery responses at 512 KiB.
229+
DeepInfra accepts up to 512 raw rows; Novita accepts up to 256. Create keys in [DeepInfra's dashboard](https://deepinfra.com/dash/api_keys) or
230230
[Novita's Key Management](https://novita.ai/settings/key-management).
231231

232232
> **Tencent Cloud Coding Plan usage restriction:** Tencent documents this subscription for

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ opencodex には組み込みプリセットが 62 個含まれています。キ
156156

157157
**DeepInfra と Novita AI の discovery:** `deepinfra` preset は registry が所有する DeepInfra の
158158
モデル一覧 URL を使い、`chat` タグを持つ行だけを残します。`novita``model_type``chat`
159-
行だけを残します。どちらもスラッシュを含むネイティブモデル ID を保持し、live discovery を 512 KiB と
160-
raw 256 行に制限します。キーは [DeepInfra dashboard](https://deepinfra.com/dash/api_keys) または
159+
行だけを残します。どちらもスラッシュを含むネイティブモデル ID を保持し、live discovery のレスポンスを
160+
512 KiB に制限します。raw 行数の上限は DeepInfra が 512 行、Novita が 256 行です。キーは [DeepInfra dashboard](https://deepinfra.com/dash/api_keys) または
161161
[Novita Key Management](https://novita.ai/settings/key-management) で作成します。
162162

163163
> **Tencent Cloud Coding Plan の利用制限:** Tencent はこのサブスクリプションを対話型

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ opencodex에는 빌트인 프리셋이 62개 들어 있습니다. 키 방식 51
156156

157157
**DeepInfra 및 Novita AI 검색:** `deepinfra` 프리셋은 registry가 소유하는 DeepInfra 모델 목록 URL을
158158
사용하고 `chat` 태그가 있는 행만 유지합니다. `novita``model_type``chat`인 행만 유지합니다.
159-
두 프리셋 모두 슬래시가 포함된 네이티브 모델 ID를 보존하며 live discovery를 512 KiB와 raw 행 256개로
160-
제한합니다. 키는 [DeepInfra dashboard](https://deepinfra.com/dash/api_keys) 또는
159+
두 프리셋 모두 슬래시가 포함된 네이티브 모델 ID를 보존하며 live discovery 응답을 512 KiB로 제한합니다.
160+
raw 행 상한은 DeepInfra 512개, Novita 256개입니다. 키는 [DeepInfra dashboard](https://deepinfra.com/dash/api_keys) 또는
161161
[Novita Key Management](https://novita.ai/settings/key-management)에서 생성합니다.
162162

163163
> **Tencent Cloud Coding Plan 사용 제한:** Tencent는 이 구독을 대화형 코딩 도구 전용으로

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ opencodex поставляется с 62 встроенными пресетам
168168
**Discovery для DeepInfra и Novita AI.** Пресет `deepinfra` использует принадлежащий registry URL
169169
списка моделей DeepInfra и оставляет только строки с тегом `chat`; `novita` оставляет только строки,
170170
где `model_type` равен `chat`. Оба пресета сохраняют нативные id моделей со знаком `/` и ограничивают
171-
live discovery размером 512 KiB и 256 исходными строками. Ключи создаются в
171+
размер ответа live discovery 512 KiB; DeepInfra принимает до 512 исходных строк, а Novita — до 256. Ключи создаются в
172172
[дашборде DeepInfra](https://deepinfra.com/dash/api_keys) или
173173
[Key Management Novita](https://novita.ai/settings/key-management).
174174

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提
147147

148148
**DeepInfra 与 Novita AI 发现:**`deepinfra` 预设使用 registry 固定的 DeepInfra 模型列表 URL,
149149
仅保留带 `chat` 标签的记录;`novita` 仅保留 `model_type``chat` 的记录。两者都会保留含 `/`
150-
的原生模型 id,并把实时发现限制为 512 KiB256 条原始记录。密钥可在
150+
的原生模型 id,并把实时发现响应限制为 512 KiB;原始记录上限分别为 DeepInfra 512 条、Novita 256 。密钥可在
151151
[DeepInfra 控制台](https://deepinfra.com/dash/api_keys)
152152
[Novita Key Management](https://novita.ai/settings/key-management)创建。
153153

src/providers/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ export const PROVIDER_REGISTRY: readonly ProviderRegistryEntry[] = [
842842
// namespace, so keep this destination registry-owned instead of deriving it from baseUrl.
843843
url: "https://api.deepinfra.com/v1/models",
844844
maxResponseBytes: 512 * 1024,
845-
maxModels: 256,
845+
maxModels: 512,
846846
filter: {
847847
allOf: [{ path: ["metadata", "tags"], containsAny: ["chat"] }],
848848
},

tests/deepinfra-novita-provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe("DeepInfra and Novita AI providers", () => {
8383
modelDiscovery: {
8484
url: "https://api.deepinfra.com/v1/models",
8585
maxResponseBytes: 524_288,
86-
maxModels: 256,
86+
maxModels: 512,
8787
filter: {
8888
allOf: [{ path: ["metadata", "tags"], containsAny: ["chat"] }],
8989
},

tests/fixtures/deepinfra-models.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"object": "model",
2525
"owned_by": "deepinfra",
2626
"metadata": {
27-
"tags": ["embeddings"],
27+
"tags": ["embed"],
2828
"context_length": 512
2929
}
3030
},

0 commit comments

Comments
 (0)