Open seperman opened 1 year ago
I changed my default project to gcloud config set project ANOTHER_PROJECT
and it still hitting DEFAULT_PROJECT
. Where is it pulling DEFAULT_PROJECT
from?
It's the default quota project ID set by Application Default Credentials(ADC)[1]. Recommended usage for setting the quota project ID is captured in https://github.com/googleapis/python-aiplatform/issues/2557#issuecomment-1709284744.
Thanks for responding @sasha-gitg So is this a bug or a feature? From the interface perspective, it presents itself as a bug.
I am facing this issue too. We want to use a sandbox project to constrain all of the Vertex experimentations to, but calling from a different project service account (Databricks).
The vertexai.init(project=not_default_project_id)
works for other models (e.g Gemini), but as mentioned above, the call to TextEmbeddingModel.from_pretrained(model_name)
is not respecting the project.
Hi is this issue resolved?
Environment details
google-cloud-aiplatform
version: 1.32.0Steps to reproduce
vertexai.init(project=not_default_project_id)
language_models.CodeGenerationModel.from_pretrained(...)
is called.Below, you can see it is raising exception because the default project does not have Vertex AI enabled.
Stack trace