Skip to content

Commit d646e99

Browse files
benshukbenshuk
andauthored
fix: 🐛 await needed for async plans.create (#252)
Co-authored-by: benshuk <bens@ai21.com>
1 parent 44fba45 commit d646e99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ai21/clients/studio/resources/beta/assistant/assistants_plans.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ async def create(
7878
**kwargs,
7979
)
8080

81-
return self._post(path=f"/assistants/{assistant_id}/{self._module_name}", body=body, response_cls=PlanResponse)
81+
return await self._post(
82+
path=f"/assistants/{assistant_id}/{self._module_name}", body=body, response_cls=PlanResponse
83+
)
8284

8385
async def list(
8486
self,

0 commit comments

Comments
 (0)