mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: wrong role in req messages
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user