Repository navigation
fix(ui): expose Generic Guardrail API connection fields - #48317
Open
tanishqbaweja wants to merge 1 commit into
Open
tanishqbaweja wants to merge 1 commit into
tanishqbaweja wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
tanishqbaweja
marked this pull request as ready for review
October 25, 2026 15:16
tanishqbaweja
force-pushed
the
litellm_fix_34927_guardrail_connection_fields
branch
from
November 1, 2026 00:57
81a5dc0 to
f384983
Compare
tanishqbaweja
force-pushed
the
litellm_fix_34927_guardrail_connection_fields
branch
from
November 1, 2026 03:06
f384983 to
7d1a275
Compare
This branch has not been deployed
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.
The Generic Guardrail API form has no URL or API-key inputs because both fields are missing from its provider schema. Expose them so admins can create and edit a working connection through the dashboard. Keep the existing optional-parameter step and URL environment fallback
Details
TLDR
Problem this solves:
How it solves it:
Intentional product change: The create and edit forms gain connection inputs. URL environment fallback and optional authentication remain available
User Flow
Before, an admin cannot enter the connection details
http://127.0.0.1:41475/ui/guardrails/after signing inAfter, the same form can save and test the connection
http://127.0.0.1:41475/ui/guardrails/after signing inapi_baseand maskedapi_keyinputsRelevant issues
Fixes #34927
Earlier unmerged PRs #34937 and #35212 investigated the same issue. On current main, optional parameters already render in the following step, so this change only adds the missing connection fields
Pre-Submission checklist
The two new regressions fail on unchanged main with missing
api_baseandapi_key. Both affected backend files pass after the fix, 251 tests. Six affected frontend files pass, 93 tests covering create, edit, provider fields and helpersmake lint BASE_REF=origin/main LINT_JOBS=2passes, including formatting, lint, type-budget, test-quality, OpenAPI documentation, import-safety and E2E type gates. Changed-file formatting andgit diff --checkalso pass. The repository type-budget gate accepts existing diagnostics within its ceilingsThe OSV scan flags the same three advisories as unchanged main, two for filelock 3.32.7 and one for the development dependency @azure/msal-node 6.0.1. This PR changes no dependencies or lockfiles. The separate proposal #48302 tracks that scan failure
The latest commit passes all four required CI gates, including unit tests, lint, smoke tests and cost-map validation
The initial unit run failed the existing
test_token_counter_loads_a_custom_tokenizer_off_the_event_looptiming assertion, with 4328 other tests passing in that shard. The same test fails locally on unchanged main and this PR. Its test, helper and proxy implementation are unchanged. One empty commit retried CI successfully without changing the tree, and the browser evidence below was refreshed for itCodecov on the initial product commit confirms all modified and coverable lines are covered. The latest commit has the same tree and its coverage job also passes. Automated code reviews have not been posted, so that checklist item remains unverified
Screenshots / Proof of Fix
The real proxy and PostgreSQL served the production dashboard at the URL above. Both revisions used the same unchanged dashboard export from the before commit. Chromium ran at 1440x900 and 390x844 with touch on the latter
The included local HTTP guardrail checks
x-api-keyand returns allowed or blocked results. This configuration flow makes actual HTTP calls to that fixture and does not require LLM inference. The evidence and reproduction steps include the fixture, driver, raw screenshots and reportsBefore (dddbaa8)
Desktop
Desktop recording
Phone
Phone recording
After (81a5dc0)
Desktop
Desktop recording
Phone
Phone recording
Type
Bug Fix
Caveats
Low