Skip to content

feat(api-reference): render the public API reference with Scalar - #3193

Merged
mrinal-berri merged 6 commits into
mainfrom
litellm_scalar_api_reference
Nov 23, 2026
Merged

mrinal-berri merged 6 commits into
mainfrom
litellm_scalar_api_reference

Conversation

@mrinal-berri

@mrinal-berri mrinal-berri commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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.json that 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 build generated 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.

Before, Swagger

After, Scalar

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

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Nov 23, 2026 3:56am UTC

Request Review

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>
@mrinal-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@mrinal-berri

Copy link
Copy Markdown
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>
@mrinal-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@mrinal-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@mrinal-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@mrinal-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@narmstrong-berri narmstrong-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Most changes are just URL locations changing

@mrinal-berri
mrinal-berri merged commit 63f8763 into main Nov 23, 2026
6 checks passed
@mrinal-berri
mrinal-berri deleted the litellm_scalar_api_reference branch November 23, 2026 15:52

This branch was successfully deployed

1 active deployment
Preview — c1920959 Deployed Nov 23, 2026 by vercel[bot]
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.

2 participants