Skip to content

Commit 016c79a

Browse files
Update gemini_llm.py
1 parent 440b38d commit 016c79a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/src/gemini_llm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ def get_graph_from_Gemini(model_version,
297297
location = "us-central1"
298298
#project_id = "llm-experiments-387609"
299299
credentials, project_id = google.auth.default()
300+
if hasattr(credentials, "service_account_email"):
301+
logging.info(credentials.service_account_email)
302+
else:
303+
logging.info("WARNING: no service account credential. User account credential?")
300304
vertexai.init(project=project_id, location=location)
301305

302306
# combined_chunk_document_list=[]

0 commit comments

Comments
 (0)