Skip to content

Commit 0eb294f

Browse files
committed
2.5.1
1 parent e2eb03c commit 0eb294f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

client/astra_assistants/patch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
from openai.types.beta.threads import message_create_params, Message
2525

2626
from dotenv import load_dotenv
27-
from openai.types.beta.vector_stores import VectorStoreFile
27+
28+
try:
29+
from openai.types.beta.vector_stores import VectorStoreObject
30+
except ImportError:
31+
from openai.types.vector_stores import VectorStoreObject
2832

2933
from astra_assistants import OpenAIWithDefaultKey, AsyncOpenAIWithDefaultKey
3034

@@ -776,4 +780,4 @@ def patch(client: Union[OpenAI, AsyncOpenAI]):
776780
client.copy = MethodType(enhance_copy_method(client.copy), client.copy)
777781
client.with_options = client.copy
778782

779-
return client
783+
return client

client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "astra-assistants"
3-
version = "2.5.0"
3+
version = "2.5.1"
44
description = "Astra Assistants API - drop in replacement for OpenAI Assistants, powered by AstraDB"
55
authors = ["phact <estevezsebastian@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)