Is temperature ranging from 0 to 1 or 0 to 2?

Hi,

All third-party documents says the temperature is ranging from 0 to 1.

However, I check openai official document at OpenAI API, it says “What sampling temperature to use, between 0 and 2.”. Not 0 to 1. Why?

Also can I use 0.75, 0.38, etc. as the temperature? It seems in all samples, the temperatures only has one digits after the decimal point, such as 0.7, 0.3, etc.

4 Likes

Welcome to the community…

I believe the API is 0 to 2, but the Playground still as a 0 to 1 interface which can make it a bit confusing. Best bet is to test every .05 or even .1 to see what gets you the best results for your use-case.

I’ve successfullly used 0.75, etc in the past.

3 Likes

Hi, @PaulBellow

OK. Thank you very much.

1 Like