feat(provider): add CommandCode provider - #6449
Open
lincolnthalles wants to merge 4 commits into
Open
Conversation
Contributor
Action items
|
…s, and reasoning options
Contributor
Action items
|
…me fixes Replace budget_tokens with toggle for Haiku/Sonnet, add toggle+effort for Sonnet, set Hy3 Free name, and add reasoning_content interleaved to GLM-5 family.
Contributor
Action items
|
…note, and interleaved for Qwen
Contributor
|
No actionable findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CommandCode (https://commandcode.ai) is an OpenAI-compatible gateway that relays models from many labs (Anthropic, OpenAI, Google, DeepSeek, Alibaba, Moonshot, and others) under a single API and key.
The catalog didn't include it, so its models were unavailable to tooling that consumes models.dev.
This adds the provider with a compliant logo and 63 models.
Since CommandCode hosts other labs' models rather than creating its own, every entry is override-only: it points at the existing lab metadata via
base_modeland authors only what differs on this host - cost, reasoning controls, and reasoning side-channel.Notes for review:
@ai-sdk/openai-compatiblewith a customapi). Reasoning options are copied from each model's first-party lab entry rather than a generic GPT-style set (e.g., DeepSeek V4 = toggle + high/max, Qwen = toggle + thinking_budget, Tencent Hy = effort none|high with no toggle).bun validatepasses.closes #3086 #4530 #5937 #6360