diff --git a/src/openai/resources/beta/beta.py b/src/openai/resources/beta/beta.py index 62fc8258b9..6256892cd1 100644 --- a/src/openai/resources/beta/beta.py +++ b/src/openai/resources/beta/beta.py @@ -29,6 +29,14 @@ RealtimeWithStreamingResponse, AsyncRealtimeWithStreamingResponse, ) +from ...resources.vector_stores import ( + VectorStores, + AsyncVectorStores, + VectorStoresWithRawResponse, + AsyncVectorStoresWithRawResponse, + VectorStoresWithStreamingResponse, + AsyncVectorStoresWithStreamingResponse, +) __all__ = ["Beta", "AsyncBeta"] @@ -49,6 +57,11 @@ def assistants(self) -> Assistants: @cached_property def threads(self) -> Threads: return Threads(self._client) + + @cached_property + def vector_stores(self) -> VectorStores: + from ...resources.vector_stores import VectorStores + return VectorStores(self._client) @cached_property def with_raw_response(self) -> BetaWithRawResponse: @@ -86,6 +99,11 @@ def assistants(self) -> AsyncAssistants: @cached_property def threads(self) -> AsyncThreads: return AsyncThreads(self._client) + + @cached_property + def vector_stores(self) -> AsyncVectorStores: + from ...resources.vector_stores import AsyncVectorStores + return AsyncVectorStores(self._client) @cached_property def with_raw_response(self) -> AsyncBetaWithRawResponse: @@ -122,6 +140,10 @@ def assistants(self) -> AssistantsWithRawResponse: @cached_property def threads(self) -> ThreadsWithRawResponse: return ThreadsWithRawResponse(self._beta.threads) + + @cached_property + def vector_stores(self) -> VectorStoresWithRawResponse: + return VectorStoresWithRawResponse(self._beta.vector_stores) class AsyncBetaWithRawResponse: @@ -139,6 +161,10 @@ def assistants(self) -> AsyncAssistantsWithRawResponse: @cached_property def threads(self) -> AsyncThreadsWithRawResponse: return AsyncThreadsWithRawResponse(self._beta.threads) + + @cached_property + def vector_stores(self) -> AsyncVectorStoresWithRawResponse: + return AsyncVectorStoresWithRawResponse(self._beta.vector_stores) class BetaWithStreamingResponse: @@ -156,6 +182,10 @@ def assistants(self) -> AssistantsWithStreamingResponse: @cached_property def threads(self) -> ThreadsWithStreamingResponse: return ThreadsWithStreamingResponse(self._beta.threads) + + @cached_property + def vector_stores(self) -> VectorStoresWithStreamingResponse: + return VectorStoresWithStreamingResponse(self._beta.vector_stores) class AsyncBetaWithStreamingResponse: @@ -173,3 +203,7 @@ def assistants(self) -> AsyncAssistantsWithStreamingResponse: @cached_property def threads(self) -> AsyncThreadsWithStreamingResponse: return AsyncThreadsWithStreamingResponse(self._beta.threads) + + @cached_property + def vector_stores(self) -> AsyncVectorStoresWithStreamingResponse: + return AsyncVectorStoresWithStreamingResponse(self._beta.vector_stores)