Skip to content

Commit

Permalink
fix(assistants): correctly send include query param
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie authored and stainless-app[bot] committed Dec 17, 2024
1 parent af791d5 commit 0bfd8c4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/openai/resources/beta/threads/runs/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,6 @@ def stream(
body=maybe_transform(
{
"assistant_id": assistant_id,
"include": include,
"additional_instructions": additional_instructions,
"additional_messages": additional_messages,
"instructions": instructions,
Expand All @@ -1126,7 +1125,11 @@ def stream(
run_create_params.RunCreateParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=maybe_transform({"include": include}, run_create_params.RunCreateParams),
),
cast_to=Run,
stream=True,
Expand Down Expand Up @@ -1899,7 +1902,6 @@ async def create(
body=await async_maybe_transform(
{
"assistant_id": assistant_id,
"include": include,
"additional_instructions": additional_instructions,
"additional_messages": additional_messages,
"instructions": instructions,
Expand Down Expand Up @@ -2472,7 +2474,6 @@ def stream(
body=maybe_transform(
{
"assistant_id": assistant_id,
"include": include,
"additional_instructions": additional_instructions,
"additional_messages": additional_messages,
"instructions": instructions,
Expand All @@ -2492,7 +2493,11 @@ def stream(
run_create_params.RunCreateParams,
),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
query=maybe_transform({"include": include}, run_create_params.RunCreateParams),
),
cast_to=Run,
stream=True,
Expand Down

0 comments on commit 0bfd8c4

Please sign in to comment.