Spaces:
Sleeping
Sleeping
Update src/lib/server/websearch/runWebSearch.ts
Browse files
src/lib/server/websearch/runWebSearch.ts
CHANGED
@@ -69,6 +69,7 @@ export async function runWebSearch(
|
|
69 |
try {
|
70 |
webSearch.searchQuery = await generateQuery(messages);
|
71 |
// limit the sources to certain sites
|
|
|
72 |
webSearch.searchQuery = formatSearchQuery(webSearch.domainFilters) + webSearch.searchQuery;
|
73 |
appendUpdate("Searching Google", [webSearch.searchQuery]);
|
74 |
const results = await searchWeb(webSearch.searchQuery);
|
|
|
69 |
try {
|
70 |
webSearch.searchQuery = await generateQuery(messages);
|
71 |
// limit the sources to certain sites
|
72 |
+
webSearch.searchQuery = webSearch.searchQuery.replace(/^"|"$/g, '');
|
73 |
webSearch.searchQuery = formatSearchQuery(webSearch.domainFilters) + webSearch.searchQuery;
|
74 |
appendUpdate("Searching Google", [webSearch.searchQuery]);
|
75 |
const results = await searchWeb(webSearch.searchQuery);
|