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 2c76f76 commit dc51a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const post: APIRoute = async(context) => {

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

const initOptions = generatePayload(apiKey, messages)
const initOptions = generatePayload(messages)

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

0 comments on commit dc51a97

Please sign in to comment.