Skip to content

Commit dfc2142

Browse files
jwt625nsarrazin
andauthored
fix: remove quotes from search query to prevent exact match search (huggingface#1834)
fix: remove quotes from search query to prevent exact match search when running locally using serper Co-authored-by: Nathan Sarrazin <[email protected]>
1 parent 1ff34f6 commit dfc2142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/server/websearch/search/generateQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ export async function generateQuery(messages: Message[]) {
6666
})
6767
);
6868

69-
return webQuery.trim();
69+
return webQuery.trim().replace(/^"|"$/g, "");
7070
}

0 commit comments

Comments
 (0)