matt HOFFNER commited on
Commit
2fbdf6a
·
1 Parent(s): 4928528
src/app/search/web/page.jsx CHANGED
@@ -11,7 +11,6 @@ export default function WebSearchPage() {
11
  const [searchTerm, setSearchTerm] = useState()
12
 
13
  useEffect(() => {
14
- console.log(searchParams);
15
  setSearchTerm(searchParams.get('searchTerm'))
16
  }, [searchParams])
17
 
 
11
  const [searchTerm, setSearchTerm] = useState()
12
 
13
  useEffect(() => {
 
14
  setSearchTerm(searchParams.get('searchTerm'))
15
  }, [searchParams])
16
 
src/pages/api/llm.js CHANGED
@@ -3,7 +3,6 @@ import { LLMError, LLMStream } from './stream';
3
 
4
  const handler = async (req, res) => {
5
  try {
6
- console.log(req.body.question);
7
 
8
  const googleCustomSearch = new GoogleCustomSearch({
9
  apiKey: process.env.API_KEY,
@@ -20,7 +19,6 @@ const handler = async (req, res) => {
20
  const functions = {
21
  googleCustomSearch
22
  };
23
- console.log(messages);
24
 
25
  const promptToSend = "You are a helpful assistant, a search term is provided and you are given search results to help provide a useful response.";
26
  const stream = await LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);
 
3
 
4
  const handler = async (req, res) => {
5
  try {
 
6
 
7
  const googleCustomSearch = new GoogleCustomSearch({
8
  apiKey: process.env.API_KEY,
 
19
  const functions = {
20
  googleCustomSearch
21
  };
 
22
 
23
  const promptToSend = "You are a helpful assistant, a search term is provided and you are given search results to help provide a useful response.";
24
  const stream = await LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);