ollama - 💡(How to fix) Fix launch/codex: map unsupported xhigh reasoning effort for Ollama models

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

ollama launch codex can expose Codex reasoning metadata for Ollama models that report the thinking capability. If the user's Codex config has model_reasoning_effort = "xhigh", Codex sends xhigh to Ollama, but Ollama's Responses API currently accepts high, medium, low, max, or none.

That causes a request failure for thinking-capable Ollama models instead of cleanly launching Codex.

Error Message

Observed error:

Root Cause

ollama launch codex can expose Codex reasoning metadata for Ollama models that report the thinking capability. If the user's Codex config has model_reasoning_effort = "xhigh", Codex sends xhigh to Ollama, but Ollama's Responses API currently accepts high, medium, low, max, or none.

That causes a request failure for thinking-capable Ollama models instead of cleanly launching Codex.

Code Example

model_reasoning_effort = "xhigh"

---

ollama launch codex --model deepseek-v4-pro:cloud

---

hi

---

invalid reasoning value: "xhigh" (must be "high", "medium", "low", "max", or "none")
RAW_BUFFERClick to expand / collapse

Summary

ollama launch codex can expose Codex reasoning metadata for Ollama models that report the thinking capability. If the user's Codex config has model_reasoning_effort = "xhigh", Codex sends xhigh to Ollama, but Ollama's Responses API currently accepts high, medium, low, max, or none.

That causes a request failure for thinking-capable Ollama models instead of cleanly launching Codex.

Repro

With ~/.codex/config.toml containing:

model_reasoning_effort = "xhigh"

Run:

ollama launch codex --model deepseek-v4-pro:cloud

Then send a prompt such as:

hi

Observed error:

invalid reasoning value: "xhigh" (must be "high", "medium", "low", "max", or "none")

Why this happens

Codex supports xhigh for some OpenAI models, and users may have that as their global Codex preference. Ollama's API uses a different accepted reasoning-effort enum. When the Ollama-generated Codex model catalog advertises reasoning support, Codex applies the global xhigh setting to the Ollama-backed request.

Expected behavior

ollama launch codex should avoid sending unsupported reasoning effort values to Ollama.

Possible approaches:

  • Downshift xhigh to high for the generated ollama-launch Codex profile.
  • Map Codex reasoning levels to Ollama-supported values in the generated metadata/config.
  • Omit reasoning capability metadata until the mapping is explicit.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

ollama launch codex should avoid sending unsupported reasoning effort values to Ollama.

Possible approaches:

  • Downshift xhigh to high for the generated ollama-launch Codex profile.
  • Map Codex reasoning levels to Ollama-supported values in the generated metadata/config.
  • Omit reasoning capability metadata until the mapping is explicit.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix launch/codex: map unsupported xhigh reasoning effort for Ollama models