Skip to content

VS Code extension rejects non-gpt-5 model IDs and overrides Other models config (always calls gpt-5) #2840

Closed

Description

@ShimonLeb

What version of Codex is running?

codex-cli 0.23.0

Which model were you using?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

Steps to Reproduce

  1. Open VS Code and set the extension to use OpenRouter with the config above.
  2. Start a chat or any request from the extension.
  3. Check OpenRouter usage dashboard: requests arrive as gpt-5.

What is the expected behavior?

The extension should accept arbitrary model IDs when provider is OpenRouter (e.g., anthropic/claude-sonnet-4, etc.).
Requests should be sent to the configured provider/baseUrl and use the exact model string supplied.

What do you see instead?

Settings validation only accepts "gpt-5" for chatgpt.model.
Extension sends requests to gpt-5 despite provider/model overrides pointing to OpenRouter.

Additional information

No response

Activity

  1. added
    extensionIssues related to the VS Code extension
    and removed on Aug 28, 2025
  2. ShimonLeb commented on Sep 10, 2025

    @ShimonLeb
    Author

    its working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions