Skip to content

VertexAI: service account key support without ADC regressions#646

Merged
crmne merged 10 commits intomainfrom
add-vertex-service-account-support
Mar 2, 2026
Merged

VertexAI: service account key support without ADC regressions#646
crmne merged 10 commits intomainfrom
add-vertex-service-account-support

Conversation

@crmne
Copy link
Owner

@crmne crmne commented Mar 2, 2026

Summary

This replaces #532 with the same feature intent (Vertex AI service account support) while keeping ADC as the default path and avoiding regressions.

What changed

  • Keep vertexai_service_account_key optional (do not require it in provider configuration requirements).
  • Preserve ADC flow when no service account key is set.
  • Restore Google::Auth.get_application_default call to pass scopes positionally (compat with current googleauth behavior).
  • Clean up Vertex settings in spec/support/rubyllm_configuration.rb:
    • remove duplicate vertexai_project_id / vertexai_location assignments
    • avoid forcing an invalid default service-account key in test config
  • Update docs wording to clearly state:
    • ADC and service-account key are both supported
    • service-account key is optional
    • ADC is used when service-account key is unset
    • fix typo in configuration reference

Why replacement

PR #532 is from a fork with maintainer edits disabled, so we cannot push fixes directly to that branch.

Related

multiplegeorges and others added 10 commits December 9, 2025 12:16
…ation logic

- Added `vertexai_service_account_key` to the configuration requirements for Vertex AI.
- Updated the authorization method to use service account credentials if the key is provided, otherwise defaults to application default credentials.
We initially named this configuration `_hash` but was later updated to `_key`
…ion-key

Change service account hash to key for authorizer
@crmne crmne merged commit b0041c6 into main Mar 2, 2026
22 checks passed
@crmne crmne deleted the add-vertex-service-account-support branch March 2, 2026 22:40
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.35%. Comparing base (97474a9) to head (a19ac22).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lib/ruby_llm/providers/vertexai.rb 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #646      +/-   ##
==========================================
+ Coverage   81.32%   81.35%   +0.02%     
==========================================
  Files         116      116              
  Lines        5387     5390       +3     
  Branches     1411     1413       +2     
==========================================
+ Hits         4381     4385       +4     
+ Misses       1006     1005       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants