File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
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
- )
36
31
37
32
__all__ = ["Beta" , "AsyncBeta" ]
38
33
39
34
40
35
class Beta (SyncAPIResource ):
41
36
@cached_property
37
+ def chatkit (self ) -> ChatKit :
38
+ return ChatKit (self ._client )
42
39
40
+ @cached_property
43
41
def assistants (self ) -> Assistants :
44
42
return Assistants (self ._client )
45
43
@@ -69,7 +67,10 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
69
67
70
68
class AsyncBeta (AsyncAPIResource ):
71
69
@cached_property
70
+ def chatkit (self ) -> AsyncChatKit :
71
+ return AsyncChatKit (self ._client )
72
72
73
+ @cached_property
73
74
def assistants (self ) -> AsyncAssistants :
74
75
return AsyncAssistants (self ._client )
75
76
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def client_secrets(self) -> ClientSecrets:
67
67
@cached_property
68
68
def calls (self ) -> Calls :
69
69
from ...lib ._realtime import _Calls
70
+
70
71
return _Calls (self ._client )
71
72
72
73
@cached_property
@@ -126,6 +127,7 @@ def client_secrets(self) -> AsyncClientSecrets:
126
127
@cached_property
127
128
def calls (self ) -> AsyncCalls :
128
129
from ...lib ._realtime import _AsyncCalls
130
+
129
131
return _AsyncCalls (self ._client )
130
132
131
133
@cached_property
You can’t perform that action at this time.
0 commit comments