diff --git a/src/Custom/Audio/AudioClient.cs b/src/Custom/Audio/AudioClient.cs
index 19dc6524c..7563d15a8 100644
--- a/src/Custom/Audio/AudioClient.cs
+++ b/src/Custom/Audio/AudioClient.cs
@@ -88,6 +88,11 @@ protected internal AudioClient(ClientPipeline pipeline, string model, OpenAIClie
_endpoint = OpenAIClient.GetEndpoint(options);
}
+ ///
+ /// Gets the name of the model used in requests sent to the service.
+ ///
+ public string Model => _model;
+
#region GenerateSpeech
/// Generates a life-like, spoken audio recording of the input text.
diff --git a/src/Custom/Chat/ChatClient.cs b/src/Custom/Chat/ChatClient.cs
index f88d4bfe8..6f2a87378 100644
--- a/src/Custom/Chat/ChatClient.cs
+++ b/src/Custom/Chat/ChatClient.cs
@@ -102,6 +102,11 @@ protected internal ChatClient(ClientPipeline pipeline, string model, OpenAIClien
_telemetry = new OpenTelemetrySource(model, _endpoint);
}
+ ///
+ /// Gets the name of the model used in requests sent to the service.
+ ///
+ public string Model => _model;
+
/// Generates a completion for the given chat.
/// The messages comprising the chat so far.
/// The options to configure the chat completion.
diff --git a/src/Custom/Embeddings/EmbeddingClient.cs b/src/Custom/Embeddings/EmbeddingClient.cs
index cbcd05556..cf99c7405 100644
--- a/src/Custom/Embeddings/EmbeddingClient.cs
+++ b/src/Custom/Embeddings/EmbeddingClient.cs
@@ -89,6 +89,11 @@ protected internal EmbeddingClient(ClientPipeline pipeline, string model, OpenAI
_endpoint = OpenAIClient.GetEndpoint(options);
}
+ ///
+ /// Gets the name of the model used in requests sent to the service.
+ ///
+ public string Model => _model;
+
// CUSTOM: Added to simplify generating a single embedding from a string input.
/// Generates an embedding representing the text input.
/// The text input to generate an embedding for.
diff --git a/src/Custom/Images/ImageClient.cs b/src/Custom/Images/ImageClient.cs
index b66b3b86c..b18629061 100644
--- a/src/Custom/Images/ImageClient.cs
+++ b/src/Custom/Images/ImageClient.cs
@@ -86,6 +86,11 @@ protected internal ImageClient(ClientPipeline pipeline, string model, OpenAIClie
Pipeline = pipeline;
_endpoint = OpenAIClient.GetEndpoint(options);
}
+
+ ///
+ /// Gets the name of the model used in requests sent to the service.
+ ///
+ public string Model => _model;
#region GenerateImages
diff --git a/src/Custom/Moderations/ModerationClient.cs b/src/Custom/Moderations/ModerationClient.cs
index adfe5eafa..e450ec874 100644
--- a/src/Custom/Moderations/ModerationClient.cs
+++ b/src/Custom/Moderations/ModerationClient.cs
@@ -89,6 +89,11 @@ protected internal ModerationClient(ClientPipeline pipeline, string model, OpenA
_endpoint = OpenAIClient.GetEndpoint(options);
}
+ ///
+ /// Gets the name of the model used in requests sent to the service.
+ ///
+ public string Model => _model;
+
/// Classifies if the text input is potentially harmful across several categories.
/// The text input to classify.
/// A token that can be used to cancel this method call.