获取微调事件
curl --request GET \
--url https://kaienapi.com/v1/fine-tunes/{fine_tune_id}/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/v1/fine-tunes/{fine_tune_id}/events"
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/{fine_tune_id}/events', 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/{fine_tune_id}/events"
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": [
{}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}获取微调事件
获取指定微调任务的事件列表。
何时调用
- 展示训练日志
- 排查训练文件格式错误
- 判断任务卡住、失败或被取消的具体原因
读取结果
事件按任务进度返回,通常包含时间、级别和消息文本。客户端按时间顺序展示,并保留原始消息,供用户排查训练数据问题。
GET
/
v1
/
fine-tunes
/
{fine_tune_id}
/
events
获取微调事件
curl --request GET \
--url https://kaienapi.com/v1/fine-tunes/{fine_tune_id}/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://kaienapi.com/v1/fine-tunes/{fine_tune_id}/events"
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/{fine_tune_id}/events', 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/{fine_tune_id}/events"
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": [
{}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}⌘I