I have a function uses:
```python
Hi @Mashishi,
Welcome to Google Cloud Community!
For Application Default Credentials error, you may check out this documentation that can help you fix this. In addition, make sure that your default quota project for Cloud Functions is set to the correct project. As mentioned in the docs, when you provide user credentials to authenticate to a client-based API, you must specify the project to use for billing and quota.
You can try setting the quota project when getting default credentials and passing these to the Vertex AI SDK. See sample code below:
import vertexai
import google.auth
from vertexai.language_models import TextEmbeddingModel
credentials, _ = google.auth.default(quota_project_id='YOUR_PROJECT_ID')
vertexai.init(project='YOUR_PROJECT_ID', creds=credentials)
model = TextEmbeddingModel.from_pretrained(MODEL_ID)
Hope this helps.