Skip to content

Commit 4cd9047

Browse files
committed
Update tazureChat.m
1 parent be06d88 commit 4cd9047

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/tazureChat.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function canUseAPIVersions(testCase, APIVersions)
157157
% azureChat.generate
158158

159159
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.");
160-
chat = azureChat("APIVersion", APIVersions);
160+
chat = azureChat("APIVersion", string(APIVersions));
161161

162162
response = testCase.verifyWarningFree(@() generate(chat,"How similar is the DNA of a cat and a tiger?"));
163163
testCase.verifyClass(response,'string');
@@ -462,9 +462,5 @@ function canUseAPIVersions(testCase, APIVersions)
462462
end
463463

464464
function apiVersions = iGetAPIVersions()
465-
apiVersions = struct("Version_2024_05_01_preview", "2024-05-01-preview", ...
466-
"Version_2024_04_01_preview", "2024-04-01-preview", ...
467-
"Version_2024_03_01_preview", "2024-03-01-preview", ...
468-
"Version_2024_02_01", "2024-02-01", ...
469-
"Version_2023_05_15", "2023-05-15");
465+
apiVersions = cellstr(llms.azure.apiVersions);
470466
end

0 commit comments

Comments
 (0)