12
12
AsyncAssistantsWithStreamingResponse ,
13
13
)
14
14
from ..._resource import SyncAPIResource , AsyncAPIResource
15
+ from .chatkit .chatkit import (
16
+ ChatKit ,
17
+ AsyncChatKit ,
18
+ ChatKitWithRawResponse ,
19
+ AsyncChatKitWithRawResponse ,
20
+ ChatKitWithStreamingResponse ,
21
+ AsyncChatKitWithStreamingResponse ,
22
+ )
15
23
from .threads .threads import (
16
24
Threads ,
17
25
AsyncThreads ,
31
39
32
40
class Beta (SyncAPIResource ):
33
41
@cached_property
34
- def chat (self ) -> Chat :
35
- return Chat (self ._client )
36
-
37
- @cached_property
38
- def realtime (self ) -> Realtime :
39
- return Realtime (self ._client )
40
42
41
- @cached_property
42
43
def assistants (self ) -> Assistants :
43
44
return Assistants (self ._client )
44
45
@@ -68,14 +69,7 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
68
69
69
70
class AsyncBeta (AsyncAPIResource ):
70
71
@cached_property
71
- def chat (self ) -> AsyncChat :
72
- return AsyncChat (self ._client )
73
72
74
- @cached_property
75
- def realtime (self ) -> AsyncRealtime :
76
- return AsyncRealtime (self ._client )
77
-
78
- @cached_property
79
73
def assistants (self ) -> AsyncAssistants :
80
74
return AsyncAssistants (self ._client )
81
75
@@ -107,6 +101,10 @@ class BetaWithRawResponse:
107
101
def __init__ (self , beta : Beta ) -> None :
108
102
self ._beta = beta
109
103
104
+ @cached_property
105
+ def chatkit (self ) -> ChatKitWithRawResponse :
106
+ return ChatKitWithRawResponse (self ._beta .chatkit )
107
+
110
108
@cached_property
111
109
def assistants (self ) -> AssistantsWithRawResponse :
112
110
return AssistantsWithRawResponse (self ._beta .assistants )
@@ -120,6 +118,10 @@ class AsyncBetaWithRawResponse:
120
118
def __init__ (self , beta : AsyncBeta ) -> None :
121
119
self ._beta = beta
122
120
121
+ @cached_property
122
+ def chatkit (self ) -> AsyncChatKitWithRawResponse :
123
+ return AsyncChatKitWithRawResponse (self ._beta .chatkit )
124
+
123
125
@cached_property
124
126
def assistants (self ) -> AsyncAssistantsWithRawResponse :
125
127
return AsyncAssistantsWithRawResponse (self ._beta .assistants )
@@ -133,6 +135,10 @@ class BetaWithStreamingResponse:
133
135
def __init__ (self , beta : Beta ) -> None :
134
136
self ._beta = beta
135
137
138
+ @cached_property
139
+ def chatkit (self ) -> ChatKitWithStreamingResponse :
140
+ return ChatKitWithStreamingResponse (self ._beta .chatkit )
141
+
136
142
@cached_property
137
143
def assistants (self ) -> AssistantsWithStreamingResponse :
138
144
return AssistantsWithStreamingResponse (self ._beta .assistants )
@@ -146,6 +152,10 @@ class AsyncBetaWithStreamingResponse:
146
152
def __init__ (self , beta : AsyncBeta ) -> None :
147
153
self ._beta = beta
148
154
155
+ @cached_property
156
+ def chatkit (self ) -> AsyncChatKitWithStreamingResponse :
157
+ return AsyncChatKitWithStreamingResponse (self ._beta .chatkit )
158
+
149
159
@cached_property
150
160
def assistants (self ) -> AsyncAssistantsWithStreamingResponse :
151
161
return AsyncAssistantsWithStreamingResponse (self ._beta .assistants )
0 commit comments