Skip to content

Commit f9706f4

Browse files
feat(client): add support for binary request streaming
1 parent 6ae89a2 commit f9706f4

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/gradient/_base_client.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -486,17 +486,17 @@ def _build_request(
486486
) -> httpx.Request:
487487
if log.isEnabledFor(logging.DEBUG):
488488
log.debug(
489-
"Request options",
490-
# model_dump(
491-
# options,
492-
# exclude_unset=True,
493-
# # Pydantic v1 can't dump every type we support in content, so we exclude it for now.
494-
# exclude={
495-
# "content",
496-
# }
497-
# if PYDANTIC_V1
498-
# else {},
499-
# ),
489+
"Request options: %s",
490+
model_dump(
491+
options,
492+
exclude_unset=True,
493+
# Pydantic v1 can't dump every type we support in content, so we exclude it for now.
494+
exclude={
495+
"content",
496+
}
497+
if PYDANTIC_V1
498+
else {},
499+
),
500500
)
501501
kwargs: dict[str, Any] = {}
502502

0 commit comments

Comments
 (0)