Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix fine-tuning test (#380)
Browse files Browse the repository at this point in the history
The first status changed from created to validating_files

Since this is working either way, just check that it has an id instead
  • Loading branch information
TheoKanning authored Oct 22, 2023
1 parent 44cba2e commit fe42958
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.theokanning.openai.fine_tuning.FineTuningJob;
import com.theokanning.openai.fine_tuning.FineTuningJobRequest;
import com.theokanning.openai.fine_tuning.Hyperparameters;
import com.theokanning.openai.finetune.FineTuneResult;
import org.junit.jupiter.api.*;

import java.util.List;
Expand Down Expand Up @@ -49,7 +48,7 @@ void createFineTuningJob() {
FineTuningJob fineTuningJob = service.createFineTuningJob(request);
fineTuningJobId = fineTuningJob.getId();

assertEquals("created", fineTuningJob.getStatus());
assertNotNull(fineTuningJob);
}

@Test
Expand Down

0 comments on commit fe42958

Please sign in to comment.