mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 07:02:25 +02:00
sdk-py: fix decode_json in sdk (#3681)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user