matthoffner commited on
Commit
fce0d00
·
1 Parent(s): 149f602

Update src/app/search/web/page.jsx

Browse files
Files changed (1) hide show
  1. src/app/search/web/page.jsx +12 -1
src/app/search/web/page.jsx CHANGED
@@ -28,7 +28,18 @@ export default function WebSearchPage({ searchParams }) {
28
  headers: {
29
  'Content-Type': 'application/json',
30
  },
31
- body: JSON.stringify({ aiPrompt }),
 
 
 
 
 
 
 
 
 
 
 
32
  });
33
 
34
  // Listen for AI responses and append to state
 
28
  headers: {
29
  'Content-Type': 'application/json',
30
  },
31
+ body: JSON.stringify({
32
+ 'model': 'gpt-3.5-turbo-16k',
33
+ 'messages': [{
34
+ 'role': 'system',
35
+ 'content': 'You are a helpful assistant.'
36
+ }, {
37
+ 'role': 'user',
38
+ 'content': searchParams.searchTerm
39
+ }],
40
+ 'prompt': aiPrompt,
41
+ 'temperature': 0.5
42
+ })
43
  });
44
 
45
  // Listen for AI responses and append to state