We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7f194c commit e43cb20Copy full SHA for e43cb20
tests/tollamaChat.m
@@ -39,6 +39,13 @@ function doGenerate(testCase,StringInputs)
39
testCase.verifyGreaterThan(strlength(response),0);
40
end
41
42
+ function doGenerateUsingSystemPrompt(testCase)
43
+ chat = ollamaChat("mistral","You are a helpful assistant");
44
+ response = testCase.verifyWarningFree(@() generate(chat,"Hi"));
45
+ testCase.verifyClass(response,'string');
46
+ testCase.verifyGreaterThan(strlength(response),0);
47
+ end
48
+
49
function extremeTopK(testCase)
50
% setting top-k to k=1 leaves no random choice,
51
% so we expect to get a fixed response.
0 commit comments