From 30e7e07a850b943e79e9a7243f7ae4d913ee3ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Thu, 26 Mar 2026 00:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84skill=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/assetsGenerate/polishAssetsPrompt.ts | 2 +- src/routes/production/workbench/getChatLines.ts | 2 +- src/utils/cleanNovel.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/assetsGenerate/polishAssetsPrompt.ts b/src/routes/assetsGenerate/polishAssetsPrompt.ts index d2ea095..887341e 100644 --- a/src/routes/assetsGenerate/polishAssetsPrompt.ts +++ b/src/routes/assetsGenerate/polishAssetsPrompt.ts @@ -98,7 +98,7 @@ export default router.post( const novelData = (await u.db("o_novel").whereIn("chapterIndex", [1]).select("*")) as NovelChapter[]; const novelText = mergeNovelText(novelData); - const skill = await useSkill("universal-agent"); + const skill = await useSkill("universal_agent.md"); const systemPrompt = `${skill.prompt} diff --git a/src/routes/production/workbench/getChatLines.ts b/src/routes/production/workbench/getChatLines.ts index 29bc9a9..cd83467 100644 --- a/src/routes/production/workbench/getChatLines.ts +++ b/src/routes/production/workbench/getChatLines.ts @@ -30,7 +30,7 @@ export default router.post( ); async function getLines(prompt: string) { - const skill = await useSkill("eventExtract-agent"); + const skill = await useSkill("universal_agent.md"); const resText = await u.Ai.Text("universalAgent").invoke({ system: skill.prompt, diff --git a/src/utils/cleanNovel.ts b/src/utils/cleanNovel.ts index 1d37939..9e3d4f2 100644 --- a/src/utils/cleanNovel.ts +++ b/src/utils/cleanNovel.ts @@ -29,7 +29,7 @@ class CleanNovel { const novel = allChapters[gi]; let resData; try { - const skill = await useSkill("universal-agent"); + const skill = await useSkill("universal_agent.md"); resData = await intansce.invoke({ system: skill.prompt,