Hi there,
i am trying to get gpt via api call to return a specific json object.
in the webinterface this is working. but with an api call its not working.
Currently i am accessing gpt with this code in js:
try {
const openAiStoryObject = await openai.chat.completions.create({
messages: [
{
role: "user",
content: squeezeStoryPrompt,
},
],
model: "gpt-4-1106-preview",
});
can somebody help?