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
)
2 Likes
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
1 Like
You can also follow the discussion on Github issue:
opened 03:39AM - 24 Apr 24 UTC
closed 01:08AM - 13 May 24 UTC
bug
### Confirm this is an issue with the Python library and not an underlying OpenA… I API
- [X] This is an issue with the Python library
### Describe the bug
Even if I change temperature for assistant, the response shows temperature is set to 1.0
### To Reproduce
Create an assistant and pass a temperature value.
### Code snippets
```Python
assistant = client.beta.assistants.create(
name=f"temperature_test_assistant",
instructions="",
model=model_name,
tools=[{"type": "code_interpreter"}],
temperature=0.2,
)
```
### OS
Linux
### Python version
python 3.11
### Library version
openai==1.23.3
1 Like
Still not fixed?
@ayansengupta17
I have already reported the bug, OpenAI acknowledged it and will roll out a fix soon
Alas, you registered another bug.
1 Like