From 84ea88179c9d9be8a817141bbcde1a108ce07608 Mon Sep 17 00:00:00 2001 From: ttyS3 Date: Mon, 3 Apr 2023 20:14:24 +0800 Subject: [PATCH] chore: set default api_version the same as py one "2023-03-15-preview" --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 5057b85f6..4213c0ace 100644 --- a/config.go +++ b/config.go @@ -48,13 +48,13 @@ func DefaultConfig(authToken string) ClientConfig { } } -func DefaultAzure(apiKey, baseURl, engine, apiVersion string) ClientConfig { +func DefaultAzure(apiKey, baseURl, engine string) ClientConfig { return ClientConfig{ authToken: apiKey, BaseURL: baseURl, OrgID: "", APIType: APITypeAzure, - APIVersion: apiVersion, + APIVersion: "2023-03-15-preview", Engine: engine, HTTPClient: &http.Client{},