File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3434 "identifier" : " apiVersion" ,
3535 "type" : " text" ,
3636 "title" : " API Version" ,
37+ "defaultValue" : " 2023-03-15-preview" ,
3738 "desc" : " 可选项。此值为在使用 Azure 模型时采用的 Chat completions API 版本,不支持 2023-03-15-preview 之前的版本" ,
3839 "textConfig" : {
3940 "type" : " visible" ,
40- "placeholderText" : " 2023-08-01 -preview"
41+ "placeholderText" : " 2023-03-15 -preview"
4142 }
4243 },
4344 {
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ function translate(query) {
293293
294294 const baseUrl = ensureHttpsAndNoTrailingSlash ( apiUrl || "https://api.openai.com" ) ;
295295 let apiUrlPath = baseUrl . includes ( "gateway.ai.cloudflare.com" ) ? "/chat/completions" : "/v1/chat/completions" ;
296- const apiVersionQuery = apiVersion ? `?api-version=${ apiVersion } ` : "?api-version=2023-08-01 -preview" ;
296+ const apiVersionQuery = apiVersion ? `?api-version=${ apiVersion } ` : "?api-version=2023-03-15 -preview" ;
297297
298298 const isAzureServiceProvider = baseUrl . includes ( "openai.azure.com" ) ;
299299 if ( isAzureServiceProvider ) {
You can’t perform that action at this time.
0 commit comments