mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Route Ollama through the shared HTTP client (#36078)
## Why Ollama requests need to honor Codex's configured outbound proxy policy and custom CA handling. ## What changed - Replace Ollama's direct `reqwest` client with a route-aware client created by `codex-http-client`. - Preserve the five-second connection timeout and legacy system-root fallback for default-routed requests. - Reuse one Ollama client for connectivity, version, model discovery, and model-pull checks. - Surface HTTP transport initialization errors instead of replacing them with the generic Ollama connection error. ## Testing - Cover system-proxy routing and invalid `CODEX_CA_CERTIFICATE` and `SSL_CERT_FILE` values under both outbound proxy policies. - Verify that version and model checks reuse the existing Ollama client. GitOrigin-RevId: c7cc36845a9bceb57ce5524b9e1b3cbe317897a3
This commit is contained in:
1 parent
ff352fab62
commit
7d5253d2b0
6 files changed
+248
-32
No files matched your search
@@ -243,7 +243,6 @@ deny = [
|
||||
"codex-responses-api-proxy",
|
||||
# Temporary migration exceptions.
|
||||
"codex-app-server",
|
||||
"codex-ollama",
|
||||
"codex-otel",
|
||||
# Third-party crates that own their reqwest integration. These are not part of the
|
||||
# first-party migration count above.
|
||||
|
||||
Reference in new issue
Block a user