Skip to content

Commit b62a325

Browse files
authored
Azure OpenAI API version 2023-05-15 (#316)
* chore(config.go): update Azure API version to 2023-05-15 to use the latest version available * chore(api_internal_test.go): update Azure API version to 2023-05-15 to match the latest version
1 parent 21eef5b commit b62a325

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func TestAzureFullURL(t *testing.T) {
122122
"chatgpt-demo",
123123
"https://httpbin.org/" +
124124
"openai/deployments/chatgpt-demo" +
125-
"/chat/completions?api-version=2023-03-15-preview",
125+
"/chat/completions?api-version=2023-05-15",
126126
},
127127
{
128128
"AzureBaseURLWithoutSlashOK",
@@ -131,7 +131,7 @@ func TestAzureFullURL(t *testing.T) {
131131
"chatgpt-demo",
132132
"https://httpbin.org/" +
133133
"openai/deployments/chatgpt-demo" +
134-
"/chat/completions?api-version=2023-03-15-preview",
134+
"/chat/completions?api-version=2023-05-15",
135135
},
136136
}
137137

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func DefaultAzureConfig(apiKey, baseURL string) ClientConfig {
5656
BaseURL: baseURL,
5757
OrgID: "",
5858
APIType: APITypeAzure,
59-
APIVersion: "2023-03-15-preview",
59+
APIVersion: "2023-05-15",
6060
AzureModelMapperFunc: func(model string) string {
6161
return regexp.MustCompile(`[.:]`).ReplaceAllString(model, "")
6262
},

0 commit comments

Comments
 (0)