Published 4 hours ago
This n8n workflow automates fine-tuning OpenAI models through these key steps:
.jsonl
file from Google Drive.jsonl
file to OpenAI via the "Upload File" node (with purpose "fine-tune"
).https://api.openai.com/v1/fine_tuning/jobs
with:{
"training_file": "{{ $json.id }}",
"model": "gpt-4o-mini-2024-07-18"
}
ft:gpt-4o-mini-2024-07-18:n3w-italia::XXXX7B
) to respond to chat messages.To configure the workflow:
Prepare the Training File:
.jsonl
file following the specified syntax (e.g., travel assistant Q/A examples).Configure Credentials:
googleDriveOAuth2Api
).Customize the Model:
ft:gpt-4o-mini-...
).Create Fine-tuning Job
) if needed (e.g., a different base model).Start the Workflow:
Integrated Documentation:
.jsonl
(Step 1).https://platform.openai.com/finetune/
).Note: Ensure the .jsonl
file adheres to OpenAI’s required structure and that credentials are valid.
Implement complex processes faster with n8n