Support for dynamically switching custom models during operation
What feature would you like to see?
Currently, I have customized the provider and model, but during usage, the /model endpoint always returns the hardcoded gpt-5 and gpt-5-codex, preventing dynamic retrieval of the custom models. To switch models, you have to exit codex and modify the configuration, or use codex -m my-model or -p, which is quite inconvenient. Additionally, when using the VS Code plugin, you must close and reopen VS Code for changes to take effect. Why can't the models be retrieved dynamically, and why isn't there a way to display these models dynamically within the VS Code plugin?
Additional information
It is possible to dynamically access custom models, switch between them in real-time via /model, and display these models within the VS Code plugin with seamless, real-time toggling.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the feature request. This hasn't received any upvotes or additional posts, so I'm going to close it.
I’m seeing a closely related problem in the Codex desktop app on macOS with a custom LiteLLM provider.
What works:
model_catalog_json/modeland in the desktop GUI model pickerWhat does not work:
/modelinside a session authenticated with a ChatGPT account does not switch the providerThe 'codex-glm-5' model is not supported when using Codex with a ChatGPT account.So the model picker visibility works, but provider switching does not happen dynamically for custom providers.
This seems related to a few other reports:
VS Code extension does not work with custom model provider)Dynamic profile switching + hot-reload for Codex CLI/IDE)/reviewignores configured custom model / endpoint settings)In my case the behavior is specifically:
Environment:
~/.codex/config.tomlmodel_catalog_json/v1/responsesIf useful, I can provide a minimal repro config.