Skip to content

openai_agents: say in the README that RunConfig.model overrides every agent's model - #463

Merged
campoy merged 1 commit into
mainfrom
openai-agents/readme-run-model-precedence
Nov 10, 2026
Merged

campoy merged 1 commit into
mainfrom
openai-agents/readme-run-model-precedence

Conversation

@campoy

@campoy campoy commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

What was changed

One sentence in the Python OpenAI Agents README: RunConfig.model overrides every agent's own model, as in the Python Agents SDK. The TypeScript plugin follows the JS SDK, where an agent's own model wins.

Why?

The two plugins answer "whose model wins?" differently, because their SDKs do. The TypeScript README already says so; the Python one didn't. This came up in the review of #272.

How do I know the Python side? In openai-agents 0.24.0 (our locked version), get_model in agents/run_internal/turn_preparation.py checks run_config.model before agent.model. In a workflow, test_run_config_models pins the same thing: an agent with gpt-4o-mini and RunConfig(model="gpt-4o") only ever calls gpt-4o.

Checklist

  1. No issue.
  2. How was this tested: docs only. check_conventions.py passes.
  3. Any docs updates needed? This is the docs update.

@campoy
campoy merged commit 8332b33 into main Nov 10, 2026
15 checks passed
@campoy
campoy deleted the openai-agents/readme-run-model-precedence branch November 10, 2026 22:13
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.

2 participants