enricoros/big-AGI

Issue - Unhandled Runtime Error

Closed this issue · 2 comments

Console Log : Fetch request failed: [Error: Missing required parameters: api, model, messages]

The first test message works, but not the Chat :
image

Error screenshot :
image

Looked into this, but can't find the cause. This is for local development, correct? Localhost:3000? Has this presented itself again?

You should take a look at pages/api/openai/chat and print (console.log) the requestBodyJson variable.
Seems like the POST request to the API handler did not have the correct Body.

The code has been overhauled - I believe this is not an issue anymore.