fix(router): update router to handle azure creds the same way the agent block does#2572
Merged
waleedlatif1 merged 2 commits intostagingfrom Dec 24, 2025
Merged
fix(router): update router to handle azure creds the same way the agent block does#2572waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryUpdated Router and Evaluator blocks to handle Azure OpenAI credentials consistently with the Agent block implementation. Key Changes:
Implementation Quality: Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant RouterBlock
participant EvaluatorBlock
participant ValidationUtil
participant ProviderAPI
Note over User,ProviderAPI: Router/Evaluator Block Execution with Azure Support
User->>RouterBlock: execute(inputs with model)
RouterBlock->>RouterBlock: getProviderFromModel(model)
alt Vertex AI Model
RouterBlock->>RouterBlock: resolveVertexCredential(credentialId)
RouterBlock->>RouterBlock: fetch OAuth token from DB
else Azure OpenAI Model
RouterBlock->>ValidationUtil: getApiKey(providerId, model, userInput)
ValidationUtil-->>RouterBlock: validated credentials
RouterBlock->>RouterBlock: set azureEndpoint and azureApiVersion
else Other Providers
RouterBlock->>ValidationUtil: getApiKey(providerId, model, userInput)
ValidationUtil-->>RouterBlock: validated credentials
end
RouterBlock->>ProviderAPI: POST /api/providers (with config)
ProviderAPI-->>RouterBlock: response
RouterBlock-->>User: BlockOutput
Note over User,ProviderAPI: Same flow applies to EvaluatorBlock
|
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
Type of Change
Testing
Tested manually. Added unit tests.
Checklist