latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

fine-tuning

✨ (Enterprise) Create Fine-Tuning Job

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
    }
  }'
post/fine_tuning/jobs

Request body

modelstring required
training_filestring required
suffixstring nullable
validation_filestring nullable
integrationsstring[] nullable
seedinteger nullable
custom_llm_provider'openai' | 'azure' | 'vertex_ai' nullable

Response

Successful Response

{"stackTrail":"paths:/fine_tuning/jobs:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}