1212 AsyncAssistantsWithStreamingResponse ,
1313)
1414from ..._resource import SyncAPIResource , AsyncAPIResource
15+ from .chatkit .chatkit import (
16+ ChatKit ,
17+ AsyncChatKit ,
18+ ChatKitWithRawResponse ,
19+ AsyncChatKitWithRawResponse ,
20+ ChatKitWithStreamingResponse ,
21+ AsyncChatKitWithStreamingResponse ,
22+ )
1523from .threads .threads import (
1624 Threads ,
1725 AsyncThreads ,
3139
3240class Beta (SyncAPIResource ):
3341 @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 )
4042
41- @cached_property
4243 def assistants (self ) -> Assistants :
4344 return Assistants (self ._client )
4445
@@ -68,14 +69,7 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
6869
6970class AsyncBeta (AsyncAPIResource ):
7071 @cached_property
71- def chat (self ) -> AsyncChat :
72- return AsyncChat (self ._client )
7372
74- @cached_property
75- def realtime (self ) -> AsyncRealtime :
76- return AsyncRealtime (self ._client )
77-
78- @cached_property
7973 def assistants (self ) -> AsyncAssistants :
8074 return AsyncAssistants (self ._client )
8175
@@ -107,6 +101,10 @@ class BetaWithRawResponse:
107101 def __init__ (self , beta : Beta ) -> None :
108102 self ._beta = beta
109103
104+ @cached_property
105+ def chatkit (self ) -> ChatKitWithRawResponse :
106+ return ChatKitWithRawResponse (self ._beta .chatkit )
107+
110108 @cached_property
111109 def assistants (self ) -> AssistantsWithRawResponse :
112110 return AssistantsWithRawResponse (self ._beta .assistants )
@@ -120,6 +118,10 @@ class AsyncBetaWithRawResponse:
120118 def __init__ (self , beta : AsyncBeta ) -> None :
121119 self ._beta = beta
122120
121+ @cached_property
122+ def chatkit (self ) -> AsyncChatKitWithRawResponse :
123+ return AsyncChatKitWithRawResponse (self ._beta .chatkit )
124+
123125 @cached_property
124126 def assistants (self ) -> AsyncAssistantsWithRawResponse :
125127 return AsyncAssistantsWithRawResponse (self ._beta .assistants )
@@ -133,6 +135,10 @@ class BetaWithStreamingResponse:
133135 def __init__ (self , beta : Beta ) -> None :
134136 self ._beta = beta
135137
138+ @cached_property
139+ def chatkit (self ) -> ChatKitWithStreamingResponse :
140+ return ChatKitWithStreamingResponse (self ._beta .chatkit )
141+
136142 @cached_property
137143 def assistants (self ) -> AssistantsWithStreamingResponse :
138144 return AssistantsWithStreamingResponse (self ._beta .assistants )
@@ -146,6 +152,10 @@ class AsyncBetaWithStreamingResponse:
146152 def __init__ (self , beta : AsyncBeta ) -> None :
147153 self ._beta = beta
148154
155+ @cached_property
156+ def chatkit (self ) -> AsyncChatKitWithStreamingResponse :
157+ return AsyncChatKitWithStreamingResponse (self ._beta .chatkit )
158+
149159 @cached_property
150160 def assistants (self ) -> AsyncAssistantsWithStreamingResponse :
151161 return AsyncAssistantsWithStreamingResponse (self ._beta .assistants )
0 commit comments