RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix: Correctly format message parts in GoogleChat (#8596)
Tuan Le1c77b4ed9b47
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex 5170d3d28f..c2120cfca4 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -1596,7 +1596,9 @@ class GoogleChat(Base):if "role" in item and item["role"] == "assistant":item["role"] = "model"if "content" in item:- item["parts"] = item.pop("content")+ item["parts"] = [{+ "text": item.pop("content"),+ }]response = self.client.generate_content(hist, generation_config=gen_conf)ans = response.text