Skip to content

Commit 9e48f78

Browse files
StudioPlatformsclaudelidge-jun
authored
feat(providers): add AI Stupid Level API-key preset (lidge-jun#7623)
* feat(providers): add AI Stupid Level API-key preset Adds AI Stupid Level's Smart Router as an ordinary API-key preset: openai-chat at https://aistupidlevel.info/v1, live discovery from the key-gated GET /v1/models (which also validates the key), and the 15 routing modes seeded with auto-coding as the default. Each routing mode declares a 262,144-token window, 64,000 output tokens and text-only input, limits that hold for any model the router picks. Every inbound stays on Chat: the router's /v1/messages is a passthrough to Anthropic without routing. Preset counts are recounted to 106 total and 85 key-based in all 8 guides, all 8 quickstarts and structure/ops/docs-and-release.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(providers): keep every AI Stupid Level model text-only, pinned ids included The preset declared text-only input for its 15 routing modes only. A pinned id from live discovery, such as claude-sonnet-4-6, had no modality evidence, so an attached image was forwarded to the router, which answers 400 unsupported_content. Add a provider-wide inputModalities declaration, the modality counterpart of contextWindow and supportsVerbosity. The registry seeds it, and enrichProviderFromRegistry and routedProviderConfig backfill it for rows saved earlier. isModelVisionSidecarConsumer, requiresVisionPreprocessing, modelAcceptsImageInput and the routing capability evidence fall back to it when no per-model entry lists the id; a per-model entry still wins. The AI Stupid Level preset declares ["text"]. Regression tests: a pinned live id needs vision preprocessing, also for a row saved before the declaration, and an image sent to aistupidlevel/claude-sonnet-4-6 through the proxy never reaches the router. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(providers): read provider-wide modalities only from the routed provider Review follow-up on the provider-wide inputModalities declaration: - Declare inputModalities on DerivedKeyLoginProvider, and copy it in providerConfigFromKeyLoginProvider, so a dashboard key login saves it like a CLI provider add does. - Drop the name-only registry fallback from the routing capability evidence. It applied the preset's ["text"] to a same-named custom destination; the routed provider already carries the declaration, backfilled for the preset destination only. Regression test: a same-named custom destination keeps its own modality evidence and needs no vision preprocessing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(providers): record the 2026-10-26 re-verification of the AI Stupid Level preset The contract (router docs, terms, key-gated GET /v1/models) was checked again on 2026-10-26: the 15 routing modes are unchanged. The pool of pinnable models has changed since 2026-10-23 (Kimi K2.7 Code is no longer listed), so the limits comment now calls 262,144 a conservative window rather than the current pool minimum. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(providers): keep provider-wide modalities registry-only Review follow-up: a row seeded from the AI Stupid Level preset kept inputModalities: ["text"] after its baseUrl was pointed elsewhere, so a custom image-capable endpoint would have had its images stripped. The declaration is now registry-only, like other destination-bound registry defaults: it is no longer seeded into saved config (CLI add or key login), and enrichProviderFromRegistry and routedProviderConfig fill it only while the provider points at the preset destination. This also drops the src/oauth/login-cli.ts change. The custom-destination test now covers a seeded row moved to another URL as well as a hand-written custom row. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(providers): apply provider-wide modalities at runtime only Review follow-up: enrichProviderFromRegistry copied the preset's inputModalities onto the provider object, and init and management writes persist that object, so a saved copy could still follow a row to another URL. Enrichment no longer copies it. registryInputModalitiesForDestination() returns the registry value only while the row points at the preset destination; vision eligibility applies it to its private copy, and routedProviderConfig applies it to the routed provider. Regression test: enrichment leaves the saved provider without the field, while the runtime classification still holds at the preset destination and not at another URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(providers): validate runtime modality overrides for AI Stupid Level Reject malformed provider-wide modalities at schema and management boundaries, repair tolerant loads to text, and preserve exact model declaration precedence. Cover destination-bound runtime backfill without persisting registry defaults; derive the active key-login test roster from the registry. Co-authored-by: Studio Platforms <[email protected]> * fix(providers): retain text-only fallback for renamed presets --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: JUN <[email protected]>
1 parent 0f642c4 commit 9e48f78

45 files changed

Lines changed: 657 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs-site/src/content/docs/fr/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` vous accompagne dans les étapes suivantes :
1515

16-
1. **Choix d’un fournisseur** — sélectionnez l’un des 105 préréglages intégrés au registre, ou `custom` pour saisir une
16+
1. **Choix d’un fournisseur** — sélectionnez l’un des 106 préréglages intégrés au registre, ou `custom` pour saisir une
1717
URL de base et un adaptateur.
1818
2. **Clé API** — collez une clé ou référencez une variable d’environnement telle que `${ANTHROPIC_API_KEY}`.
1919
3. **Modèle par défaut** — pour les fournisseurs clés, locaux et personnalisés, acceptez le préréglage ou saisissez un identifiant de modèle.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ existante n'est pas concernée.
309309

310310
## 3. Catalogue des clés API
311311

312-
opencodex fournit 105 préréglages intégrés : 84 à clé, 17 OAuth, trois locaux et un préréglage par défaut de
312+
opencodex fournit 106 préréglages intégrés : 85 à clé, 17 OAuth, trois locaux et un préréglage par défaut de
313313
transfert ChatGPT. Dans le tableau de bord, le sélecteur **Ajouter un fournisseur** ouvre le tableau de bord du
314314
fournisseur à clé, valide la clé et l'enregistre ; la validation dépend du fournisseur. Parmi les entrées notables :
315315

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

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

1919
`ocx init` walks you through:
2020

21-
1. **Pick a provider** — choose one of the 105 built-in registry presets or `custom` to type a base
21+
1. **Pick a provider** — choose one of the 106 built-in registry presets or `custom` to type a base
2222
URL and adapter.
2323
2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`.
2424
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: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ On upgrade, startup adds Pro to a saved model list only when it exactly matches
694694

695695
## 3. API-key catalog
696696

697-
opencodex ships 105 built-in presets: 84 key-based, 17 OAuth, three local, and one default
697+
opencodex ships 106 built-in presets: 85 key-based, 17 OAuth, three local, and one default
698698
ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard,
699699
validates the key, and stores it; validation is provider-specific. Notable entries:
700700

@@ -786,6 +786,7 @@ region-pinned EU routes, is at [opper.ai/models](https://opper.ai/models). Opper
786786
| Opper | `https://api.opper.ai/v3/compat` |
787787
| TokenLab | `https://api.tokenlab.sh/v1` |
788788
| Modelflare | `https://modelflare.dev/v1` |
789+
| AI Stupid Level | `https://aistupidlevel.info/v1` |
789790
| OpenGateway | `https://apis.opengateway.ai/v1` |
790791
| GitLab Duo | `https://cloud.gitlab.com/ai/v1/proxy/openai/v1` |
791792
| Cloudflare AI Gateway | `https://gateway.ai.cloudflare.com/v1/{account-id}/{gateway}/anthropic` |
@@ -880,6 +881,31 @@ can call only that group's models, so use a Smart key for the full seeded set, o
880881
`deepseek-v4.1-flash` is listed upstream but currently answers 503, so the preset leaves it out.
881882
Upstream latency varies from a few seconds to about 30 seconds, with occasional transient 503s.
882883

884+
**AI Stupid Level** is a Smart Router at `https://aistupidlevel.info/v1`, operated by S.C. Studio
885+
Platforms S.R.L. Create a router key at [aistupidlevel.info/router/keys](https://aistupidlevel.info/router/keys)
886+
and add your own OpenAI, Anthropic, Google, DeepSeek, Kimi or GLM keys to the same account. Then select
887+
**AI Stupid Level** in `ocx init` or the dashboard's **Add provider** picker, or run
888+
`ocx provider add aistupidlevel`, and give it the router key directly or as the reference
889+
`${AISTUPIDLEVEL_API_KEY}`. The router calls each model with your own provider key, so the provider
890+
bills you directly and AI Stupid Level adds no markup ([terms](https://aistupidlevel.info/terms#router)).
891+
The preset uses Chat Completions for every client, Claude Code included, and discovers models from the
892+
authenticated `GET /v1/models`. Its seeded models are the
893+
[routing modes](https://aistupidlevel.info/router/docs#strategies): `auto-coding` (the default) sends
894+
each request to the model with the best measured score on AI Stupid Level's coding benchmark,
895+
`auto-tooling` and `auto-reasoning` do the same for tool use and reasoning, and `auto-value-coding` or
896+
`auto-fastest-quality` pick the best-value or fastest model within 5 points of the best. A real model id
897+
from the live list, such as `aistupidlevel/claude-opus-5-5`, pins one model, and the `X-AISM-Model`
898+
response header names the model that answered. Routing modes declare a 262,144-token window and 64,000
899+
output tokens, which hold for any model the router picks. The router accepts text only, so for a
900+
routing mode or pinned model at the preset destination the proxy hands images to the vision sidecar instead of sending them. Its Anthropic
901+
Messages endpoint is a passthrough to Anthropic without routing, so the preset does not use it.
902+
903+
The provider editor also accepts an optional `inputModalities` fallback: a nonempty array containing
904+
`text`, `image`, `audio`, or `video`. Exact per-model declarations take precedence. Invalid values
905+
are rejected on save; a malformed value in a hand-edited config loads as `["text"]` with a warning.
906+
The preset's text-only fallback is applied at runtime, including when saved under another provider
907+
name at the same URL and Chat adapter. It does not follow a custom URL or another adapter.
908+
883909
The MiniMax and MiniMax (CN) provider cards can also show Coding Plan quota when the configured
884910
key has an active plan. The dashboard reads the plan's 5-hour window and, when present, weekly
885911
window; these are display observations and do not change model routing.

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

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht
208208

209209
## 3. API キーカタログ
210210

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

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

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

1919
`ocx init`은 다음 과정을 안내합니다:
2020

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http
211211

212212
## 3. API 키 카탈로그
213213

214-
opencodex에는 빌트인 프리셋이 105개 들어 있습니다. 키 방식 84개, OAuth 17개, 로컬 3개,
214+
opencodex에는 빌트인 프리셋이 106개 들어 있습니다. 키 방식 85개, OAuth 17개, 로컬 3개,
215215
기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고,
216216
입력한 키를 검증한 뒤 저장합니다(검증은 프로바이더별로 다릅니다). 주요 항목은 다음과 같습니다:
217217

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

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

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

21-
1. **Выбор провайдера** — выберите один из 105 встроенных пресетов реестра или `custom`, чтобы
21+
1. **Выбор провайдера** — выберите один из 106 встроенных пресетов реестра или `custom`, чтобы
2222
ввести базовый URL и адаптер вручную.
2323
2. **API-ключ** — вставьте ключ или сошлитесь на переменную окружения вида `${ANTHROPIC_API_KEY}`.
2424
3. **Модель по умолчанию** — для провайдеров с ключом, локальных и `custom` примите значение из

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Inline JSON и лишние позиционные аргументы откло
220220

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

223-
opencodex поставляется с 105 встроенными пресетами: 84 на основе ключей, 17 OAuth, три локальных и
223+
opencodex поставляется с 106 встроенными пресетами: 85 на основе ключей, 17 OAuth, три локальных и
224224
один пресет ChatGPT-форварда по умолчанию. Селектор **Add provider** в дашборде открывает страницу
225225
выдачи ключей провайдера, проверяет ключ и сохраняет его; проверка зависит от провайдера.
226226
Наиболее заметные записи:

0 commit comments

Comments
 (0)