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 28
28
ThreadsWithStreamingResponse ,
29
29
AsyncThreadsWithStreamingResponse ,
30
30
)
31
+ from ...resources .chat import Chat , AsyncChat
32
+ from .realtime .realtime import (
33
+ Realtime ,
34
+ AsyncRealtime ,
35
+ )
31
36
32
37
__all__ = ["Beta" , "AsyncBeta" ]
33
38
34
39
35
40
class 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
+
36
49
@cached_property
37
50
def chatkit (self ) -> ChatKit :
38
51
return ChatKit (self ._client )
@@ -66,6 +79,14 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
66
79
67
80
68
81
class 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
+
69
90
@cached_property
70
91
def chatkit (self ) -> AsyncChatKit :
71
92
return AsyncChatKit (self ._client )
You can’t perform that action at this time.
0 commit comments