瀏覽代碼

Fix Gemini chat issue. (#4757)

### What problem does this PR solve?

#4753

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.0
Kevin Hu 8 月之前
父節點
當前提交
2aa0cdde8f
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
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", ""))
)

Loading…
取消
儲存