core-agent-ide/codex-rs/common/src
Devon Rifkin fe03320791
ollama: default to Responses API for built-ins (#8798)
This is an alternate PR to solving the same problem as
<https://github.com/openai/codex/pull/8227>.

In this PR, when Ollama is used via `--oss` (or via `model_provider =
"ollama"`), we default it to use the Responses format. At runtime, we do
an Ollama version check, and if the version is older than when Responses
support was added to Ollama, we print out a warning.

Because there's no way of configuring the wire api for a built-in
provider, we temporarily add a new `oss_provider`/`model_provider`
called `"ollama-chat"` that will force the chat format.

Once the `"chat"` format is fully removed (see
<https://github.com/openai/codex/discussions/7782>), `ollama-chat` can
be removed as well

---------

Co-authored-by: Eric Traut <etraut@openai.com>
Co-authored-by: Michael Bolin <mbolin@openai.com>
2026-01-13 09:51:41 -08:00
..
approval_mode_cli_arg.rs [approval_policy] Add OnRequest approval_policy (#1865) 2025-08-05 20:44:20 -07:00
approval_presets.rs Prompt to turn on windows sandbox when auto mode selected. (#6618) 2025-11-18 11:38:18 -08:00
config_override.rs chore: verify boolean values can be parsed as config overrides (#6516) 2025-11-12 08:19:16 -08:00
config_summary.rs feat: support allowed_sandbox_modes in requirements.toml (#8298) 2025-12-19 21:09:20 +00:00
elapsed.rs Add spacing to timer duration formats (#3471) 2025-09-12 12:05:57 -04:00
format_env_display.rs [MCP] Redact environment variable values in /mcp and mcp get (#5648) 2025-10-24 18:30:20 -04:00
fuzzy_match.rs Scrollable slash commands (#1830) 2025-08-06 21:23:09 -07:00
lib.rs Migrate model preset (#7542) 2025-12-03 20:30:43 +00:00
oss.rs ollama: default to Responses API for built-ins (#8798) 2026-01-13 09:51:41 -08:00
sandbox_mode_cli_arg.rs feat: introduce ExternalSandbox policy (#8290) 2025-12-18 17:02:03 -08:00
sandbox_summary.rs feat: introduce ExternalSandbox policy (#8290) 2025-12-18 17:02:03 -08:00