converse-mcp-server 4.11.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +3 -3
- package/README.md +23 -21
- package/docs/API.md +20 -18
- package/docs/EXAMPLES.md +2 -2
- package/docs/PROVIDERS.md +20 -18
- package/package.json +1 -1
- package/src/prompts/helpPrompt.js +2 -2
- package/src/providers/codex.js +17 -7
- package/src/providers/copilot.js +29 -3
- package/src/providers/openai.js +49 -18
- package/src/tools/chat.js +1 -1
package/.env.example
CHANGED
|
@@ -101,11 +101,11 @@ CLOUDFLARE_API_TOKEN=your_cloudflare_api_token_here
|
|
|
101
101
|
# The model a bare provider name ("codex", "openai", ...) and "auto" use.
|
|
102
102
|
# Each must be a model ID or alias from that provider's catalog; startup fails
|
|
103
103
|
# with "did you mean" suggestions otherwise. Per request, use "provider:model".
|
|
104
|
-
# CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
104
|
+
# CODEX_DEFAULT_MODEL=gpt-6.2-astra # gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.3-codex-spark (CODEX_MODEL is the legacy name)
|
|
105
105
|
# CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
106
106
|
# AGY_DEFAULT_MODEL=gemini-4-hydrogen # Antigravity CLI: gemini-4-carbon (default, requires Google AI Ultra), gemini-4-hydrogen, gemini-3.8-flash
|
|
107
|
-
# COPILOT_DEFAULT_MODEL=gpt-6.
|
|
108
|
-
# OPENAI_DEFAULT_MODEL=gpt-6.
|
|
107
|
+
# COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is the legacy name
|
|
108
|
+
# OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
109
109
|
# GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
110
110
|
# XAI_DEFAULT_MODEL=grok-4.5
|
|
111
111
|
# ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
package/README.md
CHANGED
|
@@ -234,10 +234,12 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
234
234
|
|
|
235
235
|
### OpenAI Models
|
|
236
236
|
|
|
237
|
-
- **gpt-6.
|
|
238
|
-
- **gpt-6-
|
|
237
|
+
- **gpt-6.2-sol** (default; aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`): GPT-6.2 Sol (1M context, 128K output) - Everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max`
|
|
238
|
+
- **gpt-6.2-astra** (alias: `astra`): Frontier GPT-6 flagship (1M context, 128K output) - Hardest end-to-end work; effort `low`–`max` (EXPENSIVE: 4x Sol)
|
|
239
|
+
- **gpt-6.1-sol** (alias: `gpt-6.1`): Previous GPT-6.1 Sol (1M context, 128K output), reachable by versioned name only; effort `low`–`max`
|
|
240
|
+
- **gpt-6-sol**: Original GPT-6 Sol (1M context, 128K output), reachable by versioned name only; effort `none`–`max`
|
|
239
241
|
- **gpt-6-luna** (alias: `luna`): Most efficient GPT-6 (1M context, 128K output) - Focused, high-volume tasks; effort `none`–`max`
|
|
240
|
-
- **gpt-6-astra
|
|
242
|
+
- **gpt-6-astra**: Previous GPT-6 Astra (1M context, 128K output), reachable by versioned name only; effort `low`–`max` (EXPENSIVE: 5x Sol)
|
|
241
243
|
- **gpt-5.6-sol** (alias: `gpt-5.6`): Previous flagship GPT-5.6 (1M context, 128K output)
|
|
242
244
|
- **gpt-5.6-terra** (alias: `terra`): Lower-cost GPT-5.6 (400K context, 128K output) - Performance competitive with GPT-5.5 at half the price
|
|
243
245
|
- **gpt-5.6-luna**: Fastest, most affordable GPT-5.6 (400K context, 128K output)
|
|
@@ -324,11 +326,11 @@ All models reason by default and return reasoning traces (`reasoning_content`),
|
|
|
324
326
|
|
|
325
327
|
### Codex Models
|
|
326
328
|
|
|
327
|
-
OpenAI Codex agentic coding assistant. `codex` uses its default model (GPT-6 Astra, or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks one (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`):
|
|
329
|
+
OpenAI Codex agentic coding assistant. `codex` uses its default model (GPT-6.2 Astra, or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks one (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`):
|
|
328
330
|
|
|
329
|
-
- **gpt-6.
|
|
331
|
+
- **gpt-6.2-astra** (`astra`), **gpt-6.2-sol** (`sol`, `gpt-6`), **gpt-6.1-sol**, **gpt-6-sol**, **gpt-6-luna** (`luna`), **gpt-6-astra**
|
|
330
332
|
- **gpt-5.6-sol** (`gpt-5.6`), **gpt-5.6-terra** (`terra`), **gpt-5.6-luna**, **gpt-5.5**, **gpt-5.3-codex-spark** (`spark`)
|
|
331
|
-
- `reasoning_effort` maps onto the tiers the chosen backend accepts (
|
|
333
|
+
- `reasoning_effort` maps onto the tiers the chosen backend accepts (GPT-6 Sol, Luna, and GPT-5.6: `none` through `max`; GPT-6.2 Astra/Sol, GPT-6.1 Sol and GPT-6 Astra: `low` through `max`, no `none`)
|
|
332
334
|
- Thread-based sessions with persistent context
|
|
333
335
|
- Direct filesystem access from working directory
|
|
334
336
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -348,9 +350,9 @@ Claude via the Claude Agent SDK. `claude` uses its default model (Fable 5.2, or
|
|
|
348
350
|
|
|
349
351
|
### GitHub Copilot SDK Models
|
|
350
352
|
|
|
351
|
-
Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.
|
|
353
|
+
Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.2-sol`) — Copilot never serves bare model names. `copilot` alone uses GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`. Uses your GitHub Copilot subscription (`gh auth login`) - no API key needed:
|
|
352
354
|
|
|
353
|
-
- **OpenAI**: `gpt-6.
|
|
355
|
+
- **OpenAI**: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all support `reasoning_effort`)
|
|
354
356
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
355
357
|
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
356
358
|
|
|
@@ -411,11 +413,11 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
411
413
|
# Optional: per-provider default model, used for a bare provider name (`codex`,
|
|
412
414
|
# `openai`, ...) and for "auto". Must be a model or alias from that provider's
|
|
413
415
|
# list; startup fails with suggestions otherwise.
|
|
414
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
416
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL still works as a fallback
|
|
415
417
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
416
418
|
AGY_DEFAULT_MODEL=gemini-4-carbon # Requires Google AI Ultra; other plans can use gemini:hydrogen or set AGY_DEFAULT_MODEL=gemini-4-hydrogen
|
|
417
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
418
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
419
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL still works as a fallback
|
|
420
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
419
421
|
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
420
422
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
421
423
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
@@ -483,21 +485,21 @@ Every entry in `models` takes one of four forms:
|
|
|
483
485
|
"auto";
|
|
484
486
|
|
|
485
487
|
// A provider: its default model (hardcoded, or <PROVIDER>_DEFAULT_MODEL)
|
|
486
|
-
"codex"; // -> Codex (GPT-6 Astra)
|
|
488
|
+
"codex"; // -> Codex (GPT-6.2 Astra)
|
|
487
489
|
"claude"; // -> Claude Agent SDK (Claude Fable 5.2)
|
|
488
490
|
"gemini"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
489
|
-
"openai"; // -> OpenAI API (GPT-6.
|
|
491
|
+
"openai"; // -> OpenAI API (GPT-6.2 Sol)
|
|
490
492
|
|
|
491
493
|
// provider:model — that model on that provider only
|
|
492
|
-
"codex:astra"; // -> Codex (GPT-6 Astra)
|
|
493
|
-
"openai:gpt-6-astra"; // -> OpenAI API, even when Codex is available
|
|
494
|
+
"codex:astra"; // -> Codex (GPT-6.2 Astra)
|
|
495
|
+
"openai:gpt-6.2-astra"; // -> OpenAI API, even when Codex is available
|
|
494
496
|
"gemini:pro"; // -> Antigravity CLI (Gemini 4 Carbon)
|
|
495
497
|
"google:gemini-3.1-pro-preview"; // -> Google API
|
|
496
498
|
"copilot:sonnet"; // -> GitHub Copilot (Claude Sonnet 5.5)
|
|
497
499
|
"openrouter:z-ai/glm-5.2:online"; // -> OpenRouter with web search opt-in
|
|
498
500
|
|
|
499
501
|
// A bare model ID or alias — the first configured provider that offers it
|
|
500
|
-
"gpt-6-astra"; // -> Codex, else OpenAI API
|
|
502
|
+
"gpt-6.2-astra"; // -> Codex, else OpenAI API
|
|
501
503
|
"opus"; // -> Claude Agent SDK, else Anthropic API
|
|
502
504
|
"pro"; // -> Antigravity CLI (gemini-4-carbon), else Google API
|
|
503
505
|
"grok"; // -> grok-4.5 (XAI)
|
|
@@ -506,7 +508,7 @@ Every entry in `models` takes one of four forms:
|
|
|
506
508
|
|
|
507
509
|
**Bare model names** go to the first provider, in the order below, whose model list contains the name and that is set up (API key present; for Codex and Claude, a login file or token; for Antigravity, the `agy` binary). If that provider then fails with an authentication or availability error, the next provider that serves **the same model** takes over — a provider whose alias of that name points at a different model is never substituted (bare `flash` is Gemini 3.8 Flash on Antigravity and Gemini 2.5 Flash on the Google API, so it does not fail over between them). Copilot is never picked for bare names; use `copilot:<model>`.
|
|
508
510
|
|
|
509
|
-
**Unknown names are rejected**, never guessed: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-
|
|
511
|
+
**Unknown names are rejected**, never guessed: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`. OpenRouter is the exception for full `vendor/model` slugs, which are checked against OpenRouter's live catalog.
|
|
510
512
|
|
|
511
513
|
**Auto Model Behavior:**
|
|
512
514
|
|
|
@@ -516,11 +518,11 @@ Every entry in `models` takes one of four forms:
|
|
|
516
518
|
|
|
517
519
|
Provider priority order (subscription-based local providers first, then API-key providers), used by both `auto` and bare model names:
|
|
518
520
|
|
|
519
|
-
1. Codex (`codex` → GPT-6 Astra)
|
|
521
|
+
1. Codex (`codex` → GPT-6.2 Astra)
|
|
520
522
|
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4 Carbon)
|
|
521
523
|
3. Claude Agent SDK (`claude` → Claude Fable 5.2)
|
|
522
|
-
4. Copilot (`copilot` → GPT-6.
|
|
523
|
-
5. OpenAI (`openai` → GPT-6.
|
|
524
|
+
4. Copilot (`copilot` → GPT-6.2 Sol; `auto` only, never bare names)
|
|
525
|
+
5. OpenAI (`openai` → GPT-6.2 Sol)
|
|
524
526
|
6. Google (`google` → Gemini 4 Carbon)
|
|
525
527
|
7. XAI (`xai` → Grok 4.5)
|
|
526
528
|
8. Anthropic (`anthropic` → Claude Opus 5.5)
|
|
@@ -529,7 +531,7 @@ Provider priority order (subscription-based local providers first, then API-key
|
|
|
529
531
|
11. OpenRouter (`openrouter` → GLM 5.2)
|
|
530
532
|
12. Abliteration (`abliteration` / `ablit` → `abliterated-model-large-v2`)
|
|
531
533
|
|
|
532
|
-
**Local agent permissions:** Bare model names and `auto` reach the local agent providers whenever they are set up, not only when named explicitly. The Antigravity CLI runs `agy` with `--dangerously-skip-permissions` because headless calls cannot prompt for tool approval — every tool request is auto-approved, including shell commands and file writes. The Claude Agent SDK runs with `bypassPermissions`. Codex uses `CODEX_SANDBOX_MODE` (read-only by default). A read-only prompt is not an enforced security boundary for these providers, so use them only with trusted prompts and context. To keep a request on a plain API, name the provider: `google:pro`, `anthropic:opus`, `openai:gpt-6-astra`.
|
|
534
|
+
**Local agent permissions:** Bare model names and `auto` reach the local agent providers whenever they are set up, not only when named explicitly. The Antigravity CLI runs `agy` with `--dangerously-skip-permissions` because headless calls cannot prompt for tool approval — every tool request is auto-approved, including shell commands and file writes. The Claude Agent SDK runs with `bypassPermissions`. Codex uses `CODEX_SANDBOX_MODE` (read-only by default). A read-only prompt is not an enforced security boundary for these providers, so use them only with trusted prompts and context. To keep a request on a plain API, name the provider: `google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`.
|
|
533
535
|
|
|
534
536
|
### Advanced Configuration
|
|
535
537
|
|
package/docs/API.md
CHANGED
|
@@ -509,10 +509,12 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
509
509
|
|
|
510
510
|
| Model | Aliases | Context | Output | Notes |
|
|
511
511
|
|-------|---------|---------|--------|-------|
|
|
512
|
-
| `gpt-6.
|
|
513
|
-
| `gpt-6-
|
|
512
|
+
| `gpt-6.2-sol` | `gpt-6`, `gpt-6.2`, `gpt-5`, `sol` | 1M | 128K | Default OpenAI model; everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max` |
|
|
513
|
+
| `gpt-6.2-astra` | `astra` | 1M | 128K | Frontier flagship (expensive); effort `low`–`max`, no `none` |
|
|
514
|
+
| `gpt-6.1-sol` | `gpt-6.1` | 1M | 128K | Previous GPT-6.1 Sol; reachable by versioned name only; effort `low`–`max` |
|
|
515
|
+
| `gpt-6-sol` | — | 1M | 128K | Original GPT-6 Sol; reachable by versioned name only; effort `none`–`max` |
|
|
514
516
|
| `gpt-6-luna` | `luna` | 1M | 128K | Most efficient GPT-6; effort `none`–`max` |
|
|
515
|
-
| `gpt-6-astra` |
|
|
517
|
+
| `gpt-6-astra` | — | 1M | 128K | Previous GPT-6 Astra (expensive); reachable by versioned name only; effort `low`–`max`, no `none` |
|
|
516
518
|
| `gpt-5.6-sol` | `gpt-5.6` | 1M | 128K | Previous flagship |
|
|
517
519
|
| `gpt-5.6-terra` | `terra` | 400K | 128K | Lower-cost GPT-5.6 tier |
|
|
518
520
|
| `gpt-5.6-luna` | — | 400K | 128K | Fastest GPT-5.6 tier |
|
|
@@ -611,14 +613,14 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
611
613
|
|
|
612
614
|
**Codex** is an agentic coding assistant with direct filesystem access:
|
|
613
615
|
|
|
614
|
-
- **Model**: `codex` (underlying model: GPT-6 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
615
|
-
- **Backend selection**: `codex:<model>` per request (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`) from the Codex catalog: `gpt-6.
|
|
616
|
+
- **Model**: `codex` (underlying model: GPT-6.2 Astra by default, or `CODEX_DEFAULT_MODEL`)
|
|
617
|
+
- **Backend selection**: `codex:<model>` per request (e.g. `codex:luna`, `codex:astra`, `codex:gpt-5.6-terra`) from the Codex catalog: `gpt-6.2-astra` (`astra`), `gpt-6.2-sol` (`sol`, `gpt-6`), `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna` (`luna`), `gpt-6-astra`, `gpt-5.6-sol` (`gpt-5.6`), `gpt-5.6-terra` (`terra`), `gpt-5.6-luna`, `gpt-5.5`, `gpt-5.3-codex-spark` (`spark`). Other names are rejected with suggestions. Bare IDs from this list (e.g. `gpt-6.2-astra`) go to Codex first, then the OpenAI API.
|
|
616
618
|
- **Availability**: the Codex SDK is installed and `~/.codex/auth.json` exists (`$CODEX_HOME/auth.json` when set) or `CODEX_API_KEY` is set
|
|
617
619
|
- **Thread-based sessions**: persistent conversation history via `continuation_id` in `chat` mode
|
|
618
620
|
- **Direct file access**: reads files from the working directory (paths relative to `CLIENT_CWD`)
|
|
619
621
|
- **Response times**: 6-20 seconds typical (complex tasks may take minutes)
|
|
620
622
|
- **Authentication**: ChatGPT login OR `CODEX_API_KEY` (NOT `OPENAI_API_KEY`)
|
|
621
|
-
- `reasoning_effort` is clamped onto the tiers the chosen backend accepts (GPT-6 Sol/Luna and GPT-5.6: `none`–`max`; GPT-6 Astra and GPT-6.1 Sol: `low`–`max`, no `none`); web search is not applicable — Codex manages its own execution
|
|
623
|
+
- `reasoning_effort` is clamped onto the tiers the chosen backend accepts (GPT-6 Sol/Luna and GPT-5.6: `none`–`max`; GPT-6.2 Astra/Sol, GPT-6 Astra and GPT-6.1 Sol: `low`–`max`, no `none`); web search is not applicable — Codex manages its own execution
|
|
622
624
|
|
|
623
625
|
### Claude Agent SDK (subscription)
|
|
624
626
|
|
|
@@ -663,9 +665,9 @@ agy
|
|
|
663
665
|
|
|
664
666
|
### GitHub Copilot SDK (subscription)
|
|
665
667
|
|
|
666
|
-
Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot-sdk:`; e.g. `copilot:gpt-6.
|
|
668
|
+
Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot-sdk:`; e.g. `copilot:gpt-6.2-sol`) — Copilot never serves bare model names. `copilot` alone uses GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`. Available when the Copilot SDK is installed; uses your GitHub Copilot subscription (`gh auth login`) — no API key needed:
|
|
667
669
|
|
|
668
|
-
- **OpenAI**: `gpt-6.
|
|
670
|
+
- **OpenAI**: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all accept `reasoning_effort`)
|
|
669
671
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
670
672
|
- **Google**: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
671
673
|
- Any other `copilot:<id>` is rejected with suggestions
|
|
@@ -679,11 +681,11 @@ Every entry in `models` takes one of four forms:
|
|
|
679
681
|
- **`provider:model`** — that model on that provider only; the model must be in that provider's list.
|
|
680
682
|
- **Bare `model`** — the first provider, in the order `codex`, `gemini-cli`, `claude`, `openai`, `google`, `xai`, `anthropic`, `mistral`, `deepseek`, `openrouter`, `abliteration`, whose list contains the ID or alias and that is set up (API key for API providers; SDK plus login for Codex and the Claude Agent SDK; the `agy` binary for Antigravity). On an authentication or availability error, the next set-up provider serving **the same model** takes over; a provider whose alias points at a different model is never substituted (bare `flash` is Gemini 3.8 Flash on Antigravity and Gemini 2.5 Flash on the Google API). Copilot never serves bare names.
|
|
681
683
|
|
|
682
|
-
**Unknown names are rejected**, never forwarded: the error lists up to three close matches, e.g. `Unknown model "gtp-6-
|
|
684
|
+
**Unknown names are rejected**, never forwarded: the error lists up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`. The exception is OpenRouter: a full `vendor/model` slug (bare or `openrouter:`) is validated against OpenRouter's live catalog.
|
|
683
685
|
|
|
684
686
|
```text
|
|
685
687
|
"auto" // First available provider (chat); first 3 (consensus)
|
|
686
|
-
"gpt-6" // Codex (-> gpt-6.
|
|
688
|
+
"gpt-6" // Codex (-> gpt-6.2-sol), else OpenAI API
|
|
687
689
|
"openai:gpt-6" // OpenAI API only
|
|
688
690
|
"gemini-2.5-flash" // Google API
|
|
689
691
|
"pro" // Antigravity CLI (-> gemini-4-carbon), else Google API
|
|
@@ -701,10 +703,10 @@ Every entry in `models` takes one of four forms:
|
|
|
701
703
|
"claude:opus" // Claude Agent SDK (Claude Opus 5.5)
|
|
702
704
|
"codex:luna" // Codex (GPT-6 Luna)
|
|
703
705
|
"gemini" // Antigravity CLI (Gemini 4 Carbon)
|
|
704
|
-
"copilot:gpt-6.
|
|
706
|
+
"copilot:gpt-6.2-sol" // GitHub Copilot SDK
|
|
705
707
|
```
|
|
706
708
|
|
|
707
|
-
**Local agent permissions:** bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request and the Claude Agent SDK runs with `bypassPermissions`, so a read-only prompt is not an enforced boundary there. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6-astra`) to keep a request on a plain API.
|
|
709
|
+
**Local agent permissions:** bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request and the Claude Agent SDK runs with `bypassPermissions`, so a read-only prompt is not an enforced boundary there. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`) to keep a request on a plain API.
|
|
708
710
|
|
|
709
711
|
**Auto behavior:**
|
|
710
712
|
- **chat mode**: `["auto"]` selects the first available provider and uses its default model, with failover to the next provider on error.
|
|
@@ -730,7 +732,7 @@ Control Codex behavior through environment variables:
|
|
|
730
732
|
- **`CODEX_SANDBOX_MODE`** — filesystem access: `read-only` (default), `workspace-write`, `danger-full-access` (containers only)
|
|
731
733
|
- **`CODEX_SKIP_GIT_CHECK`** — `true` (default) works in any directory; `false` requires a Git repository
|
|
732
734
|
- **`CODEX_APPROVAL_POLICY`** — `never` (default, recommended for servers), `untrusted`, `on-failure`, `on-request`
|
|
733
|
-
- **`CODEX_DEFAULT_MODEL`** — model used for `codex` and `auto` (default: `gpt-6-astra`); the legacy name `CODEX_MODEL` is honored when it is unset
|
|
735
|
+
- **`CODEX_DEFAULT_MODEL`** — model used for `codex` and `auto` (default: `gpt-6.2-astra`); the legacy name `CODEX_MODEL` is honored when it is unset
|
|
734
736
|
- **`CODEX_API_KEY`** — optional API key for headless deployments (alternative to ChatGPT login)
|
|
735
737
|
|
|
736
738
|
**Example (.env):**
|
|
@@ -739,7 +741,7 @@ CODEX_API_KEY=your_codex_api_key_here
|
|
|
739
741
|
CODEX_SANDBOX_MODE=read-only
|
|
740
742
|
CODEX_SKIP_GIT_CHECK=true
|
|
741
743
|
CODEX_APPROVAL_POLICY=never
|
|
742
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
744
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra
|
|
743
745
|
```
|
|
744
746
|
|
|
745
747
|
### Default Models
|
|
@@ -747,11 +749,11 @@ CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
|
747
749
|
Each provider's default model (used for its bare provider name and for `auto`) can be set with `<PROVIDER>_DEFAULT_MODEL`. The value must be a model ID or alias from that provider's list; startup fails with "Did you mean" suggestions otherwise (OpenRouter also accepts any `vendor/model` slug).
|
|
748
750
|
|
|
749
751
|
```bash
|
|
750
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
752
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
751
753
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
752
754
|
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
753
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
754
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
755
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
756
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
755
757
|
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
756
758
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
757
759
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
@@ -881,7 +883,7 @@ Set `async: true` on a chat request for long-running work:
|
|
|
881
883
|
|
|
882
884
|
**Invalid model** (unknown names are rejected with up to three suggestions):
|
|
883
885
|
```json
|
|
884
|
-
{ "error": "Unknown model \"gtp-6-
|
|
886
|
+
{ "error": "Unknown model \"gtp-6-luna\". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?" }
|
|
885
887
|
```
|
|
886
888
|
|
|
887
889
|
**All models failed (multi-model chat):** the error lists each model and its failure. In consensus/roundtable, individual model/turn failures are recorded in the result (`failed` entries and trailing failure details) rather than aborting the whole request.
|
package/docs/EXAMPLES.md
CHANGED
|
@@ -85,7 +85,7 @@ Use `provider:model` to run a model on one provider only, or a provider name alo
|
|
|
85
85
|
"tool": "chat",
|
|
86
86
|
"arguments": {
|
|
87
87
|
"prompt": "Compare these two approaches to request batching",
|
|
88
|
-
"models": ["openai:gpt-6-astra", "google:pro", "anthropic:opus", "codex:luna", "copilot:sonnet"]
|
|
88
|
+
"models": ["openai:gpt-6.2-astra", "google:pro", "anthropic:opus", "codex:luna", "copilot:sonnet"]
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
```
|
|
@@ -446,7 +446,7 @@ Codex maintains conversation history through threads in `chat` mode:
|
|
|
446
446
|
|
|
447
447
|
### Choosing the Codex Model
|
|
448
448
|
|
|
449
|
-
`codex` uses GPT-6 Astra (or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks another model from the Codex list:
|
|
449
|
+
`codex` uses GPT-6.2 Astra (or `CODEX_DEFAULT_MODEL`); `codex:<model>` picks another model from the Codex list:
|
|
450
450
|
|
|
451
451
|
```json
|
|
452
452
|
{
|
package/docs/PROVIDERS.md
CHANGED
|
@@ -9,10 +9,12 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
9
9
|
- **Get Key**: [platform.openai.com/api-keys](https://platform.openai.com/api-keys)
|
|
10
10
|
- **Environment Variable**: `OPENAI_API_KEY`
|
|
11
11
|
- **Supported Models**:
|
|
12
|
-
- `gpt-6.
|
|
13
|
-
- `gpt-6-
|
|
12
|
+
- `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`) - Default OpenAI model (1M context, 128K output); everyday coding, agentic workflows, and professional work at a quarter of the Astra price; effort `low`–`max`
|
|
13
|
+
- `gpt-6.2-astra` (alias: `astra`) - Frontier GPT-6 flagship, 4x the Sol price (1M context, 128K output; effort `low`–`max`)
|
|
14
|
+
- `gpt-6.1-sol` (alias: `gpt-6.1`) - Previous GPT-6.1 Sol (1M context, 128K output), reachable by versioned name only; effort `low`–`max`
|
|
15
|
+
- `gpt-6-sol` - Original GPT-6 Sol (1M context, 128K output), reachable by versioned name only; effort `none`–`max`
|
|
14
16
|
- `gpt-6-luna` (alias: `luna`) - Most efficient GPT-6 for focused, high-volume tasks (1M context, 128K output; effort `none`–`max`)
|
|
15
|
-
- `gpt-6-astra`
|
|
17
|
+
- `gpt-6-astra` - Previous GPT-6 Astra, 5x the Sol price, reachable by versioned name only (1M context, 128K output; effort `low`–`max`)
|
|
16
18
|
- `gpt-5.6-sol` (alias: `gpt-5.6`) - Previous flagship GPT-5.6
|
|
17
19
|
- `gpt-5.6-terra` (alias: `terra`) - Lower-cost GPT-5.6, competitive with GPT-5.5
|
|
18
20
|
- `gpt-5.6-luna` - Fastest, most affordable GPT-5.6
|
|
@@ -123,15 +125,15 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
123
125
|
- `CODEX_SANDBOX_MODE` - Filesystem access control (default: read-only)
|
|
124
126
|
- `CODEX_SKIP_GIT_CHECK` - Skip Git repository validation (default: true)
|
|
125
127
|
- `CODEX_APPROVAL_POLICY` - Command approval behavior (default: never)
|
|
126
|
-
- `CODEX_DEFAULT_MODEL` - Model used for bare `codex` and `auto` (default: `gpt-6-astra`; any Codex model ID or alias below). The legacy name `CODEX_MODEL` is honored when `CODEX_DEFAULT_MODEL` is unset.
|
|
128
|
+
- `CODEX_DEFAULT_MODEL` - Model used for bare `codex` and `auto` (default: `gpt-6.2-astra`; any Codex model ID or alias below). The legacy name `CODEX_MODEL` is honored when `CODEX_DEFAULT_MODEL` is unset.
|
|
127
129
|
- **Supported Models**:
|
|
128
|
-
- `codex` - OpenAI Codex agentic coding assistant (GPT-6 Astra by default)
|
|
130
|
+
- `codex` - OpenAI Codex agentic coding assistant (GPT-6.2 Astra by default)
|
|
129
131
|
- `codex:<model>` - Same, with an explicit backend from the Codex catalog:
|
|
130
|
-
- `gpt-6.
|
|
132
|
+
- `gpt-6.2-astra` (`astra`), `gpt-6.2-sol` (`sol`, `gpt-6`), `gpt-6.1-sol`, `gpt-6-sol`, `gpt-6-luna` (`luna`), `gpt-6-astra`
|
|
131
133
|
- `gpt-5.6-sol` (`gpt-5.6`), `gpt-5.6-terra` (`terra`), `gpt-5.6-luna`, `gpt-5.5`, `gpt-5.3-codex-spark` (`spark`)
|
|
132
134
|
- Names outside this catalog are rejected with suggestions
|
|
133
|
-
- These IDs are also bare names: `gpt-6-astra`, `luna` or `terra` alone go to Codex first and fail over to the OpenAI API (see [Model Routing Logic](#model-routing-logic))
|
|
134
|
-
- `reasoning_effort` is clamped onto what the backend accepts (
|
|
135
|
+
- These IDs are also bare names: `gpt-6.2-astra`, `luna` or `terra` alone go to Codex first and fail over to the OpenAI API (see [Model Routing Logic](#model-routing-logic))
|
|
136
|
+
- `reasoning_effort` is clamped onto what the backend accepts (GPT-6 Sol, Luna, and GPT-5.6: `none`–`max`; GPT-6.2 Astra/Sol, GPT-6.1 Sol and GPT-6 Astra: `low`–`max`, no `none`)
|
|
135
137
|
- Thread-based sessions with persistent context
|
|
136
138
|
- Direct filesystem access from working directory
|
|
137
139
|
- Typical response time: 6-20 seconds (longer for complex tasks)
|
|
@@ -257,10 +259,10 @@ agy
|
|
|
257
259
|
- **Setup Required**: Authenticate the GitHub CLI and ensure your account has an active Copilot subscription
|
|
258
260
|
- **Availability**: The Copilot SDK (`@github/copilot-sdk`) is installed
|
|
259
261
|
- **Environment Variables**:
|
|
260
|
-
- `COPILOT_DEFAULT_MODEL` - Model used for bare `copilot` and `auto` (default: `gpt-6.
|
|
261
|
-
- **Supported Models** (namespace-only: reach them with `copilot:`, `github-copilot:` or `copilot-sdk:`, e.g. `copilot:gpt-6.
|
|
262
|
-
- `copilot` - GPT-6.
|
|
263
|
-
- OpenAI: `gpt-6.
|
|
262
|
+
- `COPILOT_DEFAULT_MODEL` - Model used for bare `copilot` and `auto` (default: `gpt-6.2-sol`). The legacy name `COPILOT_MODEL` is honored when `COPILOT_DEFAULT_MODEL` is unset.
|
|
263
|
+
- **Supported Models** (namespace-only: reach them with `copilot:`, `github-copilot:` or `copilot-sdk:`, e.g. `copilot:gpt-6.2-sol`; Copilot never serves bare model names):
|
|
264
|
+
- `copilot` - GPT-6.2 Sol, or `COPILOT_DEFAULT_MODEL`
|
|
265
|
+
- OpenAI: `gpt-6.2-sol` (aliases: `gpt-6`, `gpt-6.2`, `gpt-5`, `sol`), `gpt-6.2-astra` (alias: `astra`), `gpt-6.1-sol` (alias: `gpt-6.1`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna`
|
|
264
266
|
- Anthropic: `claude-opus-5.5` (aliases: `opus`, `claude`; Copilot Pro+/Max/Business/Enterprise), `claude-fable-5.2` (alias: `fable`), `claude-fable-5.1`, `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
265
267
|
- Google: `gemini-4-carbon` (aliases: `gemini`, `carbon`, `gemini-4`), `gemini-4-hydrogen` (alias: `hydrogen`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
266
268
|
- **Reasoning**: The GPT-6 and GPT-5.6 tiers accept `reasoning_effort` (clamped onto Copilot's `low`–`xhigh`).
|
|
@@ -300,11 +302,11 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
300
302
|
Each provider has a `<PROVIDER>_DEFAULT_MODEL` variable that sets the model used for its bare provider name (`codex`, `openai`, ...) and for `auto`. The value must be a model ID or alias from that provider's list; startup fails with "Did you mean" suggestions otherwise. OpenRouter also accepts any `vendor/model` slug.
|
|
301
303
|
|
|
302
304
|
```bash
|
|
303
|
-
CODEX_DEFAULT_MODEL=gpt-6-astra
|
|
305
|
+
CODEX_DEFAULT_MODEL=gpt-6.2-astra # CODEX_MODEL is honored as a legacy fallback
|
|
304
306
|
CLAUDE_DEFAULT_MODEL=claude-fable-5-2
|
|
305
307
|
AGY_DEFAULT_MODEL=gemini-4-carbon # Antigravity CLI (gemini)
|
|
306
|
-
COPILOT_DEFAULT_MODEL=gpt-6.
|
|
307
|
-
OPENAI_DEFAULT_MODEL=gpt-6.
|
|
308
|
+
COPILOT_DEFAULT_MODEL=gpt-6.2-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
309
|
+
OPENAI_DEFAULT_MODEL=gpt-6.2-sol
|
|
308
310
|
GOOGLE_DEFAULT_MODEL=gemini-4-carbon
|
|
309
311
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
310
312
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
@@ -396,16 +398,16 @@ Routing is derived entirely from each provider's model list (canonical IDs plus
|
|
|
396
398
|
|
|
397
399
|
4. **`auto`** — the first available provider's default model, in the priority order above with Copilot between the Claude Agent SDK and OpenAI.
|
|
398
400
|
|
|
399
|
-
**Unknown names are rejected**, never guessed or forwarded: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-
|
|
401
|
+
**Unknown names are rejected**, never guessed or forwarded: a typo or an unlisted model returns an error with up to three close matches, e.g. `Unknown model "gtp-6-luna". Did you mean: gpt-6-luna, copilot:gpt-6-luna, gpt-5.6-luna?` or `Unknown openai model "spark" in "openai:spark". Did you mean: codex:spark?`.
|
|
400
402
|
|
|
401
403
|
**OpenRouter slugs** are the one open-ended case: a full `vendor/model` slug (bare, or with the `openrouter:` namespace) routes to OpenRouter and is validated against OpenRouter's live catalog. `openrouter/auto` (aliases `auto-router`, `openrouter-auto`) selects OpenRouter's auto-router.
|
|
402
404
|
|
|
403
|
-
**Local agent permissions**: Bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request (`--dangerously-skip-permissions`) and the Claude Agent SDK runs with `bypassPermissions`. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6-astra`) to keep a request off the local agents.
|
|
405
|
+
**Local agent permissions**: Bare names and `auto` reach the local agent providers whenever they are set up. The Antigravity CLI auto-approves every tool request (`--dangerously-skip-permissions`) and the Claude Agent SDK runs with `bypassPermissions`. Name the API provider (`google:pro`, `anthropic:opus`, `openai:gpt-6.2-astra`) to keep a request off the local agents.
|
|
404
406
|
|
|
405
407
|
Examples:
|
|
406
408
|
|
|
407
409
|
```text
|
|
408
|
-
"gpt-6" // Codex (gpt-6.
|
|
410
|
+
"gpt-6" // Codex (gpt-6.2-sol), else OpenAI API
|
|
409
411
|
"openai:gpt-6" // OpenAI API only
|
|
410
412
|
"fable" // Claude Agent SDK (claude-fable-5-2), else Anthropic API
|
|
411
413
|
"opus" // Claude Agent SDK (claude-opus-5-5), else Anthropic API
|
package/package.json
CHANGED
|
@@ -470,8 +470,8 @@ ${toolsSection}
|
|
|
470
470
|
Every entry in \`models\` takes one of these forms:
|
|
471
471
|
|
|
472
472
|
- **\`provider\`** — that provider's default model (e.g. \`codex\`, \`claude\`, \`gemini\`, \`openai\`). Override a default with \`<PROVIDER>_DEFAULT_MODEL\` (see Environment Variables).
|
|
473
|
-
- **\`provider:model\`** — that model on that provider only (e.g. \`codex:astra\`, \`openai:gpt-6-astra\`, \`gemini:pro\`, \`copilot:sonnet\`). \`model\` is a model ID or alias from the provider's list below.
|
|
474
|
-
- **\`model\`** — a bare model ID or alias (e.g. \`gpt-6-astra\`, \`opus\`). It goes to the first configured provider that offers it, in this order: ${BARE_NAME_PRIORITY.join(', ')}. When that provider fails with an auth or availability error, the next provider offering the same model takes over. Copilot is reachable only as \`copilot:model\`.
|
|
473
|
+
- **\`provider:model\`** — that model on that provider only (e.g. \`codex:astra\`, \`openai:gpt-6.2-astra\`, \`gemini:pro\`, \`copilot:sonnet\`). \`model\` is a model ID or alias from the provider's list below.
|
|
474
|
+
- **\`model\`** — a bare model ID or alias (e.g. \`gpt-6.2-astra\`, \`opus\`). It goes to the first configured provider that offers it, in this order: ${BARE_NAME_PRIORITY.join(', ')}. When that provider fails with an auth or availability error, the next provider offering the same model takes over. Copilot is reachable only as \`copilot:model\`.
|
|
475
475
|
- **\`auto\`** — the default model of the first available provider (${PROVIDER_PRIORITY.join(', ')}).
|
|
476
476
|
|
|
477
477
|
Provider namespaces: ${Object.entries(PROVIDER_NAMESPACES)
|
package/src/providers/codex.js
CHANGED
|
@@ -31,11 +31,12 @@ import {
|
|
|
31
31
|
* catalog key is the canonical model ID the router resolves to. The reasoning tiers are the ones each model's API accepts, verified
|
|
32
32
|
* against the API's own rejection messages (gpt-6-astra and gpt-6.1-sol:
|
|
33
33
|
* "Supported values are: 'low', 'medium', 'high', 'xhigh', and 'max'"; the
|
|
34
|
-
* GPT-6 and GPT-5.6 Sol/Luna tiers accept 'none' as well). The
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* GPT-6 and GPT-5.6 Sol/Luna tiers accept 'none' as well). The GPT-6.2 tiers
|
|
35
|
+
* come from the model pages, which state that the API rejects 'none'. The
|
|
36
|
+
* SDK's ModelReasoningEffort type is the union across models, so the backend
|
|
37
|
+
* is the authority and requests are clamped per model.
|
|
37
38
|
*
|
|
38
|
-
* Bare tier names (sol, luna) and the bare generation (gpt-6) point at the
|
|
39
|
+
* Bare tier names (sol, astra, luna) and the bare generation (gpt-6) point at the
|
|
39
40
|
* current release of each tier; older releases stay reachable by full slug.
|
|
40
41
|
*
|
|
41
42
|
* Codex also exposes 'ultra' above 'max', but that tier turns on automatic
|
|
@@ -63,8 +64,17 @@ function codexModel(slug, friendlyName, { aliases, contextWindow = 272000, suppo
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
const SUPPORTED_MODELS = {
|
|
67
|
+
'gpt-6.2-astra': codexModel('gpt-6.2-astra', 'GPT-6.2 Astra', {
|
|
68
|
+
aliases: ['astra', 'gpt6.2-astra'],
|
|
69
|
+
supportedEfforts: NO_NONE_EFFORTS,
|
|
70
|
+
}),
|
|
71
|
+
'gpt-6.2-sol': codexModel('gpt-6.2-sol', 'GPT-6.2 Sol', {
|
|
72
|
+
aliases: ['sol', 'gpt-6', 'gpt6', 'gpt-6.2', 'gpt6.2', 'gpt6.2-sol', 'gpt-6-codex'],
|
|
73
|
+
contextWindow: 500000,
|
|
74
|
+
supportedEfforts: NO_NONE_EFFORTS,
|
|
75
|
+
}),
|
|
66
76
|
'gpt-6.1-sol': codexModel('gpt-6.1-sol', 'GPT-6.1 Sol', {
|
|
67
|
-
aliases: ['
|
|
77
|
+
aliases: ['gpt-6.1', 'gpt6.1', 'gpt6.1-sol'],
|
|
68
78
|
supportedEfforts: NO_NONE_EFFORTS,
|
|
69
79
|
}),
|
|
70
80
|
'gpt-6-sol': codexModel('gpt-6-sol', 'GPT-6 Sol', {
|
|
@@ -74,7 +84,7 @@ const SUPPORTED_MODELS = {
|
|
|
74
84
|
aliases: ['luna', 'gpt6-luna'],
|
|
75
85
|
}),
|
|
76
86
|
'gpt-6-astra': codexModel('gpt-6-astra', 'GPT-6 Astra', {
|
|
77
|
-
aliases: ['
|
|
87
|
+
aliases: ['gpt6-astra'],
|
|
78
88
|
supportedEfforts: NO_NONE_EFFORTS,
|
|
79
89
|
}),
|
|
80
90
|
'gpt-5.6-sol': codexModel('gpt-5.6-sol', 'GPT-5.6 Sol', {
|
|
@@ -97,7 +107,7 @@ const SUPPORTED_MODELS = {
|
|
|
97
107
|
}),
|
|
98
108
|
};
|
|
99
109
|
|
|
100
|
-
const DEFAULT_MODEL = 'gpt-6-astra';
|
|
110
|
+
const DEFAULT_MODEL = 'gpt-6.2-astra';
|
|
101
111
|
|
|
102
112
|
/**
|
|
103
113
|
* Custom error class for Codex provider errors
|
package/src/providers/copilot.js
CHANGED
|
@@ -21,7 +21,7 @@ import { clampReasoningEffort } from '../utils/reasoningEffort.js';
|
|
|
21
21
|
import { findCatalogEntry, findCatalogId } from '../utils/modelCatalog.js';
|
|
22
22
|
import { isPackageResolvable } from '../utils/localProviderAuth.js';
|
|
23
23
|
|
|
24
|
-
const DEFAULT_MODEL = 'gpt-6.
|
|
24
|
+
const DEFAULT_MODEL = 'gpt-6.2-sol';
|
|
25
25
|
|
|
26
26
|
// Keyed by the SDK model ID, which is also the canonical ID the router
|
|
27
27
|
// resolves to. Every name here is reached only through the `copilot:`
|
|
@@ -29,9 +29,35 @@ const DEFAULT_MODEL = 'gpt-6.1-sol';
|
|
|
29
29
|
const SUPPORTED_MODELS = {
|
|
30
30
|
// OpenAI models
|
|
31
31
|
// `gpt-6` / `gpt-5.6` point at that generation's latest Sol, matching
|
|
32
|
-
// Copilot's own bare-alias behavior; `sol`/`luna` and the legacy `gpt-5`
|
|
32
|
+
// Copilot's own bare-alias behavior; `sol`/`astra`/`luna` and the legacy `gpt-5`
|
|
33
33
|
// shortcut follow the current release of each tier. `codex` and `gpt` point
|
|
34
34
|
// at the latest GPT tier.
|
|
35
|
+
'gpt-6.2-sol': {
|
|
36
|
+
modelName: 'gpt-6.2-sol',
|
|
37
|
+
friendlyName: 'GPT-6.2 Sol (via Copilot)',
|
|
38
|
+
contextWindow: 1050000,
|
|
39
|
+
maxOutputTokens: 32768,
|
|
40
|
+
supportsStreaming: true,
|
|
41
|
+
supportsImages: false,
|
|
42
|
+
supportsWebSearch: false,
|
|
43
|
+
supportsReasoningEffort: true,
|
|
44
|
+
timeout: 1800000,
|
|
45
|
+
description: 'OpenAI GPT-6.2 Sol via Copilot subscription',
|
|
46
|
+
aliases: ['gpt-6', 'gpt-6.2', 'gpt-5', 'gpt', 'codex', 'sol'],
|
|
47
|
+
},
|
|
48
|
+
'gpt-6.2-astra': {
|
|
49
|
+
modelName: 'gpt-6.2-astra',
|
|
50
|
+
friendlyName: 'GPT-6.2 Astra (via Copilot)',
|
|
51
|
+
contextWindow: 1050000,
|
|
52
|
+
maxOutputTokens: 32768,
|
|
53
|
+
supportsStreaming: true,
|
|
54
|
+
supportsImages: false,
|
|
55
|
+
supportsWebSearch: false,
|
|
56
|
+
supportsReasoningEffort: true,
|
|
57
|
+
timeout: 1800000,
|
|
58
|
+
description: 'OpenAI GPT-6.2 Astra via Copilot subscription',
|
|
59
|
+
aliases: ['astra'],
|
|
60
|
+
},
|
|
35
61
|
'gpt-6.1-sol': {
|
|
36
62
|
modelName: 'gpt-6.1-sol',
|
|
37
63
|
friendlyName: 'GPT-6.1 Sol (via Copilot)',
|
|
@@ -43,7 +69,7 @@ const SUPPORTED_MODELS = {
|
|
|
43
69
|
supportsReasoningEffort: true,
|
|
44
70
|
timeout: 1800000,
|
|
45
71
|
description: 'OpenAI GPT-6.1 Sol via Copilot subscription',
|
|
46
|
-
aliases: ['gpt-6
|
|
72
|
+
aliases: ['gpt-6.1'],
|
|
47
73
|
},
|
|
48
74
|
'gpt-6-sol': {
|
|
49
75
|
modelName: 'gpt-6-sol',
|
package/src/providers/openai.js
CHANGED
|
@@ -11,8 +11,8 @@ import { clampReasoningEffort } from '../utils/reasoningEffort.js';
|
|
|
11
11
|
|
|
12
12
|
// Values each family accepts for reasoning effort, per the model pages at
|
|
13
13
|
// developers.openai.com/api/docs/models. The GPT-6 Sol/Luna tiers and the
|
|
14
|
-
// GPT-5.6 family take the whole ladder; GPT-6 Astra
|
|
15
|
-
// 'none'; the GPT-5.4 tier stops at 'xhigh'; the original GPT-5 minis kept
|
|
14
|
+
// GPT-5.6 family take the whole ladder; GPT-6 Astra, GPT-6.1 Sol and the
|
|
15
|
+
// GPT-6.2 models have no 'none'; the GPT-5.4 tier stops at 'xhigh'; the original GPT-5 minis kept
|
|
16
16
|
// 'minimal' but never gained 'xhigh'; the o-series predates both ends of the
|
|
17
17
|
// ladder; GPT-5.4 Pro starts at 'medium'. Models without a list are passed the
|
|
18
18
|
// requested value unchanged, except uncatalogued GPT-5 Pro snapshots, which
|
|
@@ -26,13 +26,13 @@ const O_SERIES_EFFORT_TIERS = ['low', 'medium', 'high'];
|
|
|
26
26
|
const PRO_PASSTHROUGH_EFFORT_TIERS = ['high'];
|
|
27
27
|
|
|
28
28
|
// Define supported models with their capabilities.
|
|
29
|
-
// Bare tier names (sol, luna) and the bare generation (gpt-6, and the legacy
|
|
29
|
+
// Bare tier names (sol, astra, luna) and the bare generation (gpt-6, and the legacy
|
|
30
30
|
// gpt-5 shortcut) follow the current release of each tier; older tiers stay
|
|
31
31
|
// reachable by their versioned names.
|
|
32
32
|
const SUPPORTED_MODELS = {
|
|
33
|
-
'gpt-6.
|
|
34
|
-
modelName: 'gpt-6.
|
|
35
|
-
friendlyName: 'OpenAI (GPT-6.
|
|
33
|
+
'gpt-6.2-sol': {
|
|
34
|
+
modelName: 'gpt-6.2-sol',
|
|
35
|
+
friendlyName: 'OpenAI (GPT-6.2 Sol)',
|
|
36
36
|
contextWindow: 1050000,
|
|
37
37
|
maxOutputTokens: 128000,
|
|
38
38
|
supportsStreaming: true,
|
|
@@ -42,23 +42,53 @@ const SUPPORTED_MODELS = {
|
|
|
42
42
|
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
43
43
|
timeout: 10800000, // 3 hours
|
|
44
44
|
description:
|
|
45
|
-
'Default GPT-6 model (1M context, 128K output) -
|
|
45
|
+
'Default GPT-6 model (1M context, 128K output) - Everyday coding, agentic workflows and professional work at a quarter of the Astra price',
|
|
46
46
|
aliases: [
|
|
47
47
|
'gpt-6',
|
|
48
48
|
'gpt6',
|
|
49
49
|
'gpt 6',
|
|
50
|
-
'gpt-6.
|
|
51
|
-
'gpt6.
|
|
52
|
-
'gpt 6.
|
|
50
|
+
'gpt-6.2',
|
|
51
|
+
'gpt6.2',
|
|
52
|
+
'gpt 6.2',
|
|
53
53
|
'gpt-5',
|
|
54
54
|
'gpt5',
|
|
55
55
|
'gpt 5',
|
|
56
56
|
'sol',
|
|
57
|
-
'gpt6.
|
|
58
|
-
'gpt-6.
|
|
59
|
-
'gpt 6.
|
|
57
|
+
'gpt6.2-sol',
|
|
58
|
+
'gpt-6.2sol',
|
|
59
|
+
'gpt 6.2 sol',
|
|
60
60
|
],
|
|
61
61
|
},
|
|
62
|
+
'gpt-6.2-astra': {
|
|
63
|
+
modelName: 'gpt-6.2-astra',
|
|
64
|
+
friendlyName: 'OpenAI (GPT-6.2 Astra)',
|
|
65
|
+
contextWindow: 1050000,
|
|
66
|
+
maxOutputTokens: 128000,
|
|
67
|
+
supportsStreaming: true,
|
|
68
|
+
supportsImages: true,
|
|
69
|
+
supportsWebSearch: true,
|
|
70
|
+
supportsResponsesAPI: true,
|
|
71
|
+
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
72
|
+
timeout: 10800000, // 3 hours
|
|
73
|
+
description:
|
|
74
|
+
'Frontier GPT-6 flagship (1M context, 128K output) - Maximum intelligence for the hardest end-to-end work (EXPENSIVE: 4x Sol)',
|
|
75
|
+
aliases: ['astra', 'gpt6.2-astra', 'gpt-6.2astra', 'gpt 6.2 astra'],
|
|
76
|
+
},
|
|
77
|
+
'gpt-6.1-sol': {
|
|
78
|
+
modelName: 'gpt-6.1-sol',
|
|
79
|
+
friendlyName: 'OpenAI (GPT-6.1 Sol)',
|
|
80
|
+
contextWindow: 1050000,
|
|
81
|
+
maxOutputTokens: 128000,
|
|
82
|
+
supportsStreaming: true,
|
|
83
|
+
supportsImages: true,
|
|
84
|
+
supportsWebSearch: true,
|
|
85
|
+
supportsResponsesAPI: true,
|
|
86
|
+
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
87
|
+
timeout: 10800000, // 3 hours
|
|
88
|
+
description:
|
|
89
|
+
'Previous GPT-6.1 Sol (1M context, 128K output) - Coding, computer use and professional work; reachable by versioned name only',
|
|
90
|
+
aliases: ['gpt-6.1', 'gpt6.1', 'gpt 6.1', 'gpt6.1-sol', 'gpt-6.1sol', 'gpt 6.1 sol'],
|
|
91
|
+
},
|
|
62
92
|
'gpt-6-sol': {
|
|
63
93
|
modelName: 'gpt-6-sol',
|
|
64
94
|
friendlyName: 'OpenAI (GPT-6 Sol)',
|
|
@@ -71,7 +101,7 @@ const SUPPORTED_MODELS = {
|
|
|
71
101
|
supportedEfforts: FULL_EFFORT_TIERS,
|
|
72
102
|
timeout: 10800000, // 3 hours
|
|
73
103
|
description:
|
|
74
|
-
'
|
|
104
|
+
'Original GPT-6 Sol (1M context, 128K output) - Complex coding and agentic workflows; the only GPT-6 Sol that accepts none effort',
|
|
75
105
|
aliases: ['gpt6-sol', 'gpt-6sol', 'gpt 6 sol'],
|
|
76
106
|
},
|
|
77
107
|
'gpt-6-luna': {
|
|
@@ -101,8 +131,8 @@ const SUPPORTED_MODELS = {
|
|
|
101
131
|
supportedEfforts: NO_NONE_EFFORT_TIERS,
|
|
102
132
|
timeout: 10800000, // 3 hours
|
|
103
133
|
description:
|
|
104
|
-
'
|
|
105
|
-
aliases: ['
|
|
134
|
+
'Previous GPT-6 Astra (1M context, 128K output) - Reachable by versioned name only (EXPENSIVE: 5x Sol)',
|
|
135
|
+
aliases: ['gpt6-astra', 'gpt-6astra', 'gpt 6 astra'],
|
|
106
136
|
},
|
|
107
137
|
'gpt-5.6-sol': {
|
|
108
138
|
modelName: 'gpt-5.6-sol',
|
|
@@ -440,7 +470,8 @@ function resolveReasoningEffort(resolvedModel, modelConfig, reasoningEffort) {
|
|
|
440
470
|
}
|
|
441
471
|
if (
|
|
442
472
|
resolvedModel.startsWith('gpt-6-astra') ||
|
|
443
|
-
resolvedModel.startsWith('gpt-6.1-sol')
|
|
473
|
+
resolvedModel.startsWith('gpt-6.1-sol') ||
|
|
474
|
+
resolvedModel.startsWith('gpt-6.2')
|
|
444
475
|
) {
|
|
445
476
|
return clampReasoningEffort(reasoningEffort, NO_NONE_EFFORT_TIERS);
|
|
446
477
|
}
|
|
@@ -568,7 +599,7 @@ function convertMessages(messages, useResponsesAPI = false) {
|
|
|
568
599
|
/**
|
|
569
600
|
* Main OpenAI provider implementation
|
|
570
601
|
*/
|
|
571
|
-
const DEFAULT_MODEL = 'gpt-6.
|
|
602
|
+
const DEFAULT_MODEL = 'gpt-6.2-sol';
|
|
572
603
|
|
|
573
604
|
export const openaiProvider = {
|
|
574
605
|
defaultModel: DEFAULT_MODEL,
|
package/src/tools/chat.js
CHANGED
|
@@ -1165,7 +1165,7 @@ chatTool.inputSchema = {
|
|
|
1165
1165
|
items: { type: 'string' },
|
|
1166
1166
|
minItems: 1,
|
|
1167
1167
|
description:
|
|
1168
|
-
'Models to use. Examples: ["auto"] (recommended), ["codex"], ["codex", "gemini", "claude"], ["codex:astra"], ["gpt-6-astra"]. Forms: "provider" (its default model), "provider:model" (that provider only), or a bare "model" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode "chat" each model answers independently; in "consensus" they refine after seeing each other; in "roundtable" they speak in the given ORDER, each seeing the transcript. Default: ["auto"].',
|
|
1168
|
+
'Models to use. Examples: ["auto"] (recommended), ["codex"], ["codex", "gemini", "claude"], ["codex:astra"], ["gpt-6.2-astra"]. Forms: "provider" (its default model), "provider:model" (that provider only), or a bare "model" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode "chat" each model answers independently; in "consensus" they refine after seeing each other; in "roundtable" they speak in the given ORDER, each seeing the transcript. Default: ["auto"].',
|
|
1169
1169
|
},
|
|
1170
1170
|
mode: {
|
|
1171
1171
|
type: 'string',
|