{
// 方式一:通过主题创建
"subject": "xxx", // 主题(与dataUrl二选一)
// 方式二:通过文件内容创建
"dataUrl": "https://xxx", // 数据url,通过解析文件内容接口返回(与subject二选一)
"prompt": null // 用户要求(小于50字)
}
curl --location --request POST 'https://api.leebay.cyou/docmee/v1/api/ppt/generateOutline' \
--header 'Authorization: sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
// 方式一:通过主题创建
"subject": "xxx", // 主题(与dataUrl二选一)
// 方式二:通过文件内容创建
"dataUrl": "https://xxx", // 数据url,通过解析文件内容接口返回(与subject二选一)
"prompt": null // 用户要求(小于50字)
}'
{
"text": "",
"status": 1 // 状态:-1异常 1解析文件 3生成中 4完成
}
{ "text": "# ", "status": 3 }
{ "text": " ", "status": 3 }
{ "text": "主题", "status": 3 }
...
{
"text": "",
"status": 4,
"result": {
"level": 1,
"name": "主题",
"children": [
{
"level": 2,
"name": "章节",
"children": [
{
"level": 3,
"name": "页面标题",
"children": [
{
"level": 4,
"name": "内容标题"
}
]
}
]
}
]
}
}