Skip to content

Commit

Permalink
feat(client): allow passing NotGiven for body (#200)
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] authored Feb 21, 2025
1 parent b3670f0 commit 23d5b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groq/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,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 23d5b51

Please sign in to comment.