You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/tazureChat.m
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ function seedFixesResult(testCase)
48
48
testCase.verifyEqual(response1,response2);
49
49
end
50
50
51
-
functioncreateOpenAIChatWithStreamFunc(testCase)
51
+
functioncreateAzureChatWithStreamFunc(testCase)
52
52
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.");
53
53
functionseen= sf(str)
54
54
persistentdata;
@@ -69,6 +69,27 @@ function createOpenAIChatWithStreamFunc(testCase)
69
69
testCase.verifyGreaterThan(numel(sf("")), 1);
70
70
end
71
71
72
+
function generateWithTools(testCase)
73
+
importmatlab.unittest.constraints.HasField
74
+
75
+
f = openAIFunction("getCurrentWeather", "Get the current weather in a given location");
76
+
f = addParameter(f, "location", type="string", description="The city and country, optionally state. E.g., San Francisco, CA, USA");
77
+
f = addParameter(f, "unit", type="string", enum=["Kelvin","Celsius"], RequiredParameter=false);
0 commit comments