Repository navigation
feat(api-reference): render the public API reference with Scalar - #3193
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
@greptileai review |
Contributor
Author
|
bugbot run |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
@greptileai review |
Contributor
Author
|
bugbot run |
Contributor
Author
|
@greptileai review |
Contributor
Author
|
bugbot run |
4 of 6 tasks
narmstrong-berri
approved these changes
Nov 23, 2026
narmstrong-berri
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Most changes are just URL locations changing
This branch was successfully 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.
Summary
The public reference at https://docs.litellm.ai/api-reference/ now renders with Scalar instead of Swagger UI, so it reads like the Stripe and OpenAI references: searchable nav, docs and request/response samples side by side. It still loads the committed
static/openapi.jsonthat the daily sync updates, so nothing about how the spec is produced changes.The public page loads the Scalar 1.81.0 standalone bundle from jsDelivr and pins its SHA-384 with Subresource Integrity. If the CDN is unavailable or the bytes change, the viewer cannot load. The page stays read-only and does not use Scalar's hosted request proxy. Links in docs pages, site search and the docs MCP server point to Scalar anchors.
The jsDelivr bundle matched the previous local copy byte for byte. The OpenAPI snapshot and its refresh workflow are unchanged.
npm run buildgenerated the static site. The structural check found no problems, the writing check found no prose em dashes, and the search and MCP suites passed (152 and 49 tests, respectively, with 2 MCP skips). In Chromium, a Scalar deep link opened GET Model List. The CDN bundle and OpenAPI snapshot returned HTTP 200, Try It stayed disabled, and there were no browser errors.The matching proxy change, which removes ReDoc and makes Scalar the proxy's default docs page, is in BerriAI/litellm on the branch of the same name.
Details
Link to Devin session: https://app.devin.ai/sessions/b6937f28a5a5473ba6f86951ccbe4721
Open in Devin Desktop: https://app.devin.ai/desktop/session/b6937f28a5a5473ba6f86951ccbe4721?variant=devin
Requested by: @mrinal-berri