[SOLVED] InvalidRequestError: "1500 is greater than the maximum of 2 - 'temperature'"

  error: {
    message: "1500 is greater than the maximum of 2 - 'temperature'",
    type: 'invalid_request_error',
    param: null,
    code: null
  }

I tried to call the API in node js. Followed the method which mentioned in the GitHub - openai/openai-node: Node.js library for the OpenAI API . How to resolve the above error?

Hi,
could you paste the code that’s giving you the error?

As error states, make sure your temperature parameter is below 2.0

Hey AlbertoP,
Thanks for replying back, I had wrongly labelled my arguments, that’s why I got this error.

Hey novaphil,
Thanks for replying back, I had wrongly labelled my arguments, that’s why I got this error. Before that, I too checked whether it was below 2.0 and it was.