Skip to content

Commit 06a201e

Browse files
committed
update wrong prompt placeholder pattern
1 parent 9b788f4 commit 06a201e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

helpers/env-variables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ Disable this prompt to disable the next question suggestions feature.`,
495495
value: `"You're a helpful assistant! Your task is to suggest the next question that user might ask.
496496
Here is the conversation history
497497
---------------------
498-
$conversation
498+
{conversation}
499499
---------------------
500500
Given the conversation history, please give me 3 questions that you might ask next!
501501
Your answer should be wrapped in three sticks which follows the following format:

templates/components/llamaindex/typescript/streaming/suggestion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function generateNextQuestions(conversation: ChatMessage[]) {
1212
.map((message) => `${message.role}: ${message.content}`)
1313
.join("\n");
1414
const message = NEXT_QUESTION_PROMPT.replace(
15-
"$conversation",
15+
"{conversation}",
1616
conversationText,
1717
);
1818

0 commit comments

Comments
 (0)