diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index c7c79947b..5991be2d7 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "1752b15a21fb99c7a8004d24705f5109d659fcd7", - "syncedAt": "2026-04-25T06:37:07.673Z" + "sha": "2ff7eb36cf669364f891429b717fcd0c263b85e9", + "syncedAt": "2026-04-25T06:41:00.410Z" } diff --git a/docs/cli/models.md b/docs/cli/models.md index 0a1f7a66e..1fd734a50 100644 --- a/docs/cli/models.md +++ b/docs/cli/models.md @@ -50,6 +50,10 @@ Notes: - `models list --all` includes bundled provider-owned static catalog rows even when you have not authenticated with that provider yet. Those rows still show as unavailable until matching auth is configured. +- `models list` keeps native model metadata and runtime caps distinct. In table + output, `Ctx` shows `contextTokens/contextWindow` when an effective runtime + cap differs from the native context window; JSON rows include `contextTokens` + when a provider exposes that cap. - `models list --provider ` filters by provider id, such as `moonshot` or `openai-codex`. It does not accept display labels from interactive provider pickers, such as `Moonshot AI`. diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index bf233135c..0299ab687 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -30,11 +30,9 @@ Reference for **LLM/model providers** (not chat channels like WhatsApp/Telegram) `google-gemini-cli`, or `codex-cli` when you want a local CLI backend. Legacy `claude-cli/*`, `google-gemini-cli/*`, and `codex-cli/*` refs migrate back to canonical provider refs with the runtime recorded separately. -- GPT-5.5 is currently available through subscription/OAuth routes: - `openai-codex/gpt-5.5` in PI or `openai/gpt-5.5` with the Codex app-server - harness. The direct API-key route for `openai/gpt-5.5` is supported once - OpenAI enables GPT-5.5 on the public API; until then use API-enabled models - such as `openai/gpt-5.4` for `OPENAI_API_KEY` setups. +- GPT-5.5 is available through `openai-codex/gpt-5.5` in PI, the native + Codex app-server harness, and the public OpenAI API when the bundled PI + catalog exposes `openai/gpt-5.5` for your install. ## Plugin-owned provider behavior @@ -73,10 +71,10 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no** - Provider: `openai` - Auth: `OPENAI_API_KEY` - Optional rotation: `OPENAI_API_KEYS`, `OPENAI_API_KEY_1`, `OPENAI_API_KEY_2`, plus `OPENCLAW_LIVE_OPENAI_KEY` (single override) -- Example models: `openai/gpt-5.4`, `openai/gpt-5.4-mini` -- GPT-5.5 direct API support is future-ready here once OpenAI exposes GPT-5.5 on the API -- Verify direct API availability with `openclaw models list --provider openai` - before using `openai/gpt-5.5` without the Codex app-server runtime +- Example models: `openai/gpt-5.5`, `openai/gpt-5.4`, `openai/gpt-5.4-mini` +- GPT-5.5 direct API support depends on the bundled PI catalog version for + your install; verify with `openclaw models list --provider openai` before + using `openai/gpt-5.5` without the Codex app-server runtime. - CLI: `openclaw onboard --auth-choice openai-api-key` - Default transport is `auto` (WebSocket-first, SSE fallback) - Override per model via `agents.defaults.models["openai/"].params.transport` (`"sse"`, `"websocket"`, or `"auto"`) @@ -133,9 +131,9 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no** `User-Agent`) are only attached on native Codex traffic to `chatgpt.com/backend-api`, not generic OpenAI-compatible proxies - Shares the same `/fast` toggle and `params.fastMode` config as direct `openai/*`; OpenClaw maps that to `service_tier=priority` -- `openai-codex/gpt-5.5` keeps native `contextWindow = 1000000` and a default runtime `contextTokens = 272000`; override the runtime cap with `models.providers.openai-codex.models[].contextTokens` +- `openai-codex/gpt-5.5` uses the Codex catalog native `contextWindow = 400000` and default runtime `contextTokens = 272000`; override the runtime cap with `models.providers.openai-codex.models[].contextTokens` - Policy note: OpenAI Codex OAuth is explicitly supported for external tools/workflows like OpenClaw. -- Current GPT-5.5 access uses this OAuth/subscription route until OpenAI enables GPT-5.5 on the public API. +- Use `openai-codex/gpt-5.5` when you want the Codex OAuth/subscription route; use `openai/gpt-5.5` when your API-key setup and local catalog expose the public API route. ```json5 { diff --git a/docs/gateway/config-tools.md b/docs/gateway/config-tools.md index 8882c363c..4795d1ef7 100644 --- a/docs/gateway/config-tools.md +++ b/docs/gateway/config-tools.md @@ -415,7 +415,7 @@ OpenClaw uses the built-in model catalog. Add custom providers via `models.provi - `request.allowPrivateNetwork`: when `true`, allow HTTPS to `baseUrl` when DNS resolves to private, CGNAT, or similar ranges, via the provider HTTP fetch guard (operator opt-in for trusted self-hosted OpenAI-compatible endpoints). WebSocket uses the same `request` for headers/TLS but not that fetch SSRF gate. Default `false`. - `models.providers.*.models`: explicit provider model catalog entries. - `models.providers.*.models.*.contextWindow`: native model context window metadata. -- `models.providers.*.models.*.contextTokens`: optional runtime context cap. Use this when you want a smaller effective context budget than the model's native `contextWindow`. +- `models.providers.*.models.*.contextTokens`: optional runtime context cap. Use this when you want a smaller effective context budget than the model's native `contextWindow`; `openclaw models list` shows both values when they differ. - `models.providers.*.models.*.compat.supportsDeveloperRole`: optional compatibility hint. For `api: "openai-completions"` with a non-empty non-native `baseUrl` (host not `api.openai.com`), OpenClaw forces this to `false` at runtime. Empty/omitted `baseUrl` keeps default OpenAI behavior. - `models.providers.*.models.*.compat.requiresStringContent`: optional compatibility hint for string-only OpenAI-compatible chat endpoints. When `true`, OpenClaw flattens pure text `messages[].content` arrays into plain strings before sending the request. - `plugins.entries.amazon-bedrock.config.discovery`: Bedrock auto-discovery settings root.