From 293df85ed240abd77a10148f7c8e6e2c007b9261 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 4 Oct 2026 20:37:25 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...dels.RealtimeClientEventSessionUpdate.g.cs | 8 +++++- ...AGI.OpenAI.Models.RealtimeClientEvent.g.cs | 8 +++++- ...dels.RealtimeClientEventSessionUpdate.g.cs | 8 +++++- src/libs/tryAGI.OpenAI/asyncapi.json | 2 +- src/libs/tryAGI.OpenAI/openapi.yaml | 26 +++++++++---------- 5 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventSessionUpdate.g.cs index 418d6ef6e..530ecf929 100644 --- a/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventSessionUpdate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/Realtime/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventSessionUpdate.g.cs @@ -11,7 +11,13 @@ namespace tryAGI.OpenAI.Realtime /// 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`. + /// To clear a field like `turn_detection`, pass `null`.
+ /// To turn off input audio noise reduction, send this Realtime event:
+ /// ```json
+ /// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}
+ /// ```
+ /// For a transcription session, use `"type":"transcription"` inside `session`.
+ /// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged. /// public sealed partial class RealtimeClientEventSessionUpdate { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs index 2815250ec..a2d26d439 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs @@ -451,7 +451,13 @@ public bool TryPickResponseCreate( /// 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`. + /// To clear a field like `turn_detection`, pass `null`.
+ /// To turn off input audio noise reduction, send this Realtime event:
+ /// ```json
+ /// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}
+ /// ```
+ /// For a transcription session, use `"type":"transcription"` inside `session`.
+ /// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged. /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? SessionUpdate { get; init; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs index a8500b48e..355e01c00 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventSessionUpdate.g.cs @@ -11,7 +11,13 @@ namespace tryAGI.OpenAI /// 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`. + /// To clear a field like `turn_detection`, pass `null`.
+ /// To turn off input audio noise reduction, send this Realtime event:
+ /// ```json
+ /// {"type":"session.update","session":{"type":"realtime","audio":{"input":{"noise_reduction":null}}}}
+ /// ```
+ /// For a transcription session, use `"type":"transcription"` inside `session`.
+ /// Omitting `audio.input.noise_reduction` from an update leaves its current setting unchanged. /// public sealed partial class RealtimeClientEventSessionUpdate { diff --git a/src/libs/tryAGI.OpenAI/asyncapi.json b/src/libs/tryAGI.OpenAI/asyncapi.json index c6df9bd50..6bb6917f0 100644 --- a/src/libs/tryAGI.OpenAI/asyncapi.json +++ b/src/libs/tryAGI.OpenAI/asyncapi.json @@ -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", diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index 667529a08..6c915e3d9 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -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