Skip to content

Commit

Permalink
Update generate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
babaohuang committed Dec 14, 2023
1 parent b3f70a5 commit 2c76f76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const post: APIRoute = async(context) => {
},
}), { status: 401 })
}

console.log('Received messages:', messages);

const initOptions = generatePayload(apiKey, messages)

const response = await fetch(`${baseUrl}?key=${apiKey}`, initOptions).catch((err: Error) => {
Expand Down

0 comments on commit 2c76f76

Please sign in to comment.