Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying credentials to vertexai embeddings model #1387

Open
johanhaleby opened this issue Sep 20, 2024 · 0 comments
Open

Allow specifying credentials to vertexai embeddings model #1387

johanhaleby opened this issue Sep 20, 2024 · 0 comments

Comments

@johanhaleby
Copy link

In 1.0.0-M2, the documentation for vertexai says to do this as part of the prerequisites:

gcloud config set project <PROJECT_ID> &&
gcloud auth application-default login <ACCOUNT>

However, it would be really useful to be able to specify credentials by other means, for example using a GCP service account. The vertex AI google cloud SDK supports this by passing an instance of com.google.auth.Credentials to com.google.api.gax.rpc.ClientContext used in PredictionServiceSettings. Builder. But in org.springframework.ai.vertexai.embedding.VertexAiEmbeddigConnectionDetails the predictionServiceSettings is hardcoded to:

PredictionServiceSettings.newBuilder().setEndpoint(endpoint).build()

making it very difficult to use a service account with spring ai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant