Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 9, 2024
1 parent 13641e1 commit 2a37103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/engine_mistralai.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test('MistralAI image', async () => {
test('MistralAI addImageToPayload', async () => {
const mistralai = new MistralAI(store.config)
const message = new Message('user', 'text')
message.attachFile({ type: 'image', url: '', format:'png', contents: 'image', downloaded: true })
message.attachFile({ url: '', format:'png', contents: 'image', downloaded: true })
const payload: LLmCompletionPayload = { role: 'user', content: message }
mistralai.addImageToPayload(message, payload)
expect(payload.images).toStrictEqual([ 'image' ])
Expand Down

0 comments on commit 2a37103

Please sign in to comment.