重构skill检索
This commit is contained in:
parent
345ba6e020
commit
30e7e07a85
@ -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}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user