Skip to content

Commit 111e43a

Browse files
committed
[fix] readd realtime and chat
1 parent de3e561 commit 111e43a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/openai/resources/beta/beta.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,24 @@
2828
ThreadsWithStreamingResponse,
2929
AsyncThreadsWithStreamingResponse,
3030
)
31+
from ...resources.chat import Chat, AsyncChat
32+
from .realtime.realtime import (
33+
Realtime,
34+
AsyncRealtime,
35+
)
3136

3237
__all__ = ["Beta", "AsyncBeta"]
3338

3439

3540
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+
3649
@cached_property
3750
def chatkit(self) -> ChatKit:
3851
return ChatKit(self._client)
@@ -66,6 +79,14 @@ def with_streaming_response(self) -> BetaWithStreamingResponse:
6679

6780

6881
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+
6990
@cached_property
7091
def chatkit(self) -> AsyncChatKit:
7192
return AsyncChatKit(self._client)

0 commit comments

Comments
 (0)