Skip to content

Commit

Permalink
Fixed gemini role issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmessiaen committed Aug 29, 2024
1 parent 5d3730d commit 4206755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion giskard/llm/client/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _format(messages: Sequence[ChatMessage]) -> Sequence[ContentDict]:
last_message["parts"].append(message.content)
continue

content.append(ContentDict(role=message.role, parts=[message.content]))
content.append(ContentDict(role=role, parts=[message.content]))

return content

Expand Down

0 comments on commit 4206755

Please sign in to comment.