Compare commits

...
Author SHA1 Message Date
Aiden Cline 449b926f40 fix: do not inherit reasoning options 2026-06-01 23:22:04 -05:00
Aiden Cline 2546ffe570 Merge pull request #1940 from matstrange/add-minimax-m3
Add MiniMax-M3 model (#1933)
2026-06-01 22:57:45 -05:00
Hex Agent f33ff9ba78 Add MiniMax-M3 model to 5 providers
MiniMax-M3 is MiniMax's new frontier multimodal coding model: 1M context
window (512K minimum on ollama-cloud), native text/image/video input,
tool calling, reasoning, and open weights.

Adds the model to all five providers where it should be available:

  - minimax (pay-as-you-go)
  - minimax-cn (pay-as-you-go, China)
  - minimax-coding-plan (token plan subscription)
  - minimax-cn-coding-plan (token plan subscription, China)
  - ollama-cloud

Closes #1933.

Notes for reviewers:
  - Cost fields on minimax/minimax-cn match M2.7; M3 docs state the
    pricing is unchanged from M2.7.
  - The 1M/512K context divergence on ollama-cloud is intentional —
    ollama advertises 1M with a 512K minimum, so 512K is the safe floor
    that won't surprise opencode users with mid-request rejections.
  - output = 131072 is inherited from the existing M2.7 files; MiniMax's
    published M3 docs only advertise the 1M input context, not a separate
    output cap.
  - The minimax-coding-plan variant has been verified end-to-end in
    opencode against the MiniMax token plan API.
2026-06-01 22:54:17 -05:00
Aiden Cline 98bf80cd77 Merge pull request #1949 from anomalyco/fix/github-copilot-context-limits-complete
fix(github-copilot): preserve model-specific limits
2026-06-01 22:49:00 -05:00
Aiden Cline 68660cad83 Merge pull request #1938 from anyapi-ai/dev
Add AnyAPI provider
2026-06-01 22:47:26 -05:00
Aiden Cline 062ba1fbb7 Merge pull request #1939 from anomalyco/automation/sync-models-openrouter
chore(sync): update OpenRouter model catalog
2026-06-01 22:46:18 -05:00
github-actions[bot] 6ce2f88eac chore(sync): update OpenRouter model catalog 2026-06-02 03:26:49 +00:00
Christina 3b55102a45 Add AnyAPI provider with 30 models
Adds AnyAPI (https://anyapi.ai) as a new provider. Models reuse existing
canonical entries through `extends`. Cost fields are omitted as AnyAPI uses
a credit-based pricing system. Validated locally with `bun validate`.

Models (30):
- openai: gpt-5.4, gpt-5.2, gpt-5.1, gpt-5, gpt-5-mini, gpt-4.1, gpt-4.1-mini, o4-mini, o3, o3-mini
- anthropic: claude-opus-4-7, claude-opus-4-6, claude-sonnet-4-6, claude-sonnet-4-5, claude-haiku-4-5
- google: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-3-pro-preview, gemini-3-flash-preview
- deepseek: deepseek-v4-pro, deepseek-v4-flash, deepseek-chat, deepseek-r1
- mistralai: mistral-large-2512, devstral-2512
- perplexity: sonar-pro, sonar-reasoning-pro
- cohere: command-r-plus-08-2024
- xai: grok-4.3
2026-06-01 17:14:24 +02:00
41 changed files with 205 additions and 11 deletions

No files matched your search

+3 -2
View File
@@ -46,7 +46,8 @@
- Merge semantics:
- Plain objects (`[cost]`, `[limit]`, `[modalities]`, `[provider]`, `[experimental]`, …) are **deep-merged**
- Arrays (e.g. `modalities.input`) and primitives are **replaced** wholesale by the child
- Any field the child omits is inherited verbatim from the base
- Any field the child omits is inherited verbatim from the base, except `reasoning_options`
- `reasoning_options` describes the endpoint interface and is never inherited; each derived provider must declare the controls its API exposes explicitly
- `omit` runs **after** the merge and deletes each dot-path from the result (used when the child needs to *remove* something the base defines, e.g. a provider-specific experimental mode). Every listed path must exist in the merged model, else an error is thrown. Ancestor tables that become empty as a result are also pruned, so `omit = ["experimental.modes.fast"]` yields no `experimental` key in the final JSON when `fast` was the only mode.
- Chains are allowed (A extends B extends C); cycles throw
- The base model must exist; `[extends.from]` pointing at a missing provider/model is an error
@@ -72,4 +73,4 @@
| `attachment`, `reasoning`, `tool_call`, `open_weights` | Yes | Boolean capabilities |
| `cost`, `limit`, `modalities` | Yes | Objects with their own required fields |
| `family`, `knowledge`, `temperature`, `structured_output` | No | Optional metadata |
| `status` | No | Use for `"alpha"`, `"beta"`, `"deprecated"` lifecycle |
| `status` | No | Use for `"alpha"`, `"beta"`, `"deprecated"` lifecycle |
+4 -1
View File
@@ -104,8 +104,11 @@ export async function generate(directory: string) {
}
const { extends: extendsConfig, ...overrides } = pendingModel.model;
// Reasoning controls describe the endpoint interface, not just the model.
// Derived providers must declare the controls their API exposes explicitly.
const { reasoning_options: _reasoningOptions, ...inherited } = baseModel;
const merged: Record<string, unknown> = structuredClone(
mergeDeep(baseModel, overrides),
mergeDeep(inherited, overrides),
);
for (const omit of extendsConfig.omit ?? []) {
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 44 40" fill="currentColor">
<path d="M30.4629 10.9775L0 39.6572L23.877 0L30.4629 10.9775ZM30.5039 19.8975C32.2655 19.8976 33.8971 20.8245 34.7988 22.3379L43.0703 36.2217C43.8645 37.5548 42.9033 39.2451 41.3516 39.2451H35.3623C33.6007 39.245 31.9691 38.3181 31.0674 36.8047L20.9951 19.8975H30.5039Z"/>
</svg>

After

Width:  |  Height:  |  Size: 374 B

@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-haiku-4-5"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-opus-4-6"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-opus-4-7"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-sonnet-4-5"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "anthropic/claude-sonnet-4-6"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "cohere/command-r-plus-08-2024"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "deepseek/deepseek-chat"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "deepseek/deepseek-reasoner"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "deepseek/deepseek-v4-flash"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "deepseek/deepseek-v4-pro"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "google/gemini-2.5-flash-lite"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "google/gemini-2.5-flash"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "google/gemini-2.5-pro"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "google/gemini-3-flash-preview"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "google/gemini-3-pro-preview"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "mistral/devstral-2512"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "mistral/mistral-large-2512"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-4.1-mini"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-4.1"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-5-mini"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-5.1"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-5.2"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-5.4"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/gpt-5"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/o3-mini"
omit = ["cost"]
+3
View File
@@ -0,0 +1,3 @@
[extends]
from = "openai/o3"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "openai/o4-mini"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "perplexity/sonar-pro"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "perplexity/sonar-reasoning-pro"
omit = ["cost"]
@@ -0,0 +1,3 @@
[extends]
from = "xai/grok-4.3"
omit = ["cost"]
+5
View File
@@ -0,0 +1,5 @@
name = "AnyAPI"
npm = "@ai-sdk/openai-compatible"
env = ["ANYAPI_API_KEY"]
api = "https://api.anyapi.ai/v1"
doc = "https://docs.anyapi.ai"
@@ -0,0 +1,23 @@
name = "MiniMax-M3"
family = "minimax"
release_date = "2026-06-01"
last_updated = "2026-06-01"
attachment = true
reasoning = true
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
context = 512_000
output = 131072
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -0,0 +1,23 @@
name = "MiniMax-M3"
family = "minimax"
release_date = "2026-06-01"
last_updated = "2026-06-01"
attachment = true
reasoning = true
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0.30
output = 1.20
cache_read = 0.06
cache_write = 0.375
[limit]
context = 512_000
output = 131072
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -0,0 +1,23 @@
name = "MiniMax-M3"
family = "minimax"
release_date = "2026-06-01"
last_updated = "2026-06-01"
attachment = true
reasoning = true
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0
output = 0
cache_read = 0
cache_write = 0
[limit]
context = 512_000
output = 131072
[modalities]
input = ["text", "image", "video"]
output = ["text"]
+23
View File
@@ -0,0 +1,23 @@
name = "MiniMax-M3"
family = "minimax"
release_date = "2026-06-01"
last_updated = "2026-06-01"
attachment = true
reasoning = true
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0.30
output = 1.20
cache_read = 0.06
cache_write = 0.375
[limit]
context = 512_000
output = 131072
[modalities]
input = ["text", "image", "video"]
output = ["text"]
@@ -7,7 +7,7 @@ from = "minimax/MiniMax-M2.7"
omit = ["cost.cache_read", "cost.cache_write"]
[cost]
input = 0.26
input = 0.279
output = 1.2
[limit]
@@ -11,12 +11,12 @@ knowledge = "2025-06-30"
open_weights = true
[cost]
input = 0.09
output = 0.3
input = 0.0428
output = 0.1716
[limit]
context = 262_144
output = 262_144
context = 128_000
output = 32_000
[modalities]
input = ["text"]
@@ -10,9 +10,9 @@ structured_output = false
open_weights = true
[cost]
input = 0.066
output = 0.26
cache_read = 0.029
input = 0.063
output = 0.21
cache_read = 0.021
[limit]
context = 262_144