From c6ec5cc9fbc090d9e2ec34e044c628862f287569 Mon Sep 17 00:00:00 2001 From: Adityavardhan Agrawal Date: Tue, 29 Apr 2025 21:53:03 -0700 Subject: [PATCH] Fix batch get chunks in sdk --- sdks/python/morphik/_internal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/python/morphik/_internal.py b/sdks/python/morphik/_internal.py index bc3d2b9..be0dca3 100644 --- a/sdks/python/morphik/_internal.py +++ b/sdks/python/morphik/_internal.py @@ -373,7 +373,8 @@ class _MorphikClientLogic: if end_user_id: request["end_user_id"] = end_user_id return request - return source_dicts # Return just sources list if no scoping is needed + # Return the dictionary structure { "sources": [...] } consistently. + return {"sources": source_dicts} def _prepare_create_graph_request( self,