Delete Fine-Tuned Model (OpenAI) v1.0.0
Deletes the specified fine-tuned model stored in your OpenAI account.
How can I use the Step?
The Step lets you delete specific fine-tuned models by name. This way, you can remove useless resources from the storage associated with your OpenAI account.
How does the Step work?
You authorize the Step and specify the name of the fine-tuned model you want to delete. The Step makes a DELETE
request to the OpenAI Models endpoint and deletes chosen fine-tuned model.
Prerequisites
To get started, make sure you meet the following requirements:
- You have an OpenAI API key. To retrieve an API key for your requests, visit your API Keys page.
- You have the
Owner
role in your organization.
Authorization
To authorize the Step, you have two options:
- Inherit from previous Step (default): Use the same authorization as the previous Step in the Flow.
- Select authorization in the current Step: Choose an existing authorization or create a new one.
In case you need to create a new authorization, follow these steps:
- Choose Select authorization in the current Step and then select
Create a new authorization
from the list. - In the Add authorization modal window, provide the required details:
- Authorization name: Name your new authorization.
- API Key: Enter your OpenAI API key.
- Click Add to confirm settings and add your new authorization.
Request settings
From the Model list, select a fine-tuned model you want to delete.
Merge field settings
The Step returns the result as a JSON object and stores it in the Merge field variable. Thus you can access the output JSON object from any point of your Flow.
Output example
The output indicates if the deletion of the model was successful and looks like the following:
{
"id": "curie:ft-acmeco-2021-03-03-21-44-20",
"object": "model",
"deleted": true
}
{
"id": "curie:ft-acmeco-2021-03-03-21-44-20",
"object": "model",
"deleted": true
}
Error Handling
By default, the Handle error toggle is on, and the Step handles errors with a separate exit. If any error occurs during the Step execution, the Flow proceeds down the error
exit.
If the Handle error toggle is disabled, the Step does not handle errors. In this case, if any error occurs during the Step execution, the Flow fails immediately after exceeding the Flow timeout. To prevent the Flow from being suspended and continue handling errors, you can place the Flow Error Handling Step before the main logic or your Flow.
Reporting
The Step reports once after its execution. You can change the Step log level and add new tags in the section.
Log level
By default, the Step inherits its log level from Flow's log level. You can change the Step's log level by selecting an appropriate option from the Log level list.
Tags
Tags help organize and filter session information when generating reports. When adding a new tag, you can specify the tag category, label, and value.
Service dependencies
- flow builder - v2.28.3
- event-manager - v2.3.0
- deployer - v2.6.0
- library v2.11.3
- studio v2.64.1
Release notes
v1.0.0
- Initial release