@@ -1796,11 +1796,14 @@ export interface SessionCreatedEvent {
1796
1796
1797
1797
/**
1798
1798
* Send this event to update the session’s default configuration. The client may
1799
- * send this event at any time to update the session configuration, and any field
1800
- * may be updated at any time, except for "voice". The server will respond with a
1801
- * `session.updated` event that shows the full effective configuration. Only fields
1802
- * that are present are updated, thus the correct way to clear a field like
1803
- * "instructions" is to pass an empty string.
1799
+ * send this event at any time to update any field, except for `voice`. However,
1800
+ * note that once a session has been initialized with a particular `model`, it
1801
+ * can’t be changed to another model using `session.update`.
1802
+ *
1803
+ * When the server receives a `session.update`, it will respond with a
1804
+ * `session.updated` event showing the full, effective configuration. Only the
1805
+ * fields that are present are updated. To clear a field like `instructions`, pass
1806
+ * an empty string.
1804
1807
*/
1805
1808
export interface SessionUpdateEvent {
1806
1809
/**
@@ -1982,11 +1985,18 @@ export namespace SessionUpdateEvent {
1982
1985
*/
1983
1986
export interface TurnDetection {
1984
1987
/**
1985
- * Whether or not to automatically generate a response when VAD is enabled. `true`
1986
- * by default.
1988
+ * Whether or not to automatically generate a response when a VAD stop event
1989
+ * occurs. `true` by default.
1987
1990
*/
1988
1991
create_response ?: boolean ;
1989
1992
1993
+ /**
1994
+ * Whether or not to automatically interrupt any ongoing response with output to
1995
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
1996
+ * occurs. `true` by default.
1997
+ */
1998
+ interrupt_response ?: boolean ;
1999
+
1990
2000
/**
1991
2001
* Amount of audio to include before the VAD detected speech (in milliseconds).
1992
2002
* Defaults to 300ms.
0 commit comments