Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Oct 9, 2024
1 parent 0f543e4 commit 51fc580
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/genkit/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ export function defineEchoModel(ai: Genkit) {
request.messages
.map(
(m) =>
(m.role === 'user' ? '' : `${m.role}: `) +
m.content.map((c) => c.text).join()
(m.role === 'user' || m.role === 'model'
? ''
: `${m.role}: `) + m.content.map((c) => c.text).join()
)
.join(),
},
Expand Down

0 comments on commit 51fc580

Please sign in to comment.