Skip to content

Commit

Permalink
pr somments
Browse files Browse the repository at this point in the history
  • Loading branch information
chschrae committed Sep 19, 2024
1 parent deae729 commit 4ed3408
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Azure.AI.OpenAI.Batch;
/// A long-running operation for executing a batch from an uploaded file of
/// requests.
/// </summary>
public partial class AzureCreateBatchOperation : CreateBatchOperation
internal partial class AzureCreateBatchOperation : CreateBatchOperation
{
private readonly ClientPipeline _pipeline;
private readonly Uri _endpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ namespace Azure.AI.OpenAI.FineTuning;
/// <summary>
/// A long-running operation for creating a new model from a given dataset.
/// </summary>
[Experimental("OPENAI001")]
public class AzureCreateJobOperation : CreateJobOperation
{
private readonly PipelineMessageClassifier DeleteJobClassifier = PipelineMessageClassifier.Create(stackalloc ushort[] { 204 });
private readonly PipelineMessageClassifier _deleteJobClassifier;
private readonly ClientPipeline _pipeline;
private readonly Uri _endpoint;
private readonly string _jobId;
Expand All @@ -31,6 +32,7 @@ internal AzureCreateJobOperation(
_endpoint = endpoint;
_jobId = jobId;
_apiVersion = apiVersion;
_deleteJobClassifier = PipelineMessageClassifier.Create(stackalloc ushort[] { 204 });
}

[Experimental("AOAI001")]
Expand All @@ -53,7 +55,7 @@ private PipelineMessage CreateDeleteJobRequestMessage(string fineTuningJobId, Re
.WithMethod("DELETE")
.WithPath("fine_tuning", "jobs", fineTuningJobId)
.WithAccept("application/json")
.WithClassifier(DeleteJobClassifier)
.WithClassifier(_deleteJobClassifier)
.WithOptions(options)
.Build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Azure.AI.OpenAI.VectorStores;

[Experimental("OPENAI001")]
public class AzureCreateVectorStoreOperation : CreateVectorStoreOperation
internal class AzureCreateVectorStoreOperation : CreateVectorStoreOperation
{
private readonly ClientPipeline _pipeline;
private readonly Uri _endpoint;
Expand Down

0 comments on commit 4ed3408

Please sign in to comment.