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)
This commit is contained in:
Kevin Hu 2025-02-07 12:00:19 +08:00 committed by GitHub
parent 44d798d8f0
commit 2aa0cdde8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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", ""))
)