googleapis / langchain-google-cloud-sql-pg-python

Apache License 2.0
29 stars 11 forks source link

refactor: return early if credentials have service account field #122

Closed jackwotherspoon closed 6 months ago

jackwotherspoon commented 6 months ago

We should be returning early and skipping the overhead of the API call if we already know the IAM principal based on the credentials attribute. This is what we do already in the Cloud SQL MySQL package.

Port of https://github.com/googleapis/langchain-google-alloydb-pg-python/pull/117