bug: unsupported model error when using ollama
I am getting unexpected status 400 Bad Request: {"detail":"Unsupported model"} when trying to use codex cli with ollama. Trying several models:
[providers.openai]
api_base = "http://10.0.0.8:11434/v1"
api_key = "none"
[profiles.ollama-gpt-oss]
provider = "openai"
model = "gpt-oss:20b"
api_base = "http://10.0.0.8:11434/v1"
api_key = "none"
[profiles.ollama-qwen3]
provider = "openai"
model = "qwen3-coder:30b"
api_base = "http://10.0.0.8:11434/v1"
api_key = "none"
[profiles.ollama-qwen-coder-25]
provider = "openai"
model = "qwen2.5-coder:7b"
api_base = "http://10.0.0.8:11434/v1"
api_key = "none"
with command: codex --profile ollama-qwen-coder-25
this is on codex 0.47
anyone else getting this error?
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗