Commit 8082367a

David Meadows <dmeadows@stainless.com>
2025-10-07 01:56:31
fix(client): add chatkit to beta resource
1 parent 9ada2c7
Changed files (2)
src
openai
resources
beta
realtime
src/openai/resources/beta/beta.py
@@ -28,18 +28,16 @@ from .threads.threads import (
     ThreadsWithStreamingResponse,
     AsyncThreadsWithStreamingResponse,
 )
-from ...resources.chat import Chat, AsyncChat
-from .realtime.realtime import (
-    Realtime,
-    AsyncRealtime,
-)
 
 __all__ = ["Beta", "AsyncBeta"]
 
 
 class Beta(SyncAPIResource):
     @cached_property
+    def chatkit(self) -> ChatKit:
+        return ChatKit(self._client)
 
+    @cached_property
     def assistants(self) -> Assistants:
         return Assistants(self._client)
 
@@ -69,7 +67,10 @@ class Beta(SyncAPIResource):
 
 class AsyncBeta(AsyncAPIResource):
     @cached_property
+    def chatkit(self) -> AsyncChatKit:
+        return AsyncChatKit(self._client)
 
+    @cached_property
     def assistants(self) -> AsyncAssistants:
         return AsyncAssistants(self._client)
 
src/openai/resources/realtime/realtime.py
@@ -67,6 +67,7 @@ class Realtime(SyncAPIResource):
     @cached_property
     def calls(self) -> Calls:
         from ...lib._realtime import _Calls
+
         return _Calls(self._client)
 
     @cached_property
@@ -126,6 +127,7 @@ class AsyncRealtime(AsyncAPIResource):
     @cached_property
     def calls(self) -> AsyncCalls:
         from ...lib._realtime import _AsyncCalls
+
         return _AsyncCalls(self._client)
 
     @cached_property