Skip to content

Commit

Permalink
Trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieFRuan committed Sep 20, 2024
1 parent 19c9991 commit b398412
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tests/conversation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,16 @@ describe("Test getConversationFromChatCompletionRequest with image", () => {
],
`<|assistant|>\n`,
]);
expect(conv1.getPromptArrayLastRound()).toEqual([
[
`<|user|>\n`,
{ url: imageUrl2 } as ImageURL,
`\n`,
{ url: imageUrl3 } as ImageURL,
`\n`,
`${dummyRequestStr}<|end|>\n`,
],
`<|assistant|>\n`,
]);
});

// test("Test compareConversationObject with image message", () => {
// const config_json = JSON.parse(phi3_5VisionChatConfigJSONString);
// const config = { ...config_json } as ChatConfig;
// const conversation = getConversation(config.conv_template);

// });
});

0 comments on commit b398412

Please sign in to comment.