We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ae89a2 commit f9706f4Copy full SHA for f9706f4
1 file changed
src/gradient/_base_client.py
@@ -486,17 +486,17 @@ def _build_request(
486
) -> httpx.Request:
487
if log.isEnabledFor(logging.DEBUG):
488
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
- # ),
+ "Request options: %s",
+ model_dump(
+ options,
+ exclude_unset=True,
+ # Pydantic v1 can't dump every type we support in content, so we exclude it for now.
+ exclude={
+ "content",
+ }
+ if PYDANTIC_V1
+ else {},
+ ),
500
)
501
kwargs: dict[str, Any] = {}
502
0 commit comments