File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 24
24
from openai .types .beta .threads import message_create_params , Message
25
25
26
26
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
28
32
29
33
from astra_assistants import OpenAIWithDefaultKey , AsyncOpenAIWithDefaultKey
30
34
@@ -776,4 +780,4 @@ def patch(client: Union[OpenAI, AsyncOpenAI]):
776
780
client .copy = MethodType (enhance_copy_method (client .copy ), client .copy )
777
781
client .with_options = client .copy
778
782
779
- return client
783
+ return client
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " astra-assistants"
3
- version = " 2.5.0 "
3
+ version = " 2.5.1 "
4
4
description = " Astra Assistants API - drop in replacement for OpenAI Assistants, powered by AstraDB"
5
5
authors = [" phact <estevezsebastian@gmail.com>" ]
6
6
readme = " README.md"
You can’t perform that action at this time.
0 commit comments