File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/openai/resources/beta Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 2828 ThreadsWithStreamingResponse ,
2929 AsyncThreadsWithStreamingResponse ,
3030)
31+ from ...resources .chat import Chat , AsyncChat
32+ from .realtime .realtime import (
33+ Realtime ,
34+ AsyncRealtime ,
35+ )
3136
3237__all__ = ["Beta" , "AsyncBeta" ]
3338
3439
3540class Beta (SyncAPIResource ):
41+ @cached_property
42+ def chat (self ) -> Chat :
43+ return Chat (self ._client )
44+
45+ @cached_property
46+ def realtime (self ) -> Realtime :
47+ return Realtime (self ._client )
48+
3649 @cached_property
3750 def chatkit (self ) -> ChatKit :
3851 return ChatKit (self ._client )
@@ -66,6 +79,14 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
6679
6780
6881class AsyncBeta (AsyncAPIResource ):
82+ @cached_property
83+ def chat (self ) -> AsyncChat :
84+ return AsyncChat (self ._client )
85+
86+ @cached_property
87+ def realtime (self ) -> AsyncRealtime :
88+ return AsyncRealtime (self ._client )
89+
6990 @cached_property
7091 def chatkit (self ) -> AsyncChatKit :
7192 return AsyncChatKit (self ._client )
You can’t perform that action at this time.
0 commit comments