mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
feat: skip empty fields in mcp tool call + improve error handling and response
This commit is contained in:
@@ -151,15 +151,8 @@ class GoogleLLM(BaseLLM):
|
||||
|
||||
if role == "assistant":
|
||||
role = "model"
|
||||
elif role == "system":
|
||||
continue
|
||||
elif role == "tool":
|
||||
continue
|
||||
elif role not in ["user", "model"]:
|
||||
logging.warning(
|
||||
f"GoogleLLM: Converting unsupported role '{role}' to 'user'"
|
||||
)
|
||||
role = "user"
|
||||
role = "model"
|
||||
|
||||
parts = []
|
||||
if role and content is not None:
|
||||
|
||||
Reference in New Issue
Block a user