openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Azure openai api_version optional or latest argument

Open thunder-007 opened this issue 11 months ago • 2 comments
trafficstars

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • [X] This is a feature request for the Python library

Describe the feature or improvement you're requesting

from openai import AzureOpenAI azure_endpoint,api_key,api_version api_version is beign mandatory make it optional and if some argument like latest is passed it should show automatically pick the latest version

Additional context

No response

thunder-007 avatar Nov 30 '24 05:11 thunder-007

cc @kristapratico

RobertCraigie avatar Jan 06 '25 18:01 RobertCraigie

Hi,

I've set up a PR to resolve this issue (#1913) by making the api_version argument optional and defaulting it to "2024-12-01-preview", the latest inference version.

Please feel free to review the PR and comment if anything needs to be updated or if there are further improvements you'd like to see. Your feedback is much appreciated!

PR: #2029

Programmer-RD-AI avatar Jan 18 '25 04:01 Programmer-RD-AI