Skip to content

Commit 96999b7

Browse files
Expose model property from the OpenAIResponseClient (#707)
1 parent 529cfa0 commit 96999b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Custom/Responses/OpenAIResponseClient.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ protected internal OpenAIResponseClient(ClientPipeline pipeline, string model, O
119119
[Experimental("OPENAI001")]
120120
public Uri Endpoint => _endpoint;
121121

122+
/// <summary>
123+
/// Gets the name of the model used in requests sent to the service.
124+
/// </summary>
125+
[Experimental("OPENAI001")]
126+
public string Model => _model;
127+
122128
public virtual Task<ClientResult<OpenAIResponse>> CreateResponseAsync(IEnumerable<ResponseItem> inputItems, ResponseCreationOptions options = null, CancellationToken cancellationToken = default)
123129
{
124130
return CreateResponseAsync(inputItems, options, cancellationToken.ToRequestOptions() ?? new RequestOptions());

0 commit comments

Comments
 (0)