bug: unsupported model error when using ollama

Resolved 💬 6 comments Opened Oct 19, 2025 by johnabbott72 Closed Oct 21, 2025

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?

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗