From 4cd9047bb67aeb3f52e54b47733d3cc37f45d05c Mon Sep 17 00:00:00 2001 From: Vassilis Papanastasiou Date: Thu, 27 Jun 2024 11:32:01 +0100 Subject: [PATCH] Update tazureChat.m --- tests/tazureChat.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/tazureChat.m b/tests/tazureChat.m index f1c6bc8..e499bdd 100644 --- a/tests/tazureChat.m +++ b/tests/tazureChat.m @@ -157,7 +157,7 @@ function canUseAPIVersions(testCase, APIVersions) % azureChat.generate testCase.assumeTrue(isenv("AZURE_OPENAI_API_KEY"),"end-to-end test requires environment variables AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, and AZURE_OPENAI_DEPLOYMENT."); - chat = azureChat("APIVersion", APIVersions); + chat = azureChat("APIVersion", string(APIVersions)); response = testCase.verifyWarningFree(@() generate(chat,"How similar is the DNA of a cat and a tiger?")); testCase.verifyClass(response,'string'); @@ -462,9 +462,5 @@ function canUseAPIVersions(testCase, APIVersions) end function apiVersions = iGetAPIVersions() -apiVersions = struct("Version_2024_05_01_preview", "2024-05-01-preview", ... - "Version_2024_04_01_preview", "2024-04-01-preview", ... - "Version_2024_03_01_preview", "2024-03-01-preview", ... - "Version_2024_02_01", "2024-02-01", ... - "Version_2023_05_15", "2023-05-15"); +apiVersions = cellstr(llms.azure.apiVersions); end \ No newline at end of file