@@ -549,14 +549,17 @@ def __init__(self, connection: RealtimeConnection) -> None:
549549
550550class RealtimeSessionResource (BaseRealtimeConnectionResource ):
551551 def update (self , * , session : session_update_event_param .Session , event_id : str | NotGiven = NOT_GIVEN ) -> None :
552- """Send this event to update the session’s default configuration.
552+ """
553+ Send this event to update the session’s default configuration.
554+ The client may send this event at any time to update any field,
555+ except for `voice`. However, note that once a session has been
556+ initialized with a particular `model`, it can’t be changed to
557+ another model using `session.update`.
553558
554- The client may
555- send this event at any time to update the session configuration, and any
556- field may be updated at any time, except for "voice". The server will respond
557- with a `session.updated` event that shows the full effective configuration.
558- Only fields that are present are updated, thus the correct way to clear a
559- field like "instructions" is to pass an empty string.
559+ When the server receives a `session.update`, it will respond
560+ with a `session.updated` event showing the full, effective configuration.
561+ Only the fields that are present are updated. To clear a field like
562+ `instructions`, pass an empty string.
560563 """
561564 self ._connection .send (
562565 cast (
@@ -756,14 +759,17 @@ class AsyncRealtimeSessionResource(BaseAsyncRealtimeConnectionResource):
756759 async def update (
757760 self , * , session : session_update_event_param .Session , event_id : str | NotGiven = NOT_GIVEN
758761 ) -> None :
759- """Send this event to update the session’s default configuration.
760-
761- The client may
762- send this event at any time to update the session configuration, and any
763- field may be updated at any time, except for "voice". The server will respond
764- with a `session.updated` event that shows the full effective configuration.
765- Only fields that are present are updated, thus the correct way to clear a
766- field like "instructions" is to pass an empty string.
762+ """
763+ Send this event to update the session’s default configuration.
764+ The client may send this event at any time to update any field,
765+ except for `voice`. However, note that once a session has been
766+ initialized with a particular `model`, it can’t be changed to
767+ another model using `session.update`.
768+
769+ When the server receives a `session.update`, it will respond
770+ with a `session.updated` event showing the full, effective configuration.
771+ Only the fields that are present are updated. To clear a field like
772+ `instructions`, pass an empty string.
767773 """
768774 await self ._connection .send (
769775 cast (
0 commit comments