From af6861ef066b1945d2465d61c9d5d9b9fb57c17f Mon Sep 17 00:00:00 2001 From: BenjaminPinter Date: Mon, 22 Sep 2025 19:18:54 -0400 Subject: [PATCH] Expose model property from the OpenAIResponseClient --- src/Custom/Responses/OpenAIResponseClient.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Custom/Responses/OpenAIResponseClient.cs b/src/Custom/Responses/OpenAIResponseClient.cs index aebbdc588..9bf32b83f 100644 --- a/src/Custom/Responses/OpenAIResponseClient.cs +++ b/src/Custom/Responses/OpenAIResponseClient.cs @@ -119,6 +119,12 @@ protected internal OpenAIResponseClient(ClientPipeline pipeline, string model, O [Experimental("OPENAI001")] public Uri Endpoint => _endpoint; + /// + /// Gets the name of the model used in requests sent to the service. + /// + [Experimental("OPENAI001")] + public string Model => _model; + public virtual Task> CreateResponseAsync(IEnumerable inputItems, ResponseCreationOptions options = null, CancellationToken cancellationToken = default) { return CreateResponseAsync(inputItems, options, cancellationToken.ToRequestOptions() ?? new RequestOptions());