diff --git a/client/astra_assistants/patch.py b/client/astra_assistants/patch.py index 6254869..b610f8b 100644 --- a/client/astra_assistants/patch.py +++ b/client/astra_assistants/patch.py @@ -79,7 +79,7 @@ class ThreadListParams(TypedDict, total=False): """ -def list( +def sync_list( self, *, after: str | NotGiven = NOT_GIVEN, @@ -770,7 +770,7 @@ def patch(client: Union[OpenAI, AsyncOpenAI]): if client_is_async: client.beta.threads.list = MethodType(async_list, client.beta.threads) else: - client.beta.threads.list = MethodType(list, client.beta.threads) + client.beta.threads.list = MethodType(sync_list, client.beta.threads) # patch the copy method so that the copied instance is also patched client.copy = MethodType(enhance_copy_method(client.copy), client.copy) diff --git a/client/pyproject.toml b/client/pyproject.toml index 2d552a1..bc405dc 100644 --- a/client/pyproject.toml +++ b/client/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "astra-assistants" -version = "2.4.0" +version = "2.4.1" description = "Astra Assistants API - drop in replacement for OpenAI Assistants, powered by AstraDB" authors = ["phact "] readme = "README.md"