Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed one more time
Browse files Browse the repository at this point in the history
StephenHodgson committed Nov 7, 2023
1 parent e8c70ac commit ada20da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenAI-DotNet/FineTuning/FineTuningEndpoint.cs
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ public async Task<FineTuneJob> GetJobInfoAsync(string jobId, CancellationToken c
var response = await Api.Client.GetAsync(GetUrl($"/jobs/{jobId}"), cancellationToken).ConfigureAwait(false);
var responseAsString = await response.ReadAsStringAsync(EnableDebug, cancellationToken).ConfigureAwait(false);
var job = JsonSerializer.Deserialize<FineTuneJob>(responseAsString, OpenAIClient.JsonSerializationOptions);
job.Events = (await ListEventsAsync(job, cancellationToken: cancellationToken).ConfigureAwait(false)).Events;
job.Events = (await ListJobEventsAsync(job, cancellationToken: cancellationToken).ConfigureAwait(false)).Events;
return job;
}

@@ -104,7 +104,7 @@ public async Task<bool> CancelJobAsync(string jobId, CancellationToken cancellat
/// <param name="cancellationToken">Optional, <see cref="CancellationToken"/>.</param>
/// <returns>List of events for <see cref="FineTuneJob"/>.</returns>
/// <exception cref="HttpRequestException"></exception>
public async Task<EventList> ListEventsAsync(string jobId, int? limit = null, string after = null, CancellationToken cancellationToken = default)
public async Task<EventList> ListJobEventsAsync(string jobId, int? limit = null, string after = null, CancellationToken cancellationToken = default)
{
var parameters = new Dictionary<string, string>();

0 comments on commit ada20da

Please sign in to comment.