fix: googles update

This commit is contained in:
Alex
2025-02-24 22:30:09 +00:00
parent 495bbc2aba
commit 84cbc1201c

View File

@@ -22,7 +22,7 @@ class GoogleLLM(BaseLLM):
parts = []
if role and content is not None:
if isinstance(content, str):
parts = [types.Part.from_text(content)]
parts = [types.Part.from_text(text=content)]
elif isinstance(content, list):
for item in content:
if "text" in item: