取消微调
POST
https://api.apiyi.com/v1/fine_tuning/jobs/{fine_tuning_job_id}/cancel
请求参数
Path 参数
fine_tuning_job_id
string
必需
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.apiyi.com/v1/fine_tuning/jobs//cancel' \
--header 'Authorization: Bearer '
返回响应
🟢200成功
application/json
Body
object
string
必需
id
string
必需
model
string
被微调的基础模型
created_at
integer
必需
fine_tuned_model
null
必需
organization_id
string
拥有微调作业的组织
result_files
array[string]
必需
hyperparameters
object
必需
n_epochs
string
必需
status
string
必需
validation_file
string
必需
training_file
string
必需
示例
{
"object": "fine_tuning.job",
"id": "ftjob-abc123",
"model": "gpt-3.5-turbo-0613",
"created_at": 1689376978,
"fine_tuned_model": null,
"organization_id": "org-123",
"result_files": [],
"hyperparameters": {
"n_epochs": "auto"
},
"status": "cancelled",
"validation_file": "file-abc123",
"training_file": "file-abc123"
}
修改于 2024-06-23 18:07:46