fix: wrong role in req messages

This commit is contained in:
Siddhant Rai
2025-01-21 07:19:02 +05:30
parent d441d5763f
commit 1086bfe1ba
2 changed files with 8 additions and 8 deletions

View File

@@ -17,6 +17,9 @@ class GoogleLLM(BaseLLM):
role = message.get("role")
content = message.get("content")
if role == "assistant":
role = "model"
parts = []
if role and content is not None:
if isinstance(content, str):