Skip to content

Commit

Permalink
bugfix/allow async and sync Vector Store calls to be mixed (#71)
Browse files Browse the repository at this point in the history
* return both async and sync httpx clients on get collections

* bump version
  • Loading branch information
danielchalef authored Aug 12, 2023
1 parent 91e171a commit 811c558
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zep-python"
version = "1.0.1"
version = "1.0.2"
description = "Zep stores, manages, enriches, indexes, and searches long-term memory for conversational AI applications. This is the Python client for the Zep service."
authors = ["Daniel Chalef <[email protected]>"]
readme = "README.md"
Expand Down
8 changes: 6 additions & 2 deletions zep_python/document/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ async def aget_collection(self, name: str) -> DocumentCollection:

filtered_response = filter_dict(response.json())

return DocumentCollection(aclient=self.aclient, **filtered_response)
return DocumentCollection(
client=self.client, aclient=self.aclient, **filtered_response
)

def get_collection(self, name: str) -> DocumentCollection:
"""
Expand Down Expand Up @@ -252,7 +254,9 @@ def get_collection(self, name: str) -> DocumentCollection:

filtered_response = filter_dict(response.json())

return DocumentCollection(client=self.client, **filtered_response)
return DocumentCollection(
client=self.client, aclient=self.aclient, **filtered_response
)

async def aupdate_collection(
self,
Expand Down

0 comments on commit 811c558

Please sign in to comment.