241 lines
7.4 KiB
JSON
241 lines
7.4 KiB
JSON
{
|
|||
|
|
"openapi": "3.0.3",
|
||
|
|
"info": {
|
||
|
|
"title": "故事平台 · 分步骤模型",
|
||
|
|
"version": "1.0.0",
|
||
|
|
"description": "在各节点选择火山模型。草稿测试使用虚构示例;发布后用于后续线上任务。"
|
||
|
|
},
|
||
|
|
"servers": [
|
||
|
|
{
|
||
|
|
"url": "http://model-bridge:8188"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"paths": {
|
||
|
|
"/steps/classify": {
|
||
|
|
"post": {
|
||
|
|
"operationId": "classify",
|
||
|
|
"summary": "分类与故事拆分",
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"context_id": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台任务编号"
|
||
|
|
},
|
||
|
|
"step_token": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台临时执行凭证"
|
||
|
|
},
|
||
|
|
"model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "模型",
|
||
|
|
"default": "deepseek-v4-1-flash-260910",
|
||
|
|
"enum": [
|
||
|
|
"deepseek-v4-1-flash-260910",
|
||
|
|
"doubao-seed-evolving",
|
||
|
|
"doubao-seed-2-1-pro-260915",
|
||
|
|
"doubao-seed-2-1-lite-260915",
|
||
|
|
"__custom__"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"custom_model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "自定义火山模型 ID 或 ep- 接入点",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
"prompt": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "提示词"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"context_id",
|
||
|
|
"step_token",
|
||
|
|
"model"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "执行状态、实际模型和统计,不含长者原文"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/steps/daily": {
|
||
|
|
"post": {
|
||
|
|
"operationId": "daily",
|
||
|
|
"summary": "审核今天实际事件",
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"context_id": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台任务编号"
|
||
|
|
},
|
||
|
|
"step_token": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台临时执行凭证"
|
||
|
|
},
|
||
|
|
"model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "模型",
|
||
|
|
"default": "deepseek-v4-1-flash-260910",
|
||
|
|
"enum": [
|
||
|
|
"deepseek-v4-1-flash-260910",
|
||
|
|
"doubao-seed-evolving",
|
||
|
|
"doubao-seed-2-1-pro-260915",
|
||
|
|
"doubao-seed-2-1-lite-260915",
|
||
|
|
"__custom__"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"custom_model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "自定义火山模型 ID 或 ep- 接入点",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
"prompt": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "提示词"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"context_id",
|
||
|
|
"step_token",
|
||
|
|
"model"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "执行状态、实际模型和统计,不含长者原文"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/steps/write-book": {
|
||
|
|
"post": {
|
||
|
|
"operationId": "write_book",
|
||
|
|
"summary": "全部故事统一编写整本",
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"context_id": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台任务编号"
|
||
|
|
},
|
||
|
|
"step_token": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台临时执行凭证"
|
||
|
|
},
|
||
|
|
"model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "模型",
|
||
|
|
"default": "doubao-seed-evolving",
|
||
|
|
"enum": [
|
||
|
|
"doubao-seed-evolving",
|
||
|
|
"doubao-seed-2-1-pro-260915",
|
||
|
|
"doubao-seed-2-1-lite-260915",
|
||
|
|
"__custom__"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"custom_model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "自定义火山模型 ID 或 ep- 接入点",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
"prompt": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "提示词"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"context_id",
|
||
|
|
"step_token",
|
||
|
|
"model"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "执行状态、实际模型和统计,不含长者原文"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/steps/illustrate": {
|
||
|
|
"post": {
|
||
|
|
"operationId": "illustrate",
|
||
|
|
"summary": "绘制该章情景插画",
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"context_id": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台任务编号"
|
||
|
|
},
|
||
|
|
"step_token": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "后台临时执行凭证"
|
||
|
|
},
|
||
|
|
"model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "模型",
|
||
|
|
"default": "doubao-seedream-5-0-pro-260628",
|
||
|
|
"enum": [
|
||
|
|
"doubao-seedream-5-0-pro-260628",
|
||
|
|
"doubao-seedream-5-0-flash-260915",
|
||
|
|
"doubao-seedream-4-0-20260415",
|
||
|
|
"__custom__"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"custom_model": {
|
||
|
|
"type": "string",
|
||
|
|
"description": "自定义火山模型 ID 或 ep- 接入点",
|
||
|
|
"default": ""
|
||
|
|
},
|
||
|
|
"chapter_index": {
|
||
|
|
"type": "integer",
|
||
|
|
"description": "章节序号"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"context_id",
|
||
|
|
"step_token",
|
||
|
|
"model"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "执行状态、实际模型和统计,不含长者原文"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|