增加AI辅助功能 (#1808)

* feature: 增加两个辅助AI,小奇和小淼

* feature:调整AI自动反写部分
This commit is contained in:
PiexlMax(奇淼
2024-07-02 22:53:59 +08:00
committed by GitHub
parent 128e810f77
commit 59cfe96fe3
11 changed files with 288 additions and 52 deletions

View File

@@ -140,3 +140,22 @@ export const pubPlug = (params) => {
params
})
}
export const llmAuto = (params) => {
let modeName = {
"xiaoqi": "小奇",
"xiaomiao": "小淼",
}
return service({
url: '/autoCode/llmAuto',
method: 'post',
params,
timeout: 1000 * 60 * 10,
loadingOption:{
lock: true,
fullscreen:true,
text: `${modeName[params.mode]}正在思考,请稍候...`,
}
})
}