test - async ft jobs

This commit is contained in:
Ishaan Jaff 2024-07-29 19:52:14 -07:00
parent 106626f224
commit c9bea3a879
3 changed files with 54 additions and 3 deletions

View file

@ -53,7 +53,9 @@ class OpenAIFineTuningAPI(BaseLLM):
create_fine_tuning_job_data: FineTuningJobCreate,
openai_client: AsyncOpenAI,
) -> FineTuningJob:
response = await openai_client.batches.create(**create_fine_tuning_job_data)
response = await openai_client.fine_tuning.jobs.create(
**create_fine_tuning_job_data
)
return response
def create_fine_tuning_job(