Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
e35a983
1
Parent(s):
4c905d5
fix
Browse files- src/app/search/web/page.jsx +1 -1
- src/pages/api/llm.js +1 -1
src/app/search/web/page.jsx
CHANGED
@@ -47,7 +47,7 @@ export default function WebSearchPage({ searchParams }) {
|
|
47 |
fetchData();
|
48 |
|
49 |
return () => controller.abort();
|
50 |
-
}, [searchTerm]);
|
51 |
|
52 |
console.log(aiResponse);
|
53 |
|
|
|
47 |
fetchData();
|
48 |
|
49 |
return () => controller.abort();
|
50 |
+
}, [searchParams, searchTerm]);
|
51 |
|
52 |
console.log(aiResponse);
|
53 |
|
src/pages/api/llm.js
CHANGED
@@ -13,7 +13,7 @@ const handler = async (req, res) => {
|
|
13 |
const messages = [
|
14 |
{
|
15 |
role: "user",
|
16 |
-
content: req.body.question
|
17 |
},
|
18 |
];
|
19 |
|
|
|
13 |
const messages = [
|
14 |
{
|
15 |
role: "user",
|
16 |
+
content: req.body.question,
|
17 |
},
|
18 |
];
|
19 |
|