Skip to content

Commit de3e561

Browse files
committed
fix(client): add chatkit to beta resource
1 parent 38ac009 commit de3e561

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/openai/resources/beta/beta.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@
2828
ThreadsWithStreamingResponse,
2929
AsyncThreadsWithStreamingResponse,
3030
)
31-
from ...resources.chat import Chat, AsyncChat
32-
from .realtime.realtime import (
33-
Realtime,
34-
AsyncRealtime,
35-
)
3631

3732
__all__ = ["Beta", "AsyncBeta"]
3833

3934

4035
class Beta(SyncAPIResource):
4136
@cached_property
37+
def chatkit(self) -> ChatKit:
38+
return ChatKit(self._client)
4239

40+
@cached_property
4341
def assistants(self) -> Assistants:
4442
return Assistants(self._client)
4543

@@ -69,7 +67,10 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
6967

7068
class AsyncBeta(AsyncAPIResource):
7169
@cached_property
70+
def chatkit(self) -> AsyncChatKit:
71+
return AsyncChatKit(self._client)
7272

73+
@cached_property
7374
def assistants(self) -> AsyncAssistants:
7475
return AsyncAssistants(self._client)
7576

src/openai/resources/realtime/realtime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def client_secrets(self) -> ClientSecrets:
6767
@cached_property
6868
def calls(self) -> Calls:
6969
from ...lib._realtime import _Calls
70+
7071
return _Calls(self._client)
7172

7273
@cached_property
@@ -126,6 +127,7 @@ def client_secrets(self) -> AsyncClientSecrets:
126127
@cached_property
127128
def calls(self) -> AsyncCalls:
128129
from ...lib._realtime import _AsyncCalls
130+
129131
return _AsyncCalls(self._client)
130132

131133
@cached_property

0 commit comments

Comments
 (0)