Skip to content

Commit 6f09779

Browse files
committed
the seed is also included in the chat/responses model files
1 parent 4f3da60 commit 6f09779

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/agents/models/openai_chatcompletions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ async def _fetch_response(
536536
stream=stream,
537537
stream_options={"include_usage": True} if stream else NOT_GIVEN,
538538
store=store,
539+
seed=self._non_null_or_not_given(model_settings.seed),
539540
extra_headers=_HEADERS,
540541
)
541542

src/agents/models/openai_responses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ async def _fetch_response(
247247
extra_headers=_HEADERS,
248248
text=response_format,
249249
store=self._non_null_or_not_given(model_settings.store),
250+
seed=self._non_null_or_not_given(model_settings.seed),
250251
)
251252

252253
def _get_client(self) -> AsyncOpenAI:

0 commit comments

Comments
 (0)