Open API: maximum temperature range (0 - 1) or (0 - 2)?

Hello,

I came across conflicting information regarding the maximum temperature range (0 - 1) or (0 - 2).

The doc says 2 but the playground seems to say 1.

Any clue?

Regards,

Martin

Hi!
You can always write a few lines of code and set the values as needed.

from openai import OpenAI
client = OpenAI()

response = client.chat.completions.create(
  model="gpt-3.5-turbo",
  messages=[
    {
      "role": "user",
      "content": ""
    }
  ],
  temperature=2,
  max_tokens=256,
  top_p=1,
  frequency_penalty=0,
  presence_penalty=0
)

https://platform.openai.com/docs/guides/text-generation/faq

1 Like