Skip to content

Enforce errors on overriding built-in model providers#12024

Merged
etraut-openai merged 5 commits intomainfrom
etraut/raise-error-for-overriding-builtin
Mar 14, 2026
Merged

Enforce errors on overriding built-in model providers#12024
etraut-openai merged 5 commits intomainfrom
etraut/raise-error-for-overriding-builtin

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Feb 17, 2026

We receive bug reports from users who attempt to override one of the three built-in model providers (openai, ollama, or lmstuio). Currently, these overrides are silently ignored. This PR makes it an error to override them.

Summary

  • add validation for model_providers so openai, ollama, and lmstudio keys now produce clear configuration errors instead of being silently ignored

@etraut-openai
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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".

@etraut-openai etraut-openai force-pushed the etraut/raise-error-for-overriding-builtin branch from 41297fd to 88d1370 Compare March 14, 2026 02:31
Comment thread codex-rs/core/src/config/mod.rs Outdated
Comment thread codex-rs/core/src/config/config_tests.rs Outdated
Comment thread codex-rs/core/src/config/config_tests.rs Outdated
Comment thread codex-rs/core/src/config/config_tests.rs Outdated
Comment thread codex-rs/core/src/config/config_tests.rs Outdated
@etraut-openai
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ 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".

@etraut-openai etraut-openai merged commit ae0a651 into main Mar 14, 2026
32 checks passed
@etraut-openai etraut-openai deleted the etraut/raise-error-for-overriding-builtin branch March 14, 2026 04:10
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants