获取微调任务列表
curl --request GET \
--url https://kaienapi.com/v1/fine-tunes \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/v1/fine-tunes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://kaienapi.com/v1/fine-tunes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://kaienapi.com/v1/fine-tunes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "list",
"data": [
{
"id": "ft-abc123",
"object": "fine-tune",
"model": "<string>",
"status": "<string>",
"created_at": 123
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}获取微调任务列表
列出当前账号下的 Legacy Fine-tunes 任务。
何时调用
- 展示历史微调任务
- 查找某个训练任务的状态
- 对接仍使用旧版 Fine-tunes 接口的项目
读取结果
任务对象通常包含 ID、基础模型、训练文件、状态和时间信息。新项目创建任务前,确认所选模型是否支持微调。
GET
/
v1
/
fine-tunes
获取微调任务列表
curl --request GET \
--url https://kaienapi.com/v1/fine-tunes \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/v1/fine-tunes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://kaienapi.com/v1/fine-tunes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://kaienapi.com/v1/fine-tunes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "list",
"data": [
{
"id": "ft-abc123",
"object": "fine-tune",
"model": "<string>",
"status": "<string>",
"created_at": 123
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}⌘I