Lists fine-tuning jobs for the organization. This is the equivalent of GET https://api.openai.com/v1/fine_tuning/jobs
Supported Query Params:
custom_llm_provider
: Name of the LiteLLM providerafter
: Identifier for the last job from the previous pagination request.limit
: Number of fine-tuning jobs to retrieve (default is 20).Successful Response
Retrieves a fine-tuning job. This is the equivalent of GET https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}
Supported Query Params:
custom_llm_provider
: Name of the LiteLLM providerfine_tuning_job_id
: The ID of the fine-tuning job to retrieve.Successful Response
Retrieves a fine-tuning job. This is the equivalent of GET https://api.openai.com/v1/fine_tuning/jobs/{fine_tuning_job_id}
Supported Query Params:
custom_llm_provider
: Name of the LiteLLM providerfine_tuning_job_id
: The ID of the fine-tuning job to retrieve.Successful Response
Lists fine-tuning jobs for the organization. This is the equivalent of GET https://api.openai.com/v1/fine_tuning/jobs
Supported Query Params:
custom_llm_provider
: Name of the LiteLLM providerafter
: Identifier for the last job from the previous pagination request.limit
: Number of fine-tuning jobs to retrieve (default is 20).Successful Response
Creates a fine-tuning job which begins the process of creating a new model from a given dataset. This is the equivalent of POST https://api.openai.com/v1/fine_tuning/jobs
Supports Identical Params as: https://platform.openai.com/docs/api-reference/fine-tuning/create
Example Curl:
curl http://localhost:4000/v1/fine_tuning/jobs -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{
"model": "gpt-3.5-turbo",
"training_file": "file-abc123",
"hyperparameters": {
"n_epochs": 4
}
}'
Successful Response
Creates a fine-tuning job which begins the process of creating a new model from a given dataset. This is the equivalent of POST https://api.openai.com/v1/fine_tuning/jobs
Supports Identical Params as: https://platform.openai.com/docs/api-reference/fine-tuning/create
Example Curl:
curl http://localhost:4000/v1/fine_tuning/jobs -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{
"model": "gpt-3.5-turbo",
"training_file": "file-abc123",
"hyperparameters": {
"n_epochs": 4
}
}'
Successful Response