Skip to content

Commit

Permalink
feat(client): allow passing NotGiven for body (#2135)
Browse files Browse the repository at this point in the history
fix(client): mark some request bodies as optional
  • Loading branch information
stainless-app[bot] committed Feb 22, 2025
1 parent 2e56c8d commit 7cc9c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openai/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def _build_request(
# so that passing a `TypedDict` doesn't cause an error.
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
json=json_data,
json=json_data if is_given(json_data) else None,
files=files,
**kwargs,
)
Expand Down

0 comments on commit 7cc9c9e

Please sign in to comment.