From 0f84dd29105aa5be9db70045fd07d1b56cc89f3f Mon Sep 17 00:00:00 2001 From: Nathan Sarrazin Date: Tue, 30 Jul 2024 22:13:47 +0000 Subject: [PATCH] fix(prompt): file list --- src/lib/server/textGeneration/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/server/textGeneration/tools.ts b/src/lib/server/textGeneration/tools.ts index a1b981b42ea..975cb028268 100644 --- a/src/lib/server/textGeneration/tools.ts +++ b/src/lib/server/textGeneration/tools.ts @@ -133,9 +133,9 @@ export async function* runTools( id: crypto.randomUUID(), from: "system", content: - "Here is the list of available files that can be used for tools. Only use the filenames that are in this list, do not try to guess the filename. \n - " + + "Here is the list of available filenames that can be used as inputs. Only use the filenames that are in this list. \n - " + files.join("\n - ") + - "\n", + "\n\n\n", } satisfies Message; // put fileMsg before last if files.length > 0