Skip to content

Commit f6a9106

Browse files
committed
Add Seed test to tollamaChat.m
Ollama fixed reacting to Seed in 0.1.43, add a test point.
1 parent 56e6aaf commit f6a9106

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/tollamaChat.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ function stopSequences(testCase)
6969
testCase.verifyEqual(response2, extractBefore(response1,"1"));
7070
end
7171

72+
function seedFixesResult(testCase)
73+
chat = ollamaChat("mistral");
74+
response1 = generate(chat,"hi",Seed=1234);
75+
response2 = generate(chat,"hi",Seed=1234);
76+
testCase.verifyEqual(response1,response2);
77+
end
78+
79+
7280
function streamFunc(testCase)
7381
function seen = sf(str)
7482
persistent data;

0 commit comments

Comments
 (0)