Skip to content

Commit 016b7c6

Browse files
committed
fix(preprocessMessages): clarify web search context in final message content
1 parent 43ed372 commit 016b7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/server/endpoints/preprocessMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function addWebSearchContext(messages: Message[], webSearch: Message["webSearch"
3434

3535
const finalMessage = {
3636
...messages[messages.length - 1],
37-
content: `I searched the web using the query: ${webSearch.searchQuery}.
37+
content: `I searched the web using the query: ${webSearch.searchQuery}. The query was generated by a tool and might not be relevant to the question.
3838
Today is ${currentDate} and here are the results.
3939
When answering the question, you must reference the sources you used inline by wrapping the index in brackets like this: [1]. If multiple sources are used, you must reference each one of them without commas like this: [1][2][3].
4040
=====================

0 commit comments

Comments
 (0)