feat: 新增临时AI接口

This commit is contained in:
zhiyu1998 2024-08-31 18:39:39 +08:00
parent aba9be4908
commit ffafc6aa26

View File

@ -1762,7 +1762,7 @@ export class tools extends plugin {
const llmCrawler = await fetch(PearAPI_CRAWLER.replace("{}", summaryLink)); const llmCrawler = await fetch(PearAPI_CRAWLER.replace("{}", summaryLink));
const content = (await llmCrawler.json())?.data; const content = (await llmCrawler.json())?.data;
const titleMatch = content.match(/Title:\s*(.*?)\n/)?.[1]; const titleMatch = content.match(/Title:\s*(.*?)\n/)?.[1];
e.reply(`${ this.identifyPrefix } 识别:${ name } - ${titleMatch},正在为您总结,请稍等...`, true, { recallMsg: MESSAGE_RECALL_TIME }); e.reply(`${ this.identifyPrefix } 识别:${ name } - ${titleMatch},正在为您总结,请稍等...`, true);
const deepseekFreeSummary = await fetch(PearAPI_DEEPSEEK, { const deepseekFreeSummary = await fetch(PearAPI_DEEPSEEK, {
method: "POST", method: "POST",
headers: { headers: {