Spaces:
Build error
Build error
Remove tabs in websearch prompt (#754)
Browse files- src/lib/buildPrompt.ts +5 -5
src/lib/buildPrompt.ts
CHANGED
@@ -44,11 +44,11 @@ export async function buildPrompt({
|
|
44 |
modifiedMessages[lastUsrMsgIndex] = {
|
45 |
from: "user",
|
46 |
content: `I searched the web using the query: ${webSearch.searchQuery}. Today is ${currentDate} and here are the results:
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
};
|
53 |
}
|
54 |
// section to handle potential files input
|
|
|
44 |
modifiedMessages[lastUsrMsgIndex] = {
|
45 |
from: "user",
|
46 |
content: `I searched the web using the query: ${webSearch.searchQuery}. Today is ${currentDate} and here are the results:
|
47 |
+
=====================
|
48 |
+
${webSearch.context}
|
49 |
+
=====================
|
50 |
+
${previousQuestions}
|
51 |
+
Answer the question: ${messages[lastUsrMsgIndex].content}`,
|
52 |
};
|
53 |
}
|
54 |
// section to handle potential files input
|