Skip to content

Commit f965306

Browse files
committed
test: fix test
1 parent 0255adf commit f965306

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ jobs:
415415
- name: Install dependencies on Ubuntu
416416
run: |
417417
sudo apt-get update
418-
sudo apt-get install ninja-build cmake
418+
sudo apt-get install ninja-build cmake
419419
420420
- name: Install modules
421421
run: npm ci

test/modelDependent/llama3/functions.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ describe("llama 3", () => {
189189

190190
const res = await chatSession.prompt("Is an apple more expensive than a banana?", promptOptions);
191191

192-
expect(res).to.be.eq("According to the information I have, an apple is more expensive than a banana.");
192+
expect(res).to.be.satisfy((text: string) => [
193+
"According to the information I have, an apple is more expensive than a banana.",
194+
"Let me check the prices for you. According to the prices I checked, an apple is more expensive than a banana. The apple costs $6, while the banana costs $4."
195+
].includes(text));
193196
});
194197

195198
test("Compare fruit prices with currency", {timeout: 1000 * 60 * 60 * 2}, async () => {

0 commit comments

Comments
 (0)