[PR #15041] [MERGED] launch: replace deprecated OPENAI_BASE_URL with config.toml profile for codex #46232

Closed
opened 2026-04-25 01:44:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15041
Author: @hoyyeva
Created: 3/24/2026
Status: Merged
Merged: 4/1/2026
Merged by: @hoyyeva

Base: mainHead: hoyyeva/codex-base-url


📝 Commits (6)

  • b6fe2cd codex: use config override instead of deprecated OPENAI_BASE_URL env var
  • 61ee025 switch to use --profile instead of --oss
  • 96280da address comments
  • 7ed6977 remove --oss completely
  • 875f78e update doc
  • 92f5ea6 update doc

📊 Changes

3 files changed (+304 additions, -22 deletions)

View changed files

📝 cmd/launch/codex.go (+83 -2)
📝 cmd/launch/codex_test.go (+202 -4)
📝 docs/integrations/codex.mdx (+19 -16)

📄 Description

  • Replace deprecated OPENAI_BASE_URL env variable with a [profiles.ollama] section in ~/.codex/config.toml that sets openai_base_url
  • Launch codex with --profile ollama to use the profile
  • Fixes: ⚠ OPENAI_BASE_URL is deprecated. Set openai_base_url in config.toml instead
  • Replaces --oss with an explicit [model_providers.ollama-launch] entry written to ~/.codex/config.toml, so codex routes requests directly to the local ollama server without going through the built-in openai provider path

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15041 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 3/24/2026 **Status:** ✅ Merged **Merged:** 4/1/2026 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/codex-base-url` --- ### 📝 Commits (6) - [`b6fe2cd`](https://github.com/ollama/ollama/commit/b6fe2cd8e66e6caa28b23797663cdee98899b1b5) codex: use config override instead of deprecated OPENAI_BASE_URL env var - [`61ee025`](https://github.com/ollama/ollama/commit/61ee02557306bb113f20f780fdff020d6fa41cf9) switch to use --profile instead of --oss - [`96280da`](https://github.com/ollama/ollama/commit/96280da9f11b458f040f2b6a552f7d5254d2a2a8) address comments - [`7ed6977`](https://github.com/ollama/ollama/commit/7ed697799801a59614fca0a2d072d3a882f2945d) remove --oss completely - [`875f78e`](https://github.com/ollama/ollama/commit/875f78e1516a03e90bf03a5f6c1abdfcbcd97b8f) update doc - [`92f5ea6`](https://github.com/ollama/ollama/commit/92f5ea6afe019c0af267a666ba0fde0fa9f8a6a3) update doc ### 📊 Changes **3 files changed** (+304 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/codex.go` (+83 -2) 📝 `cmd/launch/codex_test.go` (+202 -4) 📝 `docs/integrations/codex.mdx` (+19 -16) </details> ### 📄 Description - Replace deprecated `OPENAI_BASE_URL` env variable with a [profiles.ollama] section in `~/.codex/config.toml` that sets `openai_base_url` - Launch codex with `--profile ollama` to use the profile - Fixes: `⚠ OPENAI_BASE_URL is deprecated. Set openai_base_url in config.toml instead` - Replaces `--oss` with an explicit `[model_providers.ollama-launch]` entry written to `~/.codex/config.toml`, so codex routes requests directly to the local ollama server without going through the built-in openai provider path --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 01:44:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46232