mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-20 07:44:19 +01:00
Replace the retiring Azure OpenAI API version with the GA version (#94)
Reference: - https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#retiring-soon
This commit is contained in:
@@ -33,7 +33,7 @@ func Init() error {
|
||||
openaiModelMapper = viper.GetString(constant.ENV_AZURE_OPENAI_MODEL_MAPPER)
|
||||
if endpoint != "" {
|
||||
if apiVersion == "" {
|
||||
apiVersion = "2023-07-01-preview"
|
||||
apiVersion = "2024-02-01"
|
||||
}
|
||||
InitFromEnvironmentVariables(apiVersion, endpoint, openaiModelMapper)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user