Last updated 9 months ago
Was this helpful?
OpenAI
Finetune a provider model
Gateway supported body params for OpenAI, Azure OpenAI and VertexAI.
Gateway supported body params for bedrock fine-tuning.
Gateway supported body params for portkey managed fine-tuning.
The fine_tuning.job object represents a fine-tuning job that has been created through the API.
fine_tuning.job
curl https://api.portkey.ai/v1/fine_tuning/jobs \ -H "Content-Type: application/json" \ -H "x-portkey-api-key: $PORTKEY_API_KEY" \ -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \ -d '{ "training_file": "file-BK7bzQj3FfZFXr7DbL6xJwfo", "model": "gpt-3.5-turbo" }'
The request has succeeded.
{ "id": "text", "created_at": 1, "error": { "code": "text", "message": "text", "param": "text" }, "fine_tuned_model": "text", "finished_at": 1, "hyperparameters": { "n_epochs": "auto" }, "model": "text", "object": "fine_tuning.job", "organization_id": "text", "result_files": [ "file-abc123" ], "status": "validating_files", "trained_tokens": 1, "training_file": "text", "validation_file": "text", "integrations": [ { "type": "wandb", "wandb": { "project": "my-wandb-project", "name": "text", "entity": "text", "tags": [ "custom-tag" ] } } ], "seed": 1, "estimated_finish": 1 }