Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/modelDependent/llama3.2/promptCompletion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
});

const promptCompletion = await chatSession.completePrompt("Hi there!", {
maxTokens: 50
maxTokens: 11
});
expect(promptCompletion).toMatchInlineSnapshot("\" I'm looking for a new phone case. I need a case that can protect your phone from scratches and drops.\"");
expect(promptCompletion).toMatchInlineSnapshot(`" I'm looking for a new phone case. I need"`);

Check warning on line 46 in test/modelDependent/llama3.2/promptCompletion.test.ts

View workflow job for this annotation

GitHub Actions / Test

Strings must use doublequote
expect(LlamaText.fromTokens(model.tokenizer, chatSession.sequence.contextTokens)).toMatchInlineSnapshot(`
LlamaText([
new SpecialToken("BOS"),
Expand All @@ -64,7 +64,7 @@
new SpecialTokensText("<|end_header_id|>"),
"

Hi there! I'm looking for a new phone case. I need a case that can protect your phone from scratches and drops.",
Hi there! I'm looking for a new phone case. I",
])
`);

Expand Down
Loading