Add credentials auth for Google vertex#1392
Merged
mrubens merged 2 commits intoRooCodeInc:mainfrom Mar 6, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: e3ffd13 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Author
mrubens
approved these changes
Mar 6, 2025
ipattis
pushed a commit
to ipattis/roo-code
that referenced
this pull request
Mar 15, 2025
…ni-2-flash-thinking-model-01-21 Feat/add gemini 2 flash thinking model 01 21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
This pull request introduces credential-based authentication for Vertex AI, enabling users to easily switch between Google Cloud accounts.
Simplified Account Switching:
Users working across multiple Google Cloud projects can now seamlessly switch accounts without relying solely on Application Default Credentials (ADC). This eliminates the need for complex ADC management when using various profiles.
Enhanced Flexibility:
This feature benefits users who may not have the Google Cloud CLI installed or prefer direct credential management.
Implementation
Screenshots
After:
How to Test
Ensure the Vertex AI API is enabled for your Google Cloud project.
Verify that the desired Claude models are accessible.
Create a new service account with the necessary Vertex AI permissions.
Generate a service account key (JSON format recommended). Refer to the Google Workspace documentation for guidance: https://developers.google.com/workspace/guides/create-credentials?hl=en#service-account
In the Vertex AI settings, paste the JSON content of the service account key into the "Google Cloud Credentials" field, or provide the file path to 'Google Cloud Key File Path' field.
Execute a prompt to confirm successful authentication and model interaction.
Get in Touch
For any questions or feedback, please reply to this pull request or reach out to Eong on the Discord channel.
Important
Add credential-based authentication for Google Vertex AI, allowing account switching using JSON credentials or key files, with updates to
vertex.ts,ClineProvider.ts, andapi.ts.vertex.tsusing JSON credentials or key files.ClineProvider.tsto handle new authentication optionsvertexJsonCredentialsandvertexKeyFile.vertexJsonCredentialsandvertexKeyFiletoApiHandlerOptionsinapi.ts.ApiOptions.tsxto include input fields for Google Cloud credentials and key file path.This description was created by
for 01f83b4. It will automatically update as commits are pushed.