matt HOFFNER commited on
Commit
405caf2
·
1 Parent(s): 9daa0fe
Files changed (1) hide show
  1. src/pages/api/llm.js +2 -2
src/pages/api/llm.js CHANGED
@@ -2,7 +2,7 @@ import { GoogleCustomSearch } from "openai-function-calling-tools";
2
  import { LLMError, LLMStream } from './stream';
3
 
4
  const handler = async (req, res) => {
5
- const { question } = await req.json();
6
  try {
7
  const googleCustomSearch = new GoogleCustomSearch({
8
  apiKey: process.env.API_KEY,
@@ -11,7 +11,7 @@ const handler = async (req, res) => {
11
  const messages = [
12
  {
13
  role: "user",
14
- content: question
15
  },
16
  ];
17
 
 
2
  import { LLMError, LLMStream } from './stream';
3
 
4
  const handler = async (req, res) => {
5
+ console.log(req.body);
6
  try {
7
  const googleCustomSearch = new GoogleCustomSearch({
8
  apiKey: process.env.API_KEY,
 
11
  const messages = [
12
  {
13
  role: "user",
14
+ content: req.body.question
15
  },
16
  ];
17