diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscriptionOptions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscriptionOptions.cs
index 38fc1b9a3ff4..29899f87f1a3 100644
--- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscriptionOptions.cs
+++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranscriptionOptions.cs
@@ -16,7 +16,7 @@ public partial class AudioTranscriptionOptions
/// Initializes a new instance of AudioTranscriptionOptions.
///
/// The audio data to transcribe. This must be the binary content of a file in one of the supported media formats:
- /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
+ /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
///
/// is null.
public AudioTranscriptionOptions(BinaryData audioData)
@@ -29,7 +29,7 @@ public AudioTranscriptionOptions(BinaryData audioData)
/// Initializes a new instance of AudioTranscriptionOptions.
///
/// The audio data to transcribe. This must be the binary content of a file in one of the supported media formats:
- /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
+ /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
///
/// The requested format of the transcription response data, which will influence the content and detail of the result.
///
diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslationOptions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslationOptions.cs
index fe60b53dca16..9327047a12c0 100644
--- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslationOptions.cs
+++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AudioTranslationOptions.cs
@@ -16,7 +16,7 @@ public partial class AudioTranslationOptions
/// Initializes a new instance of AudioTranslationOptions.
///
/// The audio data to translate. This must be the binary content of a file in one of the supported media formats:
- /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
+ /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
///
/// is null.
public AudioTranslationOptions(BinaryData audioData)
@@ -29,7 +29,7 @@ public AudioTranslationOptions(BinaryData audioData)
/// Initializes a new instance of AudioTranslationOptions.
///
/// The audio data to translate. This must be the binary content of a file in one of the supported media formats:
- /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
+ /// flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
///
/// The requested format of the translation response data, which will influence the content and detail of the result.
///
diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureOpenAIModelFactory.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureOpenAIModelFactory.cs
index 4d48aec9e827..d95fd3dc4e96 100644
--- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureOpenAIModelFactory.cs
+++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureOpenAIModelFactory.cs
@@ -15,38 +15,54 @@ namespace Azure.AI.OpenAI
/// Model factory for models.
public static partial class AzureOpenAIModelFactory
{
- /// Initializes a new instance of Embeddings.
- /// Embedding values for the prompts submitted in the request.
- /// Usage counts for tokens input using the embeddings API.
- /// A new instance for mocking.
- public static Embeddings Embeddings(IEnumerable data = null, EmbeddingsUsage usage = null)
+ /// Initializes a new instance of AudioTranscriptionSegment.
+ /// The 0-based index of this segment within a transcription.
+ /// The time at which this segment started relative to the beginning of the transcribed audio.
+ /// The time at which this segment ended relative to the beginning of the transcribed audio.
+ /// The transcribed text that was part of this audio segment.
+ /// The temperature score associated with this audio segment.
+ /// The average log probability associated with this audio segment.
+ /// The compression ratio of this audio segment.
+ /// The probability of no speech detection within this audio segment.
+ /// The token IDs matching the transcribed text in this audio segment.
+ ///
+ /// The seek position associated with the processing of this audio segment.
+ /// Seek positions are expressed as hundredths of seconds.
+ /// The model may process several segments from a single seek position, so while the seek position will never represent
+ /// a later time than the segment's start, the segment's start may represent a significantly later time than the
+ /// segment's associated seek position.
+ ///
+ /// A new instance for mocking.
+ public static AudioTranscriptionSegment AudioTranscriptionSegment(int id = default, TimeSpan start = default, TimeSpan end = default, string text = null, float temperature = default, float averageLogProbability = default, float compressionRatio = default, float noSpeechProbability = default, IEnumerable tokens = null, int seek = default)
{
- data ??= new List();
+ tokens ??= new List();
- return new Embeddings(data?.ToList(), usage);
+ return new AudioTranscriptionSegment(id, start, end, text, temperature, averageLogProbability, compressionRatio, noSpeechProbability, tokens?.ToList(), seek);
}
- /// Initializes a new instance of EmbeddingItem.
- ///
- /// List of embeddings value for the input prompt. These represent a measurement of the
- /// vector-based relatedness of the provided input.
+ /// Initializes a new instance of AudioTranslationSegment.
+ /// The 0-based index of this segment within a translation.
+ /// The time at which this segment started relative to the beginning of the translated audio.
+ /// The time at which this segment ended relative to the beginning of the translated audio.
+ /// The translated text that was part of this audio segment.
+ /// The temperature score associated with this audio segment.
+ /// The average log probability associated with this audio segment.
+ /// The compression ratio of this audio segment.
+ /// The probability of no speech detection within this audio segment.
+ /// The token IDs matching the translated text in this audio segment.
+ ///
+ /// The seek position associated with the processing of this audio segment.
+ /// Seek positions are expressed as hundredths of seconds.
+ /// The model may process several segments from a single seek position, so while the seek position will never represent
+ /// a later time than the segment's start, the segment's start may represent a significantly later time than the
+ /// segment's associated seek position.
///
- /// Index of the prompt to which the EmbeddingItem corresponds.
- /// A new instance for mocking.
- public static EmbeddingItem EmbeddingItem(IEnumerable embedding = null, int index = default)
+ /// A new instance for mocking.
+ public static AudioTranslationSegment AudioTranslationSegment(int id = default, TimeSpan start = default, TimeSpan end = default, string text = null, float temperature = default, float averageLogProbability = default, float compressionRatio = default, float noSpeechProbability = default, IEnumerable tokens = null, int seek = default)
{
- embedding ??= new List();
-
- return new EmbeddingItem(embedding?.ToList(), index);
- }
+ tokens ??= new List();
- /// Initializes a new instance of EmbeddingsUsage.
- /// Number of tokens sent in the original request.
- /// Total number of tokens transacted in this request/response.
- /// A new instance for mocking.
- public static EmbeddingsUsage EmbeddingsUsage(int promptTokens = default, int totalTokens = default)
- {
- return new EmbeddingsUsage(promptTokens, totalTokens);
+ return new AudioTranslationSegment(id, start, end, text, temperature, averageLogProbability, compressionRatio, noSpeechProbability, tokens?.ToList(), seek);
}
/// Initializes a new instance of Completions.
@@ -216,54 +232,38 @@ public static ImageLocation ImageLocation(Uri url = null)
return new ImageLocation(url);
}
- /// Initializes a new instance of AudioTranscriptionSegment.
- /// The 0-based index of this segment within a transcription.
- /// The time at which this segment started relative to the beginning of the transcribed audio.
- /// The time at which this segment ended relative to the beginning of the transcribed audio.
- /// The transcribed text that was part of this audio segment.
- /// The temperature score associated with this audio segment.
- /// The average log probability associated with this audio segment.
- /// The compression ratio of this audio segment.
- /// The probability of no speech detection within this audio segment.
- /// The token IDs matching the transcribed text in this audio segment.
- ///
- /// The seek position associated with the processing of this audio segment.
- /// Seek positions are expressed as hundredths of seconds.
- /// The model may process several segments from a single seek position, so while the seek position will never represent
- /// a later time than the segment's start, the segment's start may represent a significantly later time than the
- /// segment's associated seek position.
- ///
- /// A new instance for mocking.
- public static AudioTranscriptionSegment AudioTranscriptionSegment(int id = default, TimeSpan start = default, TimeSpan end = default, string text = null, float temperature = default, float averageLogProbability = default, float compressionRatio = default, float noSpeechProbability = default, IEnumerable tokens = null, int seek = default)
+ /// Initializes a new instance of Embeddings.
+ /// Embedding values for the prompts submitted in the request.
+ /// Usage counts for tokens input using the embeddings API.
+ /// A new instance for mocking.
+ public static Embeddings Embeddings(IEnumerable data = null, EmbeddingsUsage usage = null)
{
- tokens ??= new List();
+ data ??= new List();
- return new AudioTranscriptionSegment(id, start, end, text, temperature, averageLogProbability, compressionRatio, noSpeechProbability, tokens?.ToList(), seek);
+ return new Embeddings(data?.ToList(), usage);
}
- /// Initializes a new instance of AudioTranslationSegment.
- /// The 0-based index of this segment within a translation.
- /// The time at which this segment started relative to the beginning of the translated audio.
- /// The time at which this segment ended relative to the beginning of the translated audio.
- /// The translated text that was part of this audio segment.
- /// The temperature score associated with this audio segment.
- /// The average log probability associated with this audio segment.
- /// The compression ratio of this audio segment.
- /// The probability of no speech detection within this audio segment.
- /// The token IDs matching the translated text in this audio segment.
- ///
- /// The seek position associated with the processing of this audio segment.
- /// Seek positions are expressed as hundredths of seconds.
- /// The model may process several segments from a single seek position, so while the seek position will never represent
- /// a later time than the segment's start, the segment's start may represent a significantly later time than the
- /// segment's associated seek position.
+ /// Initializes a new instance of EmbeddingItem.
+ ///
+ /// List of embeddings value for the input prompt. These represent a measurement of the
+ /// vector-based relatedness of the provided input.
///
- /// A new instance for mocking.
- public static AudioTranslationSegment AudioTranslationSegment(int id = default, TimeSpan start = default, TimeSpan end = default, string text = null, float temperature = default, float averageLogProbability = default, float compressionRatio = default, float noSpeechProbability = default, IEnumerable tokens = null, int seek = default)
+ /// Index of the prompt to which the EmbeddingItem corresponds.
+ /// A new instance for mocking.
+ public static EmbeddingItem EmbeddingItem(IEnumerable embedding = null, int index = default)
{
- tokens ??= new List();
+ embedding ??= new List();
- return new AudioTranslationSegment(id, start, end, text, temperature, averageLogProbability, compressionRatio, noSpeechProbability, tokens?.ToList(), seek);
+ return new EmbeddingItem(embedding?.ToList(), index);
+ }
+
+ /// Initializes a new instance of EmbeddingsUsage.
+ /// Number of tokens sent in the original request.
+ /// Total number of tokens transacted in this request/response.
+ /// A new instance for mocking.
+ public static EmbeddingsUsage EmbeddingsUsage(int promptTokens = default, int totalTokens = default)
+ {
+ return new EmbeddingsUsage(promptTokens, totalTokens);
}
}
}
diff --git a/sdk/openai/Azure.AI.OpenAI/tsp-location.yaml b/sdk/openai/Azure.AI.OpenAI/tsp-location.yaml
index ff3fb0810607..1b3973d39fc5 100644
--- a/sdk/openai/Azure.AI.OpenAI/tsp-location.yaml
+++ b/sdk/openai/Azure.AI.OpenAI/tsp-location.yaml
@@ -1,3 +1,5 @@
-directory: specification/cognitiveservices/OpenAI.Inference
-commit: a66833cbdebb0574ba012f814ab271a382a7c500
repo: Azure/azure-rest-api-specs
+commit: d5fa3f445b337282fc0c9e0c0da53085ae05006a
+additionalDirectories: []
+directory: specification/cognitiveservices/OpenAI.Inference
+