Repository navigation
feat(v2): complete model APIs, packages and prices for OpenAI, Anthropic, Google, Vertex, xAI, Mistral, Cohere, DeepSeek, Perplexity and Meta - #11135
Conversation
Action items
|
|
Thanks. Fixed the Vercel copies in 92e553ca8: the 13 full copies now use Declined:
|
|
No actionable findings. |
92e553c to
705501b
Compare
Action items
|
|
Fixed in the new head: Vercel conversions: the full |
08e8785 to
958819b
Compare
|
No actionable findings. |
…g v1; document Mistral API tables
…els, and the Moderations API
…ompatible embeddings
…ls Vercel symlinks (pending approval) Vercel's files for these models were symlinks to the first-party files, so the first-party API tables would leak into Vercel. This replaces the 16 symlinks with Vercel files (the 13 full OpenAI and Claude copies use base_model with only the overrides), then lists the same APIs as the other first-party models. v1: no field changes except canonical_model_id on the 13 base_model files; the 16 models also move within Vercel's model map. The next Vercel sync will start patching these files from Vercel's catalog.
958819b to
7addb8a
Compare
|
No actionable findings. |
Problem
The first-party lab files listed one API per model, even where the lab serves the same model on several (OpenAI Chat Completions and Responses, Anthropic's OpenAI-compatible endpoint, Gemini Interactions, and so on).
Change
Code. The v1 fix (a first table without its own
aisdkuses the provider'snpm;@ai-sdk/xaiis Responses-default) already landed with #11136. This PR adds the matching v2resolveProtocolchange for@ai-sdk/xai, and the Mistral sync now writes FIM, Moderations and OCR tables from/v1/modelscapabilities (documented in sync.md).Per provider. The first table is always what the model already published.
[api.moderations]on omni-moderation-latest (was Responses)https://api.anthropic.com/v1) on 16 (+1 pending)/embeddingson 2 embedding models[api.responses]first, then Chat Completions, on 7 models; multi-agent is Responses only (Chat rejects it)/v1/modelscapabilities (completion_fim,moderation,ocr); real sync then dry run = 0 changescohere-chaton north-mini-codereasoning_contenton the reasoning modelsmeta/chat) and Messages (meta/messages) next to Responses on all 6/v1/responses(it needsperplexity/sonar, which is the separateperplexity-agentprovider)Packages. Every new table names the most specific
@opencode/aientry that exists (openai/chat,google/interactions,google-vertex/interactions,google-vertex/responses,cohere/chat,meta/chat,meta/messages) or a generic one (openai-compatible,anthropic-compatible). Where none can call the API, it saysnone; those are added to the gaps note (Mistral FIM/moderations/OCR, Google Interactions with non-text output, xAI chat).Prices. Already complete for these providers (context tiers, cache TTLs, priority/flex/fast, regional uplift, web search); nothing added. Batch is still not modeled.
Pending user approval (last commit)
Vercel symlinks 16 of these files (
providers/vercel/models/openai/gpt-4o.toml -> ../../../openai/models/gpt-4o.toml, etc.), so first-party tables would leak into Vercel. The last commit replaces those 16 symlinks with copies of the current files and adds the same tables to the first-party files.base_model(keeping only Vercel-served overrides). v1: those 13 gaincanonical_model_id.gemini-2.5-flashcontext 1,048,576 -> 1,000,000).Out of scope / report only
endpoints/openapi/chat/completionsneeds the IDgoogle/<id>, so it can't be listed on these files./v1/messagesanswers but is under "Legacy & Deprecated"; Mistral Conversations API; Gemini computer-use (every API demands its tool); Gemini 2.5 TTS and 3.8 Flash-Lite TTS on Interactions (not confirmed).muse-image-1.0,muse-voice-transcribe-1.0,sam-3.1; Vertex Muse Spark 1.3.xai/grok-4.1-fast-*(not on the partner-model list).Verification
bun validate: passes.bun run v1:check: byte-identical up to the pending commit; with it, onlycanonical_model_idadded on 13 Vercel models (plus the 16-model key reorder in Vercel).bun test: 717 pass, 10 fail (the same 10 asdev).dev: API changes only (no other field changes). openai 34 models, anthropic 17, google 34 (54 APIs), vertex 12, xai 8 (first API now Responses), mistral 5, cohere 17, deepseek 4, meta 6 (12 APIs).