nsarrazin HF staff commited on
Commit
dc86148
1 Parent(s): bccd811

Remove tabs in websearch prompt (#754)

Browse files
Files changed (1) hide show
  1. 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
- ${webSearch.context}
49
- =====================
50
- ${previousQuestions}
51
- Answer the question: ${messages[lastUsrMsgIndex].content} `,
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