include user input in rendered prompt file
This commit is contained in:
parent
15b16a185d
commit
7d6e38f27b
1 changed files with 7 additions and 4 deletions
|
|
@ -75,10 +75,13 @@ export async function renderPromptFileV2(
|
|||
});
|
||||
|
||||
const contextItems = (await Promise.all(contextItemsPromises)).flat();
|
||||
const renderedPrompt =
|
||||
contextItems.map((item) => item.content).join("\n\n") +
|
||||
"\n\n" +
|
||||
renderedBody;
|
||||
const renderedPrompt = [
|
||||
...contextItems.map((item) => item.content),
|
||||
renderedBody,
|
||||
extras.fullInput,
|
||||
]
|
||||
.join("\n\n")
|
||||
.trim();
|
||||
|
||||
return [contextItems, renderedPrompt];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue