diff --git a/README.md b/README.md index cf3b4b23655..61ad7a129d0 100644 --- a/README.md +++ b/README.md @@ -366,7 +366,7 @@ A JEV Combo can instead ask a self-hosted decision model, such as Ollama's keyle OpenAI (ChatGPT login or API key), Anthropic, Google Gemini, xAI, Kimi, Azure OpenAI, Ollama (local + Cloud), Cursor (experimental), and every OpenAI-compatible endpoint — plus DeepSeek, -Groq, OpenRouter, OpenGateway, Together, Fireworks, Cerebras, Mistral, Hugging Face, NVIDIA NIM, MiniMax, +Groq, OpenRouter, [OpenDesign Go](https://go.open-design.ai/), OpenGateway, Together, Fireworks, Cerebras, Mistral, Hugging Face, NVIDIA NIM, MiniMax, Qwen Cloud, Qoder Global and CN (official PAT + CLI), SiliconFlow, and more. Full list: `ocx init` or the [provider docs](https://opencodex.me/guides/providers/). diff --git a/docs-site/src/content/docs/es/getting-started/quickstart.md b/docs-site/src/content/docs/es/getting-started/quickstart.md index 08429c4cc5f..dd0a7882fd8 100644 --- a/docs-site/src/content/docs/es/getting-started/quickstart.md +++ b/docs-site/src/content/docs/es/getting-started/quickstart.md @@ -23,7 +23,7 @@ ocx init `ocx init` te guía por estos pasos: -1. **Elegir un proveedor**: selecciona uno de los 111 preajustes del registro integrado o `custom` para introducir una URL base y un adaptador. +1. **Elegir un proveedor**: selecciona uno de los 111 preajustes integrados disponibles o `custom` para introducir una URL base y un adaptador. 2. **Clave API**: pega una clave o indica una variable de entorno como `${ANTHROPIC_API_KEY}`. 3. **Modelo predeterminado**: para proveedores con clave, locales o personalizados, acepta el preajuste o introduce un identificador de modelo. 4. **Puerto del proxy**: `10100` de forma predeterminada. diff --git a/docs-site/src/content/docs/es/guides/api-key-catalog.md b/docs-site/src/content/docs/es/guides/api-key-catalog.md index 43121649296..9f583bb0693 100644 --- a/docs-site/src/content/docs/es/guides/api-key-catalog.md +++ b/docs-site/src/content/docs/es/guides/api-key-catalog.md @@ -9,7 +9,24 @@ de cuentas y los proveedores locales siguen en esa página. Para rotar cuentas de suscripción, consulta [`reset-near-weighted`](/es/reference/configuration/providers/#reset-near-weighted) en los grupos OAuth de Codex y Anthropic. Los grupos de claves API usan sus propios [ajustes de selección de claves](/es/reference/configuration/providers/). -opencodex incluye 111 preajustes integrados: 89 con clave, 18 OAuth, tres locales y uno predeterminado de reenvío a ChatGPT. El selector **Añadir proveedor** abre el formulario del proveedor con clave, valida la credencial cuando el proveedor permite comprobarla y la guarda; cada proveedor tiene su propia validación. Entre ellos: +opencodex incluye 112 preajustes integrados: 90 con clave, 18 OAuth, tres locales y uno predeterminado de reenvío a ChatGPT. El selector **Añadir proveedor** abre el formulario del proveedor con clave, valida la credencial cuando el proveedor permite comprobarla y la guarda; cada proveedor tiene su propia validación. Entre ellos: + +**[OpenDesign Go](https://go.open-design.ai/)** ofrece acceso a modelos por suscripción mediante una +clave API del espacio de trabajo. Para utilizarlo: + +1. Elige un plan Go en el sitio del proveedor y crea una clave API en el espacio de trabajo que + tenga acceso a ese plan. Consulta la [guía oficial de configuración](https://open-design.ai/help/cloud-api/). +2. En el panel de opencodex, abre **Añadir proveedor**, busca **OpenDesign Go** e introduce esa + clave. El preajuste utiliza el adaptador `openai-chat` y `https://amr-link.open-design.ai/v1`. +3. Carga los modelos disponibles para la clave y selecciona uno descubierto, por ejemplo + `deepseek-v4.1-flash` si tu espacio de trabajo lo incluye. El nombre enrutado es + `opendesign-go/deepseek-v4.1-flash`; opencodex envía al proveedor el identificador de modelo sin prefijo. +4. Conecta tu cliente siguiendo la [guía de clientes](/es/reference/client-support/) y envía una + solicitud breve al modelo seleccionado. + +El catálogo se obtiene de `/models` con la clave del espacio de trabajo; la disponibilidad y los +límites de uso dependen del plan. Este preajuste usa Chat Completions mediante el adaptador existente. +No inicia sesión en una cuenta de OpenDesign ni muestra las ventanas de cuota de la suscripción. **ClinePass** utiliza una clave API de Cline con el [catálogo oficial de suscripción](https://docs.cline.bot/getting-started/clinepass) y el [punto final de Chat Completions](https://docs.cline.bot/api/chat-completions), operados por Cline Bot Inc. bajo [los términos de Cline](https://cline.bot/tos). Un id enrutado como `cline-pass/cline-pass/kimi-k3` es intencional: el primer segmento selecciona el proveedor de opencodex, mientras que `cline-pass/kimi-k3` es el identificador de modelo completo que se envía aguas arriba. La cuota de ClinePass se comparte por cuenta entre límites rotativos de 5 horas, semanales y mensuales. Una sonda en vivo del 2026-08-13 verificó que todos los modelos estáticos de ClinePass aceptan `low`, `medium`, `high`, `xhigh` y `max` en el límite de entrada de la pasarela. opencodex conserva los niveles solicitados; cualquier normalización específica del backend sigue siendo responsabilidad de ClinePass. @@ -25,6 +42,7 @@ opencodex incluye 111 preajustes integrados: 89 con clave, 18 OAuth, tres locale | --- | --- | | **OpenAI (clave API)** | `https://api.openai.com/v1` | | **Anthropic (clave API)** | `https://api.anthropic.com` | +| OpenDesign Go | `https://amr-link.open-design.ai/v1` | | **OpenRouter** | `https://openrouter.ai/api/v1` | | **Cline** | `https://api.cline.bot/api/v1` | | **ClinePass** | `https://api.cline.bot/api/v1` | diff --git a/docs-site/src/content/docs/fr/getting-started/quickstart.md b/docs-site/src/content/docs/fr/getting-started/quickstart.md index b8d6d413f72..d6cee545d95 100644 --- a/docs-site/src/content/docs/fr/getting-started/quickstart.md +++ b/docs-site/src/content/docs/fr/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` vous accompagne dans les étapes suivantes : -1. **Choix d’un fournisseur** — sélectionnez l’un des 111 préréglages intégrés au registre, ou `custom` pour saisir une +1. **Choix d’un fournisseur** — sélectionnez l’un des 111 préréglages intégrés sélectionnables, ou `custom` pour saisir une URL de base et un adaptateur. 2. **Clé API** — collez une clé ou référencez une variable d’environnement telle que `${ANTHROPIC_API_KEY}`. 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. diff --git a/docs-site/src/content/docs/fr/guides/providers.md b/docs-site/src/content/docs/fr/guides/providers.md index 400994e490f..dc03db40597 100644 --- a/docs-site/src/content/docs/fr/guides/providers.md +++ b/docs-site/src/content/docs/fr/guides/providers.md @@ -310,7 +310,7 @@ existante n'est pas concernée. ## 3. Catalogue des clés API -opencodex fournit 111 préréglages intégrés : 89 à clé, 18 OAuth, trois locaux et un préréglage par défaut de +opencodex fournit 112 préréglages intégrés : 90 à clé, 18 OAuth, trois locaux et un préréglage par défaut de transfert ChatGPT. Dans le tableau de bord, le sélecteur **Ajouter un fournisseur** ouvre le tableau de bord du fournisseur à clé, valide la clé et l'enregistre ; la validation dépend du fournisseur. Parmi les entrées notables : diff --git a/docs-site/src/content/docs/getting-started/quickstart.md b/docs-site/src/content/docs/getting-started/quickstart.md index 7305bd426e0..f8e9763128d 100644 --- a/docs-site/src/content/docs/getting-started/quickstart.md +++ b/docs-site/src/content/docs/getting-started/quickstart.md @@ -21,7 +21,7 @@ ocx init `ocx init` walks you through: -1. **Pick a provider** — choose one of the 111 built-in registry presets or `custom` to type a base +1. **Pick a provider** — choose one of the 111 selectable built-in presets or `custom` to type a base URL and adapter. 2. **API key** — paste a key, or reference an environment variable like `${ANTHROPIC_API_KEY}`. 3. **Default model** — for key, local, and custom providers, accept the preset or enter a model id. diff --git a/docs-site/src/content/docs/guides/api-key-catalog.md b/docs-site/src/content/docs/guides/api-key-catalog.md index 1f138e57bc5..0da3b18f5d8 100644 --- a/docs-site/src/content/docs/guides/api-key-catalog.md +++ b/docs-site/src/content/docs/guides/api-key-catalog.md @@ -9,10 +9,28 @@ stay on that page. For subscription account rotation, see [`reset-near-weighted`](/reference/configuration/providers/#reset-near-weighted) for the Codex and Anthropic OAuth pools. API-key pools use their own [key selection settings](/reference/configuration/providers/). -opencodex ships 111 built-in presets: 89 key-based, 18 OAuth, three local, and one default +opencodex ships 112 built-in presets: 90 key-based, 18 OAuth, three local, and one default ChatGPT-forward preset. The dashboard's **Add provider** picker opens a key provider's dashboard, validates the key where the provider can check one, and stores it. Notable entries: +**[OpenDesign Go](https://go.open-design.ai/)** provides subscription model access through a workspace +API key. To use it: + +1. Choose a Go plan on the provider website, then create an API key in the workspace that has + access to that plan. See the [official API setup guide](https://open-design.ai/help/cloud-api/). +2. In the opencodex dashboard, open **Add provider**, find **OpenDesign Go**, and enter that + workspace key. The preset uses the `openai-chat` adapter and + `https://amr-link.open-design.ai/v1`. +3. Load the models available to the key and select a discovered model, for example + `deepseek-v4.1-flash` when included in your workspace. The routed model name is + `opendesign-go/deepseek-v4.1-flash`; opencodex sends the bare model id upstream. +4. Connect your client using the [client support guide](/reference/client-support/) and send a short + request to the selected model. + +The catalog is fetched from `/models` with your workspace key; availability and usage limits +follow your plan. This preset uses Chat Completions through the existing adapter. It does not +sign in to an OpenDesign account or display subscription allowance windows. + **ClinePass** uses a Cline API key with the [official subscription catalog](https://docs.cline.bot/getting-started/clinepass) and [Chat Completions endpoint](https://docs.cline.bot/api/chat-completions), operated by Cline Bot Inc. under [Cline's terms](https://cline.bot/tos). A routed id such as `cline-pass/cline-pass/kimi-k3` is @@ -53,6 +71,7 @@ region-pinned EU routes, is at [opper.ai/models](https://opper.ai/models). Opper | --- | --- | | **OpenAI (API key)** | `https://api.openai.com/v1` | | **Anthropic (API key)** | `https://api.anthropic.com` | +| OpenDesign Go | `https://amr-link.open-design.ai/v1` | | **OpenRouter** | `https://openrouter.ai/api/v1` | | **Cline** | `https://api.cline.bot/api/v1` | | **ClinePass** | `https://api.cline.bot/api/v1` | diff --git a/docs-site/src/content/docs/ja/getting-started/quickstart.md b/docs-site/src/content/docs/ja/getting-started/quickstart.md index 69946eb41b2..26d4ee9500b 100644 --- a/docs-site/src/content/docs/ja/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ja/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` では次の手順を説明します。 -1. **プロバイダーを選択してください** — 111 個の組み込みレジストリプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。 +1. **プロバイダーを選択してください** — 111 個の選択可能な組み込みプリセットのいずれか、または `custom` を選択してベース URL とアダプターを入力します。 2. **API キー** — キーを貼り付けるか、`${ANTHROPIC_API_KEY}` のような環境変数を参照します。 3. **デフォルト モデル** — キー、ローカル、カスタム プロバイダーの場合は、プリセットを受け入れるか、モデル ID を入力します。 4. **プロキシ ポート** — デフォルトは `10100` です。 diff --git a/docs-site/src/content/docs/ja/guides/providers.md b/docs-site/src/content/docs/ja/guides/providers.md index 6f7c79d935e..e587a01d379 100644 --- a/docs-site/src/content/docs/ja/guides/providers.md +++ b/docs-site/src/content/docs/ja/guides/providers.md @@ -210,7 +210,7 @@ Kiro のログインには Kiro CLI が必要です。Unix では `curl -fsSL ht ## 3. API キーカタログ -opencodex には組み込みプリセットが 111 個含まれています。キー方式 89、OAuth 18、ローカル 3、 +opencodex には組み込みプリセットが 112 個含まれています。キー方式 90、OAuth 18、ローカル 3、 デフォルト ChatGPT 転送プリセット 1 です。ダッシュボードの **Add provider** ピッカーはキー発行ページを開き、 入力したキーを検証した後保存します(検証はプロバイダー固有です)。主な項目は以下のとおりです: diff --git a/docs-site/src/content/docs/ko/getting-started/quickstart.md b/docs-site/src/content/docs/ko/getting-started/quickstart.md index 8e6e743868a..f090924821f 100644 --- a/docs-site/src/content/docs/ko/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ko/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init`은 다음 과정을 안내합니다: -1. **프로바이더 선택** — 내장 레지스트리 프리셋 111개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다. +1. **프로바이더 선택** — 선택 가능한 내장 프리셋 111개 중 하나를 고르거나 `custom`을 선택해 base URL과 adapter를 직접 입력합니다. 2. **API 키** — 키를 붙여넣거나 `${ANTHROPIC_API_KEY}` 같은 환경 변수를 참조합니다. 3. **기본 모델** — 키, 로컬, custom 프로바이더에서는 프리셋을 그대로 쓰거나 모델 ID를 직접 입력합니다. 4. **프록시 포트** — 기본값은 `10100`입니다. diff --git a/docs-site/src/content/docs/ko/guides/providers.md b/docs-site/src/content/docs/ko/guides/providers.md index b187921bba2..95ab3cd7d79 100644 --- a/docs-site/src/content/docs/ko/guides/providers.md +++ b/docs-site/src/content/docs/ko/guides/providers.md @@ -212,7 +212,7 @@ Kiro 로그인에는 Kiro CLI가 필요합니다. Unix에서는 `curl -fsSL http ## 3. API 키 카탈로그 -opencodex에는 빌트인 프리셋이 111개 들어 있습니다. 키 방식 89개, OAuth 18개, 로컬 3개, +opencodex에는 빌트인 프리셋이 112개 들어 있습니다. 키 방식 90개, OAuth 18개, 로컬 3개, 기본 ChatGPT 포워드 프리셋 1개입니다. 대시보드의 **Add provider** 선택기는 키 발급 페이지를 열고, 입력한 키를 검증한 뒤 저장합니다(검증은 프로바이더별로 다릅니다). 주요 항목은 다음과 같습니다: diff --git a/docs-site/src/content/docs/ru/getting-started/quickstart.md b/docs-site/src/content/docs/ru/getting-started/quickstart.md index 32cd2800844..745b45593a8 100644 --- a/docs-site/src/content/docs/ru/getting-started/quickstart.md +++ b/docs-site/src/content/docs/ru/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` проведёт вас по следующим шагам: -1. **Выбор провайдера** — выберите один из 111 встроенных пресетов реестра или `custom`, чтобы +1. **Выбор провайдера** — выберите один из 111 доступных встроенных пресетов или `custom`, чтобы ввести базовый URL и адаптер вручную. 2. **API-ключ** — вставьте ключ или сошлитесь на переменную окружения вида `${ANTHROPIC_API_KEY}`. 3. **Модель по умолчанию** — для провайдеров с ключом, локальных и `custom` примите значение из diff --git a/docs-site/src/content/docs/ru/guides/providers.md b/docs-site/src/content/docs/ru/guides/providers.md index 772b7992c54..1bf3f7a7145 100644 --- a/docs-site/src/content/docs/ru/guides/providers.md +++ b/docs-site/src/content/docs/ru/guides/providers.md @@ -222,7 +222,7 @@ Inline JSON и лишние позиционные аргументы откло ## 3. Каталог API-ключей -opencodex поставляется с 111 встроенными пресетами: 89 на основе ключей, 18 OAuth, три локальных и +opencodex поставляется с 112 встроенными пресетами: 90 на основе ключей, 18 OAuth, три локальных и один пресет ChatGPT-форварда по умолчанию. Селектор **Add provider** в дашборде открывает страницу выдачи ключей провайдера, проверяет ключ и сохраняет его; проверка зависит от провайдера. Наиболее заметные записи: diff --git a/docs-site/src/content/docs/tr/getting-started/quickstart.md b/docs-site/src/content/docs/tr/getting-started/quickstart.md index 99ba7d3851f..cc824841b1d 100644 --- a/docs-site/src/content/docs/tr/getting-started/quickstart.md +++ b/docs-site/src/content/docs/tr/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` adım adım size rehberlik eder: -1. **Bir sağlayıcı seçin** — yerleşik kayıt defterindeki 111 önayardan birini +1. **Bir sağlayıcı seçin** — seçilebilir 111 yerleşik önayardan birini veya bir temel URL ile adaptör yazmak için `custom` seçeneğini belirleyin. 2. **API anahtarı** — bir anahtar yapıştırın veya `${ANTHROPIC_API_KEY}` gibi bir ortam değişkenine başvurun. diff --git a/docs-site/src/content/docs/tr/guides/providers.md b/docs-site/src/content/docs/tr/guides/providers.md index 47b195d3632..03317bed745 100644 --- a/docs-site/src/content/docs/tr/guides/providers.md +++ b/docs-site/src/content/docs/tr/guides/providers.md @@ -342,7 +342,7 @@ olmayan bir makineden oturum açmak bundan etkilenmez. ## 3. API anahtarı kataloğu -opencodex 111 yerleşik önayar ile birlikte gelir: 89 anahtar tabanlı, 18 +opencodex 112 yerleşik önayar ile birlikte gelir: 90 anahtar tabanlı, 18 OAuth, üç yerel ve bir varsayılan ChatGPT iletme önayarı. Kontrol panelinin **Sağlayıcı ekle** seçicisi bir anahtar sağlayıcısının kontrol panelini açar, anahtarı doğrular ve saklar; doğrulama sağlayıcıya özgüdür. Dikkate değer diff --git a/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md b/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md index 81796822e10..1665e42aec0 100644 --- a/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md +++ b/docs-site/src/content/docs/zh-cn/getting-started/quickstart.md @@ -18,7 +18,7 @@ ocx init `ocx init` 会引导你完成: -1. **选择 provider** — 从内置 registry 的 111 个预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。 +1. **选择 provider** — 从 111 个可选内置预设中选择一个,或选择 `custom` 手动输入 base URL 和 adapter。 2. **API key** — 粘贴一个 key,或引用一个环境变量,例如 `${ANTHROPIC_API_KEY}`。 3. **默认模型** — 对于 key、本地和 custom provider,接受预设值或输入模型 id。 4. **代理端口** — 默认为 `10100`。 diff --git a/docs-site/src/content/docs/zh-cn/guides/providers.md b/docs-site/src/content/docs/zh-cn/guides/providers.md index 791b46ba2b7..ffbe65d2206 100644 --- a/docs-site/src/content/docs/zh-cn/guides/providers.md +++ b/docs-site/src/content/docs/zh-cn/guides/providers.md @@ -222,7 +222,7 @@ API Key 提供商,也不负责让 WorkBuddy 桌面客户端使用 OpenCodex ## 3. API 密钥目录 -opencodex 内置 111 个预设:89 个密钥预设、18 个 OAuth 预设、3 个本地预设,以及 1 个默认的 +opencodex 内置 112 个预设:90 个密钥预设、18 个 OAuth 预设、3 个本地预设,以及 1 个默认的 ChatGPT 转发预设。仪表盘的 **Add provider** 选择器会打开密钥提供商的控制台,验证并保存密钥。 验证因提供商而异。主要条目包括: diff --git a/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md b/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md index b2196e4e7a0..d97cde53186 100644 --- a/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md +++ b/docs-site/src/content/docs/zh-tw/getting-started/quickstart.md @@ -13,7 +13,7 @@ ocx init `ocx init` 會引導你完成: -1. **選擇 provider** —— 從內建 registry 的 111 個預設中選擇一個,或選擇 `custom` 手動輸入 +1. **選擇 provider** —— 從 111 個可選內建預設中選擇一個,或選擇 `custom` 手動輸入 base URL 和 adapter。 2. **API key** —— 貼上一個 key,或引用一個環境變數,例如 `${ANTHROPIC_API_KEY}`。 3. **預設模型** —— 對於 API key、本機和 custom provider,可接受預設值或輸入模型 id。 diff --git a/docs-site/src/content/docs/zh-tw/guides/providers.md b/docs-site/src/content/docs/zh-tw/guides/providers.md index 348135b753d..a33b7a71825 100644 --- a/docs-site/src/content/docs/zh-tw/guides/providers.md +++ b/docs-site/src/content/docs/zh-tw/guides/providers.md @@ -264,7 +264,7 @@ database 並移除目前的 WAL、SHM 與 journal sidecar,再發布先前的 s ## 3. API 金鑰目錄 -opencodex 內建 111 個 preset:89 個 key-based、18 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward +opencodex 內建 112 個 preset:90 個 key-based、18 個 OAuth、3 個 local,以及 1 個預設 ChatGPT-forward preset。儀表板的 **Add provider** picker 會開啟 key provider 的 dashboard、驗證金鑰並儲存;驗證方式 依 provider 而異。主要條目如下。 diff --git a/scripts/test-layout/layout-providers.json b/scripts/test-layout/layout-providers.json index d618d806299..04b654aee0c 100644 --- a/scripts/test-layout/layout-providers.json +++ b/scripts/test-layout/layout-providers.json @@ -1,6 +1,7 @@ { "m365-copilot-security.test.ts": "providers", "m365-copilot-executor.test.ts": "providers", + "opendesign-go-provider.test.ts": "providers", "cursor-auto-tool-result-replay.test.ts": "providers/cursor", "provider-alias-template.test.ts": "providers", "provider-passive-wire-model.test.ts": "providers", diff --git a/src/providers/registry/entries-extended.ts b/src/providers/registry/entries-extended.ts index 9ce1220db0e..e549c886bde 100644 --- a/src/providers/registry/entries-extended.ts +++ b/src/providers/registry/entries-extended.ts @@ -138,6 +138,22 @@ import { } from "./model-seeds"; export const PROVIDER_REGISTRY_EXTENDED: readonly ProviderRegistryEntry[] = [ + { + id: "opendesign-go", + label: "OpenDesign Go", + adapter: "openai-chat", + baseUrl: "https://amr-link.open-design.ai/v1", + authKind: "key", + dashboardUrl: "https://go.open-design.ai/", + liveModels: true, + preserveCustomDestination: true, + defaultModel: "deepseek-v4.1-flash", + // Catalog access is workspace-scoped; do not seed models absent from the supplied key. + // No provider-wide reasoning effort contract is assumed from model names alone. + reasoningEfforts: [], + modelDiscovery: { path: "models", maxResponseBytes: 256 * 1024, maxModels: 256 }, + note: "OpenDesign Go subscription with a workspace API key. Models and usage limits depend on the workspace plan. Setup: https://open-design.ai/help/cloud-api/.", + }, { // Verified 2026-09-21: docs.typesafe.ai/introduction/quickstart and /api document the fixed // endpoint, Bearer auth, jev-latest, and TYPESAFE_API_KEY; typesafe.ai/legal/mca permits API integration. diff --git a/structure/ops/docs-and-release.md b/structure/ops/docs-and-release.md index f5d7bae0fc6..2cd82aaf9cb 100644 --- a/structure/ops/docs-and-release.md +++ b/structure/ops/docs-and-release.md @@ -86,7 +86,7 @@ Manual navigation is defined in `docs-site/astro.config.mjs`. When adding a publ sidebar and either add localized copies or intentionally accept Starlight fallback behavior. Use slugs for local pages, including Platform Support and OS Keychain, so navigation preserves the selected locale. `tests/ci-workflows/docs-spanish-localization.test.ts` guards canonical Spanish coverage, literal provider-key references, protected remote examples, foreground quickstart alternatives, separate-terminal and Bash/stdin pairing recipes, Pi reasoning metadata, and the data/management credential and admission-header distinctions across shipped locale copies, including empty-header bearer fallback. `tests/ci-workflows/docs-remote-hub-claims.test.ts` validates Docker initialization against the image seed and configuration schema; `tests/ci-workflows/docs-bun-source-requirement.test.ts` checks current bundle claims against the package pin. Provider preset totals are recounted from the current registry when a preset lands. The -documented split is 111 total: 89 key-based, 18 OAuth, three local, and one default +documented split is 112 total: 90 key-based, 18 OAuth, three local, and one default ChatGPT-forward preset. The English and Spanish API-key catalog pages, every other locale's provider guide, and every locale's quickstart carry the same counts. Section 3 of the provider guide lives on its own page, `docs-site/src/content/docs/guides/api-key-catalog.md` (with its Spanish copy), so the guide stays under the file-size ratchet's 2,000-line default; the guide keeps a section 3 stub that links every moved heading anchor, and other locales keep section 3 in their provider guide until they add a translated catalog page. diff --git a/structure/providers-and-adapters.md b/structure/providers-and-adapters.md index f8da4c6f5bb..ac1e9652fa9 100644 --- a/structure/providers-and-adapters.md +++ b/structure/providers-and-adapters.md @@ -345,11 +345,11 @@ decision backends) lives in [JEV Decision Routing](providers/jev-decision.md), i ## Preset notes -The Crusoe preset uses the fixed-key preset path at `https://api.inference.crusoecloud.com/v1`. Its -registry-owned policy admits only public rows whose `architecture.modality` is `text` or +The `opendesign-go` key preset uses the existing Chat adapter at `https://amr-link.open-design.ai/v1`, discovers the workspace-scoped `/models` catalog without a static fallback roster, advertises no unverified reasoning-effort ladder, and preserves older same-named custom destinations. + +The Crusoe preset uses the fixed-key preset path at `https://api.inference.crusoecloud.com/v1`. Its registry-owned policy admits only public rows whose `architecture.modality` is `text` or `multimodal`, caps the response at 256 KiB and 256 raw rows, and leaves same-named custom -destinations untouched. Five catalog ids carry explicit text-and-image input metadata; -`openai/gpt-oss-120b` alone carries a direct low/medium/high `reasoning_effort` ladder. +destinations untouched. Five catalog ids carry explicit text-and-image input metadata; `openai/gpt-oss-120b` alone carries a direct low/medium/high `reasoning_effort` ladder. Provider-scoped capability hints remain authoritative when discovery returns an id without capabilities. In particular, `src/providers/registry/entries-core.ts` assigns OpenCode Go's live diff --git a/tests/ci-workflows/docs-provider-preset-counts.test.ts b/tests/ci-workflows/docs-provider-preset-counts.test.ts index e9aa30433e2..8952a7759c7 100644 --- a/tests/ci-workflows/docs-provider-preset-counts.test.ts +++ b/tests/ci-workflows/docs-provider-preset-counts.test.ts @@ -8,7 +8,7 @@ * failed, because both numbers read as plausible and no check compared them to the registry. * * AGENTS.md calls this class out directly: prefer deriving a count from the thing it describes - * over restating it. The counts here are derived from PROVIDER_REGISTRY, so the next preset that + * over restating it. The catalog counts derive from PROVIDER_REGISTRY and wizard counts from deriveInitProviders(), so the next preset that * lands fails this test in every locale at once instead of drifting. * * Each page is anchored by a locale-specific fragment rather than a number, so a reworded @@ -16,10 +16,12 @@ * nobody can locate is a sentence nobody is checking. */ import { describe, expect, test } from "bun:test"; +import { deriveInitProviders } from "../../src/providers/derive"; import { PROVIDER_REGISTRY } from "../../src/providers/registry"; import { repoPath } from "../helpers/repo-root"; const TOTAL = PROVIDER_REGISTRY.length; +const INIT_PRESETS = deriveInitProviders().length; const KEY_PRESETS = PROVIDER_REGISTRY.filter(entry => entry.authKind === "key").length; /** Guides state the total and the key-based split on one line. */ @@ -35,17 +37,17 @@ const GUIDES = [ { locale: "zh-tw", path: "docs-site/src/content/docs/zh-tw/guides/providers.md", anchor: "個 key-based" }, ] as const; -/** Quickstarts state the total only. */ +/** Quickstarts count selectable wizard presets, excluding deprecated registry rows and custom. */ const QUICKSTARTS = [ - { locale: "es", path: "docs-site/src/content/docs/es/getting-started/quickstart.md", anchor: "preajustes del registro integrado" }, - { locale: "en", path: "docs-site/src/content/docs/getting-started/quickstart.md", anchor: "built-in registry presets" }, - { locale: "ja", path: "docs-site/src/content/docs/ja/getting-started/quickstart.md", anchor: "組み込みレジストリプリセット" }, - { locale: "ko", path: "docs-site/src/content/docs/ko/getting-started/quickstart.md", anchor: "내장 레지스트리 프리셋" }, - { locale: "fr", path: "docs-site/src/content/docs/fr/getting-started/quickstart.md", anchor: "préréglages intégrés au registre" }, - { locale: "ru", path: "docs-site/src/content/docs/ru/getting-started/quickstart.md", anchor: "встроенных пресетов реестра" }, + { locale: "es", path: "docs-site/src/content/docs/es/getting-started/quickstart.md", anchor: "preajustes integrados disponibles" }, + { locale: "en", path: "docs-site/src/content/docs/getting-started/quickstart.md", anchor: "selectable built-in presets" }, + { locale: "ja", path: "docs-site/src/content/docs/ja/getting-started/quickstart.md", anchor: "選択可能な組み込みプリセット" }, + { locale: "ko", path: "docs-site/src/content/docs/ko/getting-started/quickstart.md", anchor: "선택 가능한 내장 프리셋" }, + { locale: "fr", path: "docs-site/src/content/docs/fr/getting-started/quickstart.md", anchor: "préréglages intégrés sélectionnables" }, + { locale: "ru", path: "docs-site/src/content/docs/ru/getting-started/quickstart.md", anchor: "доступных встроенных пресетов" }, { locale: "tr", path: "docs-site/src/content/docs/tr/getting-started/quickstart.md", anchor: "önayardan birini" }, - { locale: "zh-cn", path: "docs-site/src/content/docs/zh-cn/getting-started/quickstart.md", anchor: "个预设中选择一个" }, - { locale: "zh-tw", path: "docs-site/src/content/docs/zh-tw/getting-started/quickstart.md", anchor: "個預設中選擇一個" }, + { locale: "zh-cn", path: "docs-site/src/content/docs/zh-cn/getting-started/quickstart.md", anchor: "个可选内置预设中选择一个" }, + { locale: "zh-tw", path: "docs-site/src/content/docs/zh-tw/getting-started/quickstart.md", anchor: "個可選內建預設中選擇一個" }, ] as const; const STRUCTURE = { @@ -64,6 +66,8 @@ describe("documented provider preset counts match the registry", () => { test("the registry is the only source of the numbers under test", () => { // A derived count that collapsed to zero would make every assertion below vacuous. expect(TOTAL).toBeGreaterThan(0); + expect(INIT_PRESETS).toBeGreaterThan(0); + expect(INIT_PRESETS).toBeLessThanOrEqual(TOTAL); expect(KEY_PRESETS).toBeGreaterThan(0); expect(KEY_PRESETS).toBeLessThanOrEqual(TOTAL); }); @@ -77,9 +81,9 @@ describe("documented provider preset counts match the registry", () => { } for (const quickstart of QUICKSTARTS) { - test(`${quickstart.locale} quickstart states ${TOTAL} presets`, async () => { + test(`${quickstart.locale} quickstart states ${INIT_PRESETS} selectable presets`, async () => { const line = await anchoredLine(quickstart.path, quickstart.anchor); - expect(line, `${quickstart.path} total`).toContain(String(TOTAL)); + expect(line, `${quickstart.path} selectable presets`).toContain(String(INIT_PRESETS)); }); } diff --git a/tests/fixtures/test-layout-expected.json b/tests/fixtures/test-layout-expected.json index f007d908cc7..3ddebae1525 100644 --- a/tests/fixtures/test-layout-expected.json +++ b/tests/fixtures/test-layout-expected.json @@ -1264,7 +1264,8 @@ "aistupidlevel-provider.test.ts": "providers", "cheapaimodel-provider.test.ts": "providers", "abliteratedllm-provider.test.ts": "providers", - "tokenlab-provider.test.ts": "providers", "optional-shutdown-hooks.test.ts": "lib", + "tokenlab-provider.test.ts": "providers", + "opendesign-go-provider.test.ts": "providers", "optional-shutdown-hooks.test.ts": "lib", "orca-import.test.ts": "codex-integration", "orcarouter-provider.test.ts": "providers", "cc-switch-import.test.ts": "providers", "outbound-body-guard.test.ts": "server", "owned-service-home.test.ts": "server", "package-tree-fenced-restart.test.ts": "ci-workflows", "package-tree-integrity.test.ts": "ci-workflows", diff --git a/tests/providers/opendesign-go-provider.test.ts b/tests/providers/opendesign-go-provider.test.ts new file mode 100644 index 00000000000..a9d39470557 --- /dev/null +++ b/tests/providers/opendesign-go-provider.test.ts @@ -0,0 +1,81 @@ +import { afterEach, describe, expect, test } from "bun:test"; +import { gatherRoutedModels } from "../../src/codex/catalog"; +import { clearModelCache } from "../../src/codex/model-cache"; +import { buildModelsRequest } from "../../src/oauth"; +import { KEY_LOGIN_PROVIDERS, validateApiKey } from "../../src/oauth/key-providers"; +import { deriveInitProviders, deriveProviderPresets, providerConfigSeed } from "../../src/providers/derive"; +import { getProviderRegistryEntry } from "../../src/providers/registry"; +import { routeModel } from "../../src/router"; +import type { OcxConfig, OcxProviderConfig } from "../../src/types"; +import { withStubbedProviderFetch } from "../helpers/catalog-provider-fetch"; + +const originalFetch = globalThis.fetch; +const baseUrl = "https://amr-link.open-design.ai/v1"; + +afterEach(() => { + globalThis.fetch = originalFetch; + clearModelCache("opendesign-go"); +}); + +function config(overrides: Partial = {}): OcxConfig { + const entry = getProviderRegistryEntry("opendesign-go"); + if (!entry) throw new Error("missing OpenDesign Go preset"); + return withStubbedProviderFetch({ + port: 10100, + defaultProvider: "opendesign-go", + providers: { "opendesign-go": { ...providerConfigSeed(entry), apiKey: "test-key", ...overrides } }, + }); +} + +describe("OpenDesign Go provider", () => { + test("appears in the dashboard, init and key-login surfaces through the registry", () => { + expect(deriveInitProviders().find(row => row.id === "opendesign-go")).toMatchObject({ + label: "OpenDesign Go", kind: "key", adapter: "openai-chat", baseUrl, + }); + expect(deriveProviderPresets().find(row => row.id === "opendesign-go")).toMatchObject({ + auth: "key", dashboardUrl: "https://go.open-design.ai/", defaultModel: "deepseek-v4.1-flash", + }); + expect(KEY_LOGIN_PROVIDERS["opendesign-go"]?.baseUrl).toBe(baseUrl); + }); + + test("keeps upstream model ids intact and preserves older custom destinations", () => { + const route = routeModel(config(), "opendesign-go/deepseek-v4.1-flash"); + expect(route.modelId).toBe("deepseek-v4.1-flash"); + expect(route.provider).toMatchObject({ adapter: "openai-chat", baseUrl, reasoningEfforts: [] }); + const custom = config({ baseUrl: "https://gateway.example.test/v1" }); + expect(routeModel(custom, "opendesign-go/custom-model").provider.baseUrl) + .toBe("https://gateway.example.test/v1"); + expect(buildModelsRequest(custom.providers["opendesign-go"]!, "test-key", "opendesign-go").url) + .toBe("https://gateway.example.test/v1/models"); + }); + + test("discovers workspace models without restoring a default absent from the key's catalog", async () => { + let requests = 0; + globalThis.fetch = (async (input, init) => { + requests++; + expect(String(input)).toBe(`${baseUrl}/models`); + expect(new Headers(init?.headers).get("authorization")).toBe("Bearer test-key"); + expect(init?.redirect).toBe("manual"); + return Response.json({ object: "list", data: [{ id: "mimo-v2.6-flash", object: "model" }] }); + }) as typeof fetch; + const models = (await gatherRoutedModels(config())).filter(row => row.provider === "opendesign-go"); + expect(requests).toBe(1); + expect(models.map(row => row.id)).toEqual(["mimo-v2.6-flash"]); + }); + + test("validates keys using authenticated discovery and distinguishes outage from rejection", async () => { + for (const [status, expected] of [[200, true], [401, false], [503, "unknown"]] as const) { + const requests: Array<{ url: string; init?: RequestInit }> = []; + globalThis.fetch = (async (input, init) => { + requests.push({ url: String(input), init }); + return new Response(null, { status }); + }) as typeof fetch; + expect(await validateApiKey("opendesign-go", KEY_LOGIN_PROVIDERS["opendesign-go"]!, "test-key")) + .toBe(expected); + expect(requests).toHaveLength(1); + expect(requests[0]!.url).toBe(`${baseUrl}/models`); + expect(new Headers(requests[0]!.init?.headers).get("authorization")).toBe("Bearer test-key"); + expect(requests[0]!.init?.redirect).toBe("error"); + } + }); +});