Cannot set 'temperature' parameter in Assistant API call

Hi,
I am using the Python SDK (version openai==1.21.2), with gpt-35-turbo, 2024-02-15-preview (I also tried 2024-03-01-preview). When trying to create a streaming run as such:

        async with self._client.beta.threads.runs.stream(
            thread_id=thread_id,
            assistant_id=assistant_id,
            temperature=0.0,
            event_handler=event_handler,
        ) as stream:
            await stream.until_done()

I always get the following error message:

openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘1 validation error for Request\nbody → temperature\n extra fields not permitted (type=value_error.extra)’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}

Could someone please tell me what the problem might be?
Cheers,
Dietrich

Never mind… just after I posted this I found out that Azure does not yet support streaming for assistants.
When I switch to the OpenAI client then it works just fine.

I recommend posting the exact API you face the problem on next time.

Also, Azure comes with its own support for solving problems like these.