Closed fladhak closed 1 week ago
Thanks for reporting! I'm going to close this as it's related to the Azure API and not the SDK itself.
cc @kristapratico to share any details from the azure side.
@fladhak the Azure API does not support max_completion_tokens
with chat completions yet. I expect it to be supported very soon. You can follow the what's new page for updates.
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
With the o-1 release,
max_tokens
was deprecated in favor ofmax_completion_tokens
, and while that argument works with the OpenAI client, it doesn't seem to be working with the AzureOpenAI client. I see the following error:To Reproduce
Code snippets
No response
OS
linux
Python version
3.11.9
Library version
1.46.0