sdk-py: fix decode_json in sdk (#3681)

This commit is contained in:
Vadym Barda
2025-03-04 20:05:16 +00:00
committed by GitHub
parent 013a12334e
commit 3d4e5c0471
+1 -1
View File
@@ -2517,7 +2517,7 @@ def encode_json(json: Any) -> tuple[dict[str, str], bytes]:
def decode_json(r: httpx.Response) -> Any:
body = r.read()
return orjson.loads(body if body else None)
return orjson.loads(body) if body else None
class SyncAssistantsClient: