From db017d326f45f5d06c5bb86b236e7cdefdb5d3db Mon Sep 17 00:00:00 2001 From: zhiyu Date: Fri, 22 Dec 2023 20:23:46 +0800 Subject: [PATCH] 添加无匹配例句aigc自动拓展文档 --- dramaeditor/无匹配例句aigc自动拓展.md | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 dramaeditor/无匹配例句aigc自动拓展.md diff --git "a/dramaeditor/\346\227\240\345\214\271\351\205\215\344\276\213\345\217\245aigc\350\207\252\345\212\250\346\213\223\345\261\225.md" "b/dramaeditor/\346\227\240\345\214\271\351\205\215\344\276\213\345\217\245aigc\350\207\252\345\212\250\346\213\223\345\261\225.md" new file mode 100644 index 0000000..2ca2550 --- /dev/null +++ "b/dramaeditor/\346\227\240\345\214\271\351\205\215\344\276\213\345\217\245aigc\350\207\252\345\212\250\346\213\223\345\261\225.md" @@ -0,0 +1,125 @@ +# 无匹配例句aigc自动拓展 +## 上传excel文件 +- ### 请求 + - 请求方式 + + Method: `POST` + + Path: `/work/import/examples` + - 请求参数 + + | 参数名 | 参数类型 | 描述 | 必须 | + | ------------- | -------- | ------------------- | ---- | + | multipartFile | txt文件 | 文件 | Y | + | id | integer | 作品id | Y | + + - 请求示例 + + ``` + curl -X post 'http://tx-gz18.heyqiwu.cn:48089/work/import/examples?id=787' --form 'file=@"{{your_file_path}}"' + ``` + +- ### 响应 + + **响应参数示例** + + ``` + {"code":1,"msg":"成功","data":null} + ``` + +## 获取拓展进度 +- ### 请求 + - **请求方式** + + Request Method: `GET` + + Path: `/work/import/examples/percent` + - **请求参数** + + | 参数名 | 参数类型 | 描述 | 必须 | + |-----| -------- | ------ | ---- | + | id | Long | 作品id | Y | + - **请求示例** + + ``` + http://tx-gz18.heyqiwu.cn:48089/work/import/examples/percent?id=787 + ``` + +- ### 响应参数 + + **响应参数示例** + - success: + ``` + { + "code": 1, + "data": { + "progress": 100, + "status": 1 + }, + "msg": "成功" + } + ``` + + - failure: + ``` + { + "code": 12003, + "msg": "生成失败,请确保导入文件没被修改" + } + ``` + +## 取消拓展 +- ### 请求 + - **请求方式** + + Method: `POST` + + Path: `/work/import/examples/cancel` + + Header: `Content-Type: application/json` + - **请求参数** + + | 参数名 | 参数类型 | 描述 | 必须 | + | ------------- | -------- | ------------------- | ---- | + | id | integer | 作品id | Y | + - **请求示例** + + ``` + curl -X 'http://tx-gz18.heyqiwu.cn:48089/work/import/examples/cancel' \ + -H 'Content-Type: application/json' -d '{"id": 787}' + ``` + +- ### 响应 + + **响应参数示例** + + ``` + {"code":1,"msg":"成功","data":null} + ``` + +## 更新system prompt +- ### 请求 + - 请求方式 + + Method: `PUT` + + Path: `/api/juben/work/prompt/system` + + Header: `Content-Type: text/plain` + + - 请求示例 + + ``` + curl -X PUT 'https://tx-gz18.heyqiwu.cn/api/juben/work/prompt/system?auth=qw_sys_prompt' \ + -H 'Content-Type: text/plain' -d '{{your_prompt}}' + ``` + +- ### 响应 + + 响应参数示例 + + ``` + OK + ``` + + -- libgit2 0.27.1