We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d685d81 commit 66c4d85Copy full SHA for 66c4d85
vertexai/rag/rag_data.py
@@ -428,7 +428,9 @@ def upload_file(
428
"metadata": (None, str(js_rag_file)),
429
"file": open(path, "rb"),
430
}
431
- credentials, _ = auth.default()
+ credentials = initializer.global_config.credentials
432
+ if not credentials:
433
+ credentials, _ = auth.default()
434
authorized_session = google_auth_requests.AuthorizedSession(credentials=credentials)
435
try:
436
response = authorized_session.post(
0 commit comments