[BUG] Assistants v2: When setting the temperature to 0 through the API, the assistant is created with a temperature of 1

If I set the temperature to 0, it defaults to 1. However, any other number works; for example, setting the temperature to 0.0001 will create an assistant with a temperature of 0.0001

client = openai.OpenAI(api_key=OPENAI_API_KEY)
client.beta.assistants.create(
  name="my assistant",
  instructions="my instructions",
  tools=[{"type": "code_interpreter"}],
  model="gpt-3.5-turbo-1106",
  temperature=0
)

image

1 Like

I have already reported the bug, OpenAI acknowledged it and will roll out a fix soon. Check
[Bug or Feature] Temperature setting in Assistant v2 confusing - #5

You can also follow the discussion on Github issue: