Skip to content

Commit

Permalink
sync_list
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Feb 18, 2025
1 parent 44885a8 commit 8094946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/astra_assistants/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ThreadListParams(TypedDict, total=False):
"""


def list(
def sync_list(
self,
*,
after: str | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 8094946

Please sign in to comment.