feat(drivers): add Vertex AI driver with OAuth authentication#22
Open
zamal-db wants to merge 1 commit intoRightNow-AI:mainfrom
Open
feat(drivers): add Vertex AI driver with OAuth authentication#22zamal-db wants to merge 1 commit intoRightNow-AI:mainfrom
zamal-db wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
Author
|
fwiw, tested end-to-end with a GCP service account + Vertex AI (gemini-2.0-flash). All 8 unit tests pass, clippy is clean, and the streaming path works. Happy to squash/rebase if anything needs adjustment. |
4ef0f75 to
2bf9f6c
Compare
Adds a new vertex-ai provider that authenticates using GCP service account credentials via OAuth 2.0 bearer tokens. This enables enterprise deployments with existing GCP subscriptions instead of requiring separate API keys. Features: - VertexAIDriver with full streaming support - Token caching (50 min) with auto-refresh via gcloud CLI - Auto-detection of project_id from service account JSON - Security: tokens stored with Zeroizing<String> - Provider aliases: vertex-ai, vertex, google-vertex - 8 unit tests Usage: export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.json # Set provider=vertex-ai, model=gemini-2.0-flash in config.toml Closes RightNow-AI#11
2bf9f6c to
34b0e7a
Compare
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.
Adds a new vertex-ai provider that authenticates using GCP service account credentials via OAuth 2.0 bearer tokens. This enables enterprise deployments with existing GCP subscriptions instead of requiring separate API keys.
Features:
Usage:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.json # Set provider=vertex-ai, model=gemini-2.0-flash in config.toml
Closes #11