OpenAI (ChatGPT) ACTION
Create Fine Tuning Job
Creates a job that fine-tunes a specified model from a given dataset. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's OpenAI (ChatGPT) account once, then configure and run Create Fine Tuning Job from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "openai-create-fine-tuning-job",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
openai: { authProvisionId: "apn_xxxxxxx" },
model: "Fine Tuning Model",
trainingFile: "Training File",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "openai-create-fine-tuning-job",
"configured_props": {
"openai": { "authProvisionId": "apn_xxxxxxx" },
"model": "Fine Tuning Model",
"trainingFile": "Training File"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "openai",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "openai-create-fine-tuning-job",
arguments: {
model: "Fine Tuning Model",
trainingFile: "Training File",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
model Fine Tuning Model | string | The name of the model to fine-tune. See the supported models. Required |
trainingFile Training File | string | The ID of an uploaded file that contains training data. You can use the Upload File action and reference the returned ID here. Required Dynamic |
hyperParameters Hyperparameters | object | The hyperparameters used for the fine-tuning job. See details in the documentation. Optional |
suffix Suffix | string | A string of up to 18 characters that will be added to your fine-tuned model name. Optional |
validationFile Validation File | string | The ID of an uploaded file that contains validation data. See details in the documentation. Optional Dynamic |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- openai-create-fine-tuning-job
- Version
- 0.0.19
- App
- OpenAI (ChatGPT)
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗