How to return the default value for the temperature

How can we return the default value for the for chat.completions.create Through API for the GPT4 model? It si usually set as an input parameter for this method but wat if we do not specify it. How can we return the value in code?

You can just read the API specification.

“temperature - number or null - Optional - Defaults to 1”

1 Like