From 59790f51a06816f19b18a94834e2ba402690b237 Mon Sep 17 00:00:00 2001 From: michals Date: Wed, 5 Nov 2025 20:38:32 +0200 Subject: [PATCH] fix: should be string and not enum --- ai21/clients/studio/resources/studio_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai21/clients/studio/resources/studio_library.py b/ai21/clients/studio/resources/studio_library.py index 31cade4e..684f356f 100644 --- a/ai21/clients/studio/resources/studio_library.py +++ b/ai21/clients/studio/resources/studio_library.py @@ -49,7 +49,7 @@ def create( ) if body.get("batch_id"): - body["upload_mode"] = UploadMode.BATCH + body["upload_mode"] = UploadMode.BATCH.value raw_response = self._post(path=f"/{self._module_name}", files=files, body=body, response_cls=dict) @@ -127,7 +127,7 @@ async def create( ) if body.get("batch_id"): - body["upload_mode"] = UploadMode.BATCH + body["upload_mode"] = UploadMode.BATCH.value raw_response = await self._post(path=f"/{self._module_name}", files=files, body=body, response_cls=dict)