---
type: email
from: LiHao Zeng <notifications@github.com>
subject: Re: [openai/openai-agents-python] fix: copy extra_kwargs to prevent

 litellm from polluting metadata (PR #1610)
received: 2026-03-06 07:17:04
date_header: Fri, 29 Aug 2025 00:41:55 -0700
priority: normal
status: awaiting_approval
uid: 29003
---

## Email Content

**From:** LiHao Zeng <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] fix: copy extra_kwargs to prevent

 litellm from polluting metadata (PR #1610)
**Date:** Fri, 29 Aug 2025 00:41:55 -0700

### Body (preview)

@zhowzeng commented on this pull request.







> @@ -329,7 +330,7 @@ async def _fetch_response(

             extra_headers={**HEADERS, **(model_settings.extra_headers or {})},

             api_key=self.api_key,

             base_url=self.base_url,

-            **extra_kwargs,

+            **deepcopy(extra_kwargs),



i see. i'll make the chages.



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1610#discussion_r2309423848

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



Message ID: <openai/openai-agents-python/pull/1610/review/3167719286@github.com>

---

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