fix: 添加基于LLM的翻译

This commit is contained in:
ikechan8370 2024-02-23 00:18:04 +08:00
parent e5e85621d9
commit e1d40ba009
6 changed files with 341 additions and 215 deletions

View file

@ -1942,7 +1942,8 @@ export class chatgpt extends plugin {
let response = await client.sendMessage(prompt, {
e,
chatId: conversation?.conversationId,
image: image ? image[0] : undefined
image: image ? image[0] : undefined,
system: Config.xhPrompt
})
return response
} else if (use === 'azure') {

View file

@ -56,7 +56,7 @@ export class Entertainment extends plugin {
fnc: 'wordcloud_new'
},
{
reg: '^#((寄批踢|gpt|GPT)?翻.*|chatgpt翻译帮助)',
reg: '^#((寄批踢|gpt|GPT)?翻[sS]*|chatgpt翻译帮助)',
fnc: 'translate'
},
{