improvement(vertex): added vertex to all LLM-based blocks, fixed refresh#2555
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR adds Vertex AI OAuth support across all LLM-based blocks (Agent, Evaluator, Router, Translate) and fixes a critical bug in OAuth token refresh. Key Changes:
Implementation Details:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block as LLM Block<br/>(Evaluator/Router/Translate/Agent)
participant Handler as Block Handler
participant ProvidersAPI as /api/providers
participant OAuth as OAuth Utils
participant DB as Database
participant Vertex as Vertex AI API
User->>Block: Select Vertex model
Block->>User: Show OAuth input plus required fields
User->>Block: Authenticate and provide project location
Block->>Handler: Execute with vertexCredential ID
Handler->>DB: Query credential by ID
DB-->>Handler: Return credential record
Handler->>OAuth: Call refreshTokenIfNeeded
OAuth->>OAuth: Map vertex-ai service to google base
OAuth->>Vertex: Request updated authentication
Vertex-->>OAuth: Provide updated authentication
OAuth-->>Handler: Return authentication
Handler->>ProvidersAPI: POST request with authentication
ProvidersAPI->>DB: Query credential again
DB-->>ProvidersAPI: Return credential record
ProvidersAPI->>OAuth: Call refreshTokenIfNeeded
OAuth-->>ProvidersAPI: Return authentication
ProvidersAPI->>Vertex: Make API call
Vertex-->>ProvidersAPI: LLM response
ProvidersAPI-->>Handler: Response
Handler-->>Block: Execution result
Block-->>User: Display output
|
waleedlatif1
added a commit
that referenced
this pull request
Dec 23, 2025
…esh (#2555) * improvement(vertex): added vertex to all LLM-based blocks, fixed refresh * fix build
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.
Summary
vertexas the base when it should've been usinggooglesince thats the parent serviceType of Change
Testing
Tested manually
Checklist