Repository navigation
fix: GPT-6 models and Command Code provider - #4101
elka-firmanda wants to merge 3 commits into
Conversation
Register GPT-6 and GPT-6.1 models for OpenAI and Codex, and route GPT-6 models through the Responses API.
Register Command Code as a built-in OpenAI provider and filter models by supported endpoint, excluding models that do not serve chat completions.
| pub supported_parameters: Option<Vec<String>>, | ||
| /// Routes the provider serves this model on, e.g. `/chat/completions`. | ||
| /// Absent for providers that do not report per-model routes. | ||
| pub supported_endpoints: Option<Vec<String>>, |
There was a problem hiding this comment.
we shouldn't change this, Ideally it should be handled as we have handled opencode zen
There was a problem hiding this comment.
Done in 3d074b5 — dropped supported_endpoints and the model filter from the shared OpenAI DTO and added a dedicated CommandCodeResponseRepository instead: claude-* routes to the Anthropic /messages endpoint, everything else to /chat/completions. The Claude models are no longer filtered out of the model list. This mirrors the OpenCode Zen handling as suggested.
Drop the supported_endpoints model capability from the shared OpenAI DTO and the resulting model filter. Command Code now gets its own response repository that routes Claude models to the Anthropic /messages endpoint and every other model to /chat/completions, mirroring how OpenCode Zen is handled. This also stops hiding the Claude models that only answer on /messages. Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Head branch was pushed to by a user without write access
|
@amitksingh1490 re-review requested for 3d074b5 — the |
Summary
Add GPT-6 model configuration and Command Code provider support.
Changes
claude-*models to the Anthropic/messagesendpoint and every other model to/chat/completions, mirroring the OpenCode Zen pattern. Models are discovered from the provider's/modelsendpoint.Testing
cargo check -p forge_repo -p forge_config -p forge_app -p forge_domaincargo test -p forge_repo --lib provider::command_code::cargo test -p forge_repo --lib test_command_code_configcargo test -p forge_repo --lib test_uses_responses_apicargo test -p forge_app --lib dto::openai::model