Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ namespace tryAGI.OpenAI.Realtime
/// with a `session.updated` event showing the full, effective configuration.<br/>
/// Only the fields that are present in the `session.update` are updated. To clear a field like<br/>
/// `instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.<br/>
/// To clear a field like `turn_detection`, pass `null`.
/// To clear a field like `turn_detection`, pass `null`.<br/>
/// To turn off input audio noise reduction, send this Realtime event:<br/>
/// ```json<br/>
/// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}<br/>
/// ```<br/>
/// For a transcription session, use `"type":"transcription"` inside `session`.<br/>
/// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged.
/// </summary>
public sealed partial class RealtimeClientEventSessionUpdate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,13 @@ public bool TryPickResponseCreate(
/// with a `session.updated` event showing the full, effective configuration.<br/>
/// Only the fields that are present in the `session.update` are updated. To clear a field like<br/>
/// `instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.<br/>
/// To clear a field like `turn_detection`, pass `null`.
/// To clear a field like `turn_detection`, pass `null`.<br/>
/// To turn off input audio noise reduction, send this Realtime event:<br/>
/// ```json<br/>
/// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}<br/>
/// ```<br/>
/// For a transcription session, use `"type":"transcription"` inside `session`.<br/>
/// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged.
/// </summary>
#if NET6_0_OR_GREATER
public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? SessionUpdate { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ namespace tryAGI.OpenAI
/// with a `session.updated` event showing the full, effective configuration.<br/>
/// Only the fields that are present in the `session.update` are updated. To clear a field like<br/>
/// `instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.<br/>
/// To clear a field like `turn_detection`, pass `null`.
/// To clear a field like `turn_detection`, pass `null`.<br/>
/// To turn off input audio noise reduction, send this Realtime event:<br/>
/// ```json<br/>
/// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}<br/>
/// ```<br/>
/// For a transcription session, use `"type":"transcription"` inside `session`.<br/>
/// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged.
/// </summary>
public sealed partial class RealtimeClientEventSessionUpdate
{
Expand Down
2 changes: 1 addition & 1 deletion src/libs/tryAGI.OpenAI/asyncapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@
},
"RealtimeClientEventSessionUpdate": {
"type": "object",
"description": "Send this event to update the session\u2019s configuration.\nThe client may send this event at any time to update any field\nexcept for `voice` and `model`. `voice` can be updated only if there have been no other audio outputs yet.\n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present in the `session.update` are updated. To clear a field like\n`instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.\nTo clear a field like `turn_detection`, pass `null`.\n",
"description": "Send this event to update the session\u2019s configuration.\nThe client may send this event at any time to update any field\nexcept for `voice` and `model`. `voice` can be updated only if there have been no other audio outputs yet.\n\nWhen the server receives a `session.update`, it will respond\nwith a `session.updated` event showing the full, effective configuration.\nOnly the fields that are present in the `session.update` are updated. To clear a field like\n`instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.\nTo clear a field like `turn_detection`, pass `null`.\n\nTo turn off input audio noise reduction, send this Realtime event:\n\n```json\n{\"type\":\"session.update\",\"session\":{\"type\":\"realtime\",\"audio\":{\"input\":{\"noise_reduction\":null}}}}\n```\n\nFor a transcription session, use `\"type\":\"transcription\"` inside `session`.\nOmitting `audio.input.noise_reduction` from an update leaves its current setting unchanged.\n",
"properties": {
"event_id": {
"type": "string",
Expand Down
26 changes: 12 additions & 14 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62021,27 +62021,25 @@ components:
}
RealtimeClientEventSessionUpdate:
type: object
description: >
description: |
Send this event to update the session’s configuration.

The client may send this event at any time to update any field

except for `voice` and `model`. `voice` can be updated only if there
have been no other audio outputs yet.

except for `voice` and `model`. `voice` can be updated only if there have been no other audio outputs yet.

When the server receives a `session.update`, it will respond
with a `session.updated` event showing the full, effective configuration.
Only the fields that are present in the `session.update` are updated. To clear a field like
`instructions`, pass an empty string. To clear a field like `tools`, pass an empty array.
To clear a field like `turn_detection`, pass `null`.

with a `session.updated` event showing the full, effective
configuration.

Only the fields that are present in the `session.update` are updated. To
clear a field like
To turn off input audio noise reduction, send this Realtime event:

`instructions`, pass an empty string. To clear a field like `tools`,
pass an empty array.
```json
{"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}
```

To clear a field like `turn_detection`, pass `null`.
For a transcription session, use `"type":"transcription"` inside `session`.
Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged.
properties:
event_id:
type: string
Expand Down
Loading