Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
36eef86
1
Parent(s):
9285db9
fix
Browse files
src/app/search/web/page.jsx
CHANGED
@@ -13,10 +13,8 @@ export default function WebSearchPage({ searchParams }) {
|
|
13 |
}, [searchParams])
|
14 |
|
15 |
useEffect(() => {
|
16 |
-
if (!searchParams || !searchParams.searchTerm) return;
|
17 |
-
|
18 |
const url = new URL('/api/llm');
|
19 |
-
url.search = new URLSearchParams({ question: searchTerm, startIndex: 1 });
|
20 |
|
21 |
// No need to make a fetch request. Directly open the EventSource connection.
|
22 |
const es = new EventSource(url);
|
|
|
13 |
}, [searchParams])
|
14 |
|
15 |
useEffect(() => {
|
|
|
|
|
16 |
const url = new URL('/api/llm');
|
17 |
+
url.search = new URLSearchParams({ question: searchTerm || "Fun things to do in Seattle this weekend", startIndex: 1 });
|
18 |
|
19 |
// No need to make a fetch request. Directly open the EventSource connection.
|
20 |
const es = new EventSource(url);
|