matt HOFFNER commited on
Commit
86e6f59
·
1 Parent(s): 3a7e216
Files changed (1) hide show
  1. src/pages/api/llm.js +2 -2
src/pages/api/llm.js CHANGED
@@ -3,7 +3,7 @@ import { LLMError, LLMStream } from './stream';
3
 
4
  const handler = async (req, res) => {
5
  try {
6
- const { question } = (await req.body);
7
 
8
  const googleCustomSearch = new GoogleCustomSearch({
9
  apiKey: process.env.API_KEY,
@@ -13,7 +13,7 @@ const handler = async (req, res) => {
13
  const messages = [
14
  {
15
  role: "user",
16
- content: question,
17
  },
18
  ];
19
 
 
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,
 
13
  const messages = [
14
  {
15
  role: "user",
16
+ content: req.body.question || "Test",
17
  },
18
  ];
19