---
type: email
from: jiwon-oai <notifications@github.com>
subject: [openai/openai-agents-python] Export `user_agent_override`

 contextmanager (PR #1768)
received: 2026-03-06 07:37:32
date_header: Wed, 17 Sep 2025 18:41:14 -0700
priority: normal
status: awaiting_approval
uid: 30723
---

## Email Content

**From:** jiwon-oai <notifications@github.com>
**Subject:** [openai/openai-agents-python] Export `user_agent_override`

 contextmanager (PR #1768)
**Date:** Wed, 17 Sep 2025 18:41:14 -0700

### Body (preview)

This allows us to override the user agent header in the chatkit python sdk while executing the user-implemented `ChatKitServer.respond` method.

You can view, comment on, or merge this pull request online at:



  https://github.com/openai/openai-agents-python/pull/1768



-- Commit Summary --



  * Add user_agent_override helper contextmanager

  * add tests

  * update docstring



-- File Changes --



    M src/agents/__init__.py (17)

    M src/agents/_config.py (12)

    M src/agents/extensions/models/litellm_model.py (10)

    M src/agents/models/_openai_shared.py (10)

    M src/agents/models/openai_chatcompletions.py (9)

    M src/agents/models/openai_responses.py (9)

    M tests/test_config.py (182)



-- Patch Links --



https://github.com/openai/openai-agents-python/pull/1768.patch

https://github.com/openai/openai-agents-python/pull/1768.diff



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1768

You are receiving this because you are subscribed to this thread.



Message ID: &lt;openai/openai-agents-python/pull/1768@github.com&gt;

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
