"Unrecognized request argument supplied: prompt"

Im playing with “gpt-3.5-turbo” but the console give me this error;

  1. error: {…}}

  2. error: {message: ‘Unrecognized request argument supplied: prompt’, type: ‘invalid_request_error’, param: null, code: null}

  3. [[Prototype]]: Object

Welcome to the forum.

Can you share the code you’re using to connect?

The API of chat endpoints does not use a “prompt” parameter, it uses “messages”, a list of dictionary items tagged by role names and individual chat turns.

Inputs that do not conform to this specification are rejected.

“OpenAI chat completion api reference” would be good Google search terms for you.

1 Like