Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix Gemini chat issue. (#4757)

Kevin Hu2aa0cdde8fcc
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py
index 114d7a0fea..e4cf3a6adf 100644
--- a/rag/llm/chat_model.py
+++ b/rag/llm/chat_model.py
@@ -1375,7 +1375,7 @@ class GoogleChat(Base):
from google.oauth2 import service_account
import base64
- key = json.load(key)
+ key = json.loads(key)
access_token = json.loads(
base64.b64decode(key.get("google_service_account_key", ""))
)