-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Bug]: vertex ai service account json -unable to resolve 'environment_id' field #6141
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
Comments
this error is coming from the google sdk not litellm
Try doing using the env var for litellm, and see if that works instead @vaghelarahul94 |
Hi @krrishdholakia Thanks for your response! I appreciate it. I updated the code to use the
I am now seeing that litellm SDK is asking for this role serviceUsageConsumer ? Whereas vertex ai sdk didn't ask for it. Why when using via litellm sdk this is happening?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Facing the same issue |
Also have this issue, GCP and the SA is correctly configured. |
Unable to repro, when using vertex ai service account uploaded via litellm ui (this does the same thing of converting to a json str) |
this is my service account structure |
How can i create a similar service account to yours? @sammcj @vaghelarahul94 |
Sure thing, here's my json:
The SA has access to the usual list of VertexAI services. litellm config:
|
@sammcj
|
What happened?
When using litellm SDK version 1.48.7 like this:
We are seeing error with stack trace:
Whereas when I use vertex ai SDK itself like this with my same service account credentials file like this:
Then it works fine.
My service account file looks like this:
Relevant log output
No response
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: