Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Custom/Responses/OpenAIResponseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ protected internal OpenAIResponseClient(ClientPipeline pipeline, string model, O
[Experimental("OPENAI001")]
public Uri Endpoint => _endpoint;

/// <summary>
/// Gets the name of the model used in requests sent to the service.
/// </summary>
[Experimental("OPENAI001")]
public string Model => _model;

public virtual Task<ClientResult<OpenAIResponse>> CreateResponseAsync(IEnumerable<ResponseItem> inputItems, ResponseCreationOptions options = null, CancellationToken cancellationToken = default)
{
return CreateResponseAsync(inputItems, options, cancellationToken.ToRequestOptions() ?? new RequestOptions());
Expand Down