#message: 'Incorrect API Endpoint, Please check https://discord.pawan.krd for more information.'

1 messages ยท Page 1 of 1 (latest)

brave siren
#

Hi @safe hill

#

im working with Next.js route handlers

safe hill
#

I need to see what endpoint you are setting, you said the problem is that the endpoint is incorrect.

safe hill
#

I can't see.

#

Like, you import openai but

#

Now I see lol.

brave siren
safe hill
#

Remove the chat/completions.

brave siren
#

done

safe hill
#

This is added based on the function used with the OpenAi library.

#

And change the model.

brave siren
#

model to what

safe hill
#

This API doesn't support GPT Models, try pai-001.

brave siren
#

i just need to change the API enpoint right?

safe hill
#

Sure, and the model, otherwise you're getting a Invalid Model error.

brave siren
#

model to what?

safe hill
brave siren
#

sorry i may sound dumb, im just newbie to gpt and stuff

safe hill
brave siren
#

thanks man

safe hill
#

Check If It works now.

brave siren
safe hill
#

Glad to know.

brave siren
safe hill
#

Yrw.