Skip to content

Conversation

@heathdutton
Copy link

Fixes #8240

When users define a model provider in config.toml with the same name as a built-in provider (e.g., ollama), the user's configuration should override the built-in defaults. Previously, or_insert was used which only inserted if the key didn't exist, causing user-defined base_url values to be ignored for built-in provider names.

Changed to insert so user-defined providers properly override built-in ones.

Added a regression test to verify the fix.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@heathdutton
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 2, 2026
@etraut-openai
Copy link
Collaborator

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80b117cfeb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3855 to +3859
assert_eq!(ollama_provider.name, "Remote Ollama");
assert_eq!(
ollama_provider.base_url,
Some("http://192.168.1.50:11434/v1".to_string())
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use pretty_assertions::assert_eq in tests

The repo root AGENTS.md specifies under “Test assertions” that tests should use pretty_assertions::assert_eq for clearer diffs. This new test uses the standard assert_eq! (see the comparisons here), which violates that guideline and makes failure output harder to read. Please import pretty_assertions::assert_eq in the test module and use it for these comparisons, per /workspace/codex/AGENTS.md.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ollama support assumes localhost, ignoring config.toml

2 participants