Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: 862285b0-bba7-4d7b-934b-63759482d34f
generation_id: d2b5e56a-7b5c-4539-98d6-a5459de003da
openapi_spec_hash: c829925be8009e5eaedbc7e25a75bbb4
openapi_transformed_spec_hash: 06558c212f804512d9bbd22d9162355c
config_hash: 75548929fa5c67ad9d1d94b5a30a56e9
codegen_sha: cad107aa3bd1d80294233ba5cad18f0db8151a23
codegen_hash: 256f429bb05c452738ab7d660f8cf6c2ed641e0b5e9d7e9a9f21c6c1a24bf818
public_codegen_sha: 8fdc56a6031ebe1660d2a10292b8db826b2b02b0
codegen_sha: ae58f4187453cdc87fc2f95eab1d8007bd39a698
codegen_hash: e4805e8a2047f6dcf32bd17947a6dc02178b7cd91f238eba5f3a1584754f621a
public_codegen_sha: 5c5451216a28165dc1efb8f37aae9d3a7d05e4ae
4 changes: 2 additions & 2 deletions src/openai/resources/audio/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def create(
"/audio/speech",
body=maybe_transform(
{
"input": input,
"model": model,
"input": input,
"voice": voice,
"instructions": instructions,
"response_format": response_format,
Expand Down Expand Up @@ -214,8 +214,8 @@ async def create(
"/audio/speech",
body=await async_maybe_transform(
{
"input": input,
"model": model,
"input": input,
"voice": voice,
"instructions": instructions,
"response_format": response_format,
Expand Down
12 changes: 6 additions & 6 deletions src/openai/resources/beta/agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ def create(
body=maybe_transform(
{
"model": model,
"service_tier": service_tier,
"instructions": instructions,
"metadata": metadata,
"multi_agent": multi_agent,
"name": name,
"reasoning": reasoning,
"service_tier": service_tier,
"text": text,
"tools": tools,
},
Expand Down Expand Up @@ -281,13 +281,13 @@ def update(
path_template("/agents/{agent_id}", agent_id=agent_id),
body=maybe_transform(
{
"model": model,
"service_tier": service_tier,
"instructions": instructions,
"metadata": metadata,
"model": model,
"multi_agent": multi_agent,
"name": name,
"reasoning": reasoning,
"service_tier": service_tier,
"text": text,
"tools": tools,
},
Expand Down Expand Up @@ -502,12 +502,12 @@ async def create(
body=await async_maybe_transform(
{
"model": model,
"service_tier": service_tier,
"instructions": instructions,
"metadata": metadata,
"multi_agent": multi_agent,
"name": name,
"reasoning": reasoning,
"service_tier": service_tier,
"text": text,
"tools": tools,
},
Expand Down Expand Up @@ -633,13 +633,13 @@ async def update(
path_template("/agents/{agent_id}", agent_id=agent_id),
body=await async_maybe_transform(
{
"model": model,
"service_tier": service_tier,
"instructions": instructions,
"metadata": metadata,
"model": model,
"multi_agent": multi_agent,
"name": name,
"reasoning": reasoning,
"service_tier": service_tier,
"text": text,
"tools": tools,
},
Expand Down
4 changes: 2 additions & 2 deletions src/openai/resources/beta/agents/sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ def create(
"/agents/sessions",
body=maybe_transform(
{
"stream": stream,
"environment": environment,
"agent": agent,
"agent_id": agent_id,
"input": input,
"metadata": metadata,
"stream": stream,
"vault_ids": vault_ids,
},
session_create_params.SessionCreateParamsStreaming
Expand Down Expand Up @@ -828,12 +828,12 @@ async def create(
"/agents/sessions",
body=await async_maybe_transform(
{
"stream": stream,
"environment": environment,
"agent": agent,
"agent_id": agent_id,
"input": input,
"metadata": metadata,
"stream": stream,
"vault_ids": vault_ids,
},
session_create_params.SessionCreateParamsStreaming
Expand Down
4 changes: 2 additions & 2 deletions src/openai/resources/beta/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ def update(
path_template("/assistants/{assistant_id}", assistant_id=assistant_id),
body=maybe_transform(
{
"model": model,
"description": description,
"instructions": instructions,
"metadata": metadata,
"model": model,
"name": name,
"reasoning_effort": reasoning_effort,
"response_format": response_format,
Expand Down Expand Up @@ -859,10 +859,10 @@ async def update(
path_template("/assistants/{assistant_id}", assistant_id=assistant_id),
body=await async_maybe_transform(
{
"model": model,
"description": description,
"instructions": instructions,
"metadata": metadata,
"model": model,
"name": name,
"reasoning_effort": reasoning_effort,
"response_format": response_format,
Expand Down
4 changes: 2 additions & 2 deletions src/openai/resources/beta/responses/input_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def count(
"/responses/input_tokens?beta=true",
body=maybe_transform(
{
"model": model,
"conversation": conversation,
"input": input,
"instructions": instructions,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"personality": personality,
"previous_response_id": previous_response_id,
Expand Down Expand Up @@ -282,10 +282,10 @@ async def count(
"/responses/input_tokens?beta=true",
body=await async_maybe_transform(
{
"model": model,
"conversation": conversation,
"input": input,
"instructions": instructions,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"personality": personality,
"previous_response_id": previous_response_id,
Expand Down
16 changes: 8 additions & 8 deletions src/openai/resources/beta/responses/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,9 @@ def create(
"/responses?beta=true",
body=maybe_transform(
{
"model": model,
"stream": stream,
"service_tier": service_tier,
"access_programs": access_programs,
"background": background,
"context_management": context_management,
Expand All @@ -1514,7 +1517,6 @@ def create(
"max_output_tokens": max_output_tokens,
"max_tool_calls": max_tool_calls,
"metadata": metadata,
"model": model,
"moderation": moderation,
"multi_agent": multi_agent,
"parallel_tool_calls": parallel_tool_calls,
Expand All @@ -1525,9 +1527,7 @@ def create(
"prompt_cache_retention": prompt_cache_retention,
"reasoning": reasoning,
"safety_identifier": safety_identifier,
"service_tier": service_tier,
"store": store,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"text": text,
Expand Down Expand Up @@ -2046,13 +2046,13 @@ def compact(
body=maybe_transform(
{
"model": model,
"service_tier": service_tier,
"input": input,
"instructions": instructions,
"previous_response_id": previous_response_id,
"prompt_cache_key": prompt_cache_key,
"prompt_cache_options": prompt_cache_options,
"prompt_cache_retention": prompt_cache_retention,
"service_tier": service_tier,
},
response_compact_params.ResponseCompactParams,
),
Expand Down Expand Up @@ -3522,6 +3522,9 @@ async def create(
"/responses?beta=true",
body=await async_maybe_transform(
{
"model": model,
"stream": stream,
"service_tier": service_tier,
"access_programs": access_programs,
"background": background,
"context_management": context_management,
Expand All @@ -3532,7 +3535,6 @@ async def create(
"max_output_tokens": max_output_tokens,
"max_tool_calls": max_tool_calls,
"metadata": metadata,
"model": model,
"moderation": moderation,
"multi_agent": multi_agent,
"parallel_tool_calls": parallel_tool_calls,
Expand All @@ -3543,9 +3545,7 @@ async def create(
"prompt_cache_retention": prompt_cache_retention,
"reasoning": reasoning,
"safety_identifier": safety_identifier,
"service_tier": service_tier,
"store": store,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"text": text,
Expand Down Expand Up @@ -4064,13 +4064,13 @@ async def compact(
body=await async_maybe_transform(
{
"model": model,
"service_tier": service_tier,
"input": input,
"instructions": instructions,
"previous_response_id": previous_response_id,
"prompt_cache_key": prompt_cache_key,
"prompt_cache_options": prompt_cache_options,
"prompt_cache_retention": prompt_cache_retention,
"service_tier": service_tier,
},
response_compact_params.ResponseCompactParams,
),
Expand Down
12 changes: 6 additions & 6 deletions src/openai/resources/beta/threads/runs/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,18 +580,18 @@ def create(
path_template("/threads/{thread_id}/runs", thread_id=thread_id),
body=maybe_transform(
{
"model": model,
"stream": stream,
"assistant_id": assistant_id,
"additional_instructions": additional_instructions,
"additional_messages": additional_messages,
"instructions": instructions,
"max_completion_tokens": max_completion_tokens,
"max_prompt_tokens": max_prompt_tokens,
"metadata": metadata,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"reasoning_effort": reasoning_effort,
"response_format": response_format,
"stream": stream,
"temperature": temperature,
"tool_choice": tool_choice,
"tools": tools,
Expand Down Expand Up @@ -1366,8 +1366,8 @@ def submit_tool_outputs(
path_template("/threads/{thread_id}/runs/{run_id}/submit_tool_outputs", thread_id=thread_id, run_id=run_id),
body=maybe_transform(
{
"tool_outputs": tool_outputs,
"stream": stream,
"tool_outputs": tool_outputs,
},
run_submit_tool_outputs_params.RunSubmitToolOutputsParamsStreaming
if stream
Expand Down Expand Up @@ -2049,18 +2049,18 @@ async def create(
path_template("/threads/{thread_id}/runs", thread_id=thread_id),
body=await async_maybe_transform(
{
"model": model,
"stream": stream,
"assistant_id": assistant_id,
"additional_instructions": additional_instructions,
"additional_messages": additional_messages,
"instructions": instructions,
"max_completion_tokens": max_completion_tokens,
"max_prompt_tokens": max_prompt_tokens,
"metadata": metadata,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"reasoning_effort": reasoning_effort,
"response_format": response_format,
"stream": stream,
"temperature": temperature,
"tool_choice": tool_choice,
"tools": tools,
Expand Down Expand Up @@ -2834,8 +2834,8 @@ async def submit_tool_outputs(
path_template("/threads/{thread_id}/runs/{run_id}/submit_tool_outputs", thread_id=thread_id, run_id=run_id),
body=await async_maybe_transform(
{
"tool_outputs": tool_outputs,
"stream": stream,
"tool_outputs": tool_outputs,
},
run_submit_tool_outputs_params.RunSubmitToolOutputsParamsStreaming
if stream
Expand Down
8 changes: 4 additions & 4 deletions src/openai/resources/beta/threads/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,15 +731,15 @@ def create_and_run(
"/threads/runs",
body=maybe_transform(
{
"model": model,
"stream": stream,
"assistant_id": assistant_id,
"instructions": instructions,
"max_completion_tokens": max_completion_tokens,
"max_prompt_tokens": max_prompt_tokens,
"metadata": metadata,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"response_format": response_format,
"stream": stream,
"temperature": temperature,
"thread": thread,
"tool_choice": tool_choice,
Expand Down Expand Up @@ -1622,15 +1622,15 @@ async def create_and_run(
"/threads/runs",
body=await async_maybe_transform(
{
"model": model,
"stream": stream,
"assistant_id": assistant_id,
"instructions": instructions,
"max_completion_tokens": max_completion_tokens,
"max_prompt_tokens": max_prompt_tokens,
"metadata": metadata,
"model": model,
"parallel_tool_calls": parallel_tool_calls,
"response_format": response_format,
"stream": stream,
"temperature": temperature,
"thread": thread,
"tool_choice": tool_choice,
Expand Down
12 changes: 6 additions & 6 deletions src/openai/resources/chat/completions/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,8 +1319,10 @@ def create(
"/chat/completions",
body=maybe_transform(
{
"messages": messages,
"model": model,
"stream": stream,
"service_tier": service_tier,
"messages": messages,
"audio": audio,
"frequency_penalty": frequency_penalty,
"function_call": function_call,
Expand All @@ -1343,10 +1345,8 @@ def create(
"response_format": response_format,
"safety_identifier": safety_identifier,
"seed": seed,
"service_tier": service_tier,
"stop": stop,
"store": store,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"tool_choice": tool_choice,
Expand Down Expand Up @@ -2953,8 +2953,10 @@ async def create(
"/chat/completions",
body=await async_maybe_transform(
{
"messages": messages,
"model": model,
"stream": stream,
"service_tier": service_tier,
"messages": messages,
"audio": audio,
"frequency_penalty": frequency_penalty,
"function_call": function_call,
Expand All @@ -2977,10 +2979,8 @@ async def create(
"response_format": response_format,
"safety_identifier": safety_identifier,
"seed": seed,
"service_tier": service_tier,
"stop": stop,
"store": store,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"tool_choice": tool_choice,
Expand Down
Loading
Loading