litellm/docs/my-website
Ishaan Jaffer 8fcda9083f fix(tag_regex): address backwards-compat, metadata overwrite, and warning noise
Three issues from code review:

1. Backwards-compat: `has_tag_filter` was widened to activate on any non-empty
   User-Agent, which would raise ValueError for existing deployments using plain
   tags without a `default` fallback. Fix: only activate header-based regex
   filtering when at least one candidate deployment has `tag_regex` configured.

2. Metadata overwrite: `metadata["tag_routing"]` was overwritten for every
   matching deployment in the loop, leaving inaccurate provenance when multiple
   deployments match. Fix: write only for the first match.

3. Warning noise: an invalid regex pattern logged one warning per header string
   rather than once per pattern. Fix: compile first (catching re.error once),
   then iterate over header strings.

Also adds two new tests covering these cases, and adds docs page for
tag_regex routing with a Claude Code walk-through.
2026-03-13 17:55:47 -07:00
..
blog Improve doc for WebRTC 2026-03-12 22:45:36 +05:30
docs fix(tag_regex): address backwards-compat, metadata overwrite, and warning noise 2026-03-13 17:55:47 -07:00
img Improve doc for WebRTC 2026-03-12 22:41:39 +05:30
release_notes Merge pull request #23413 from BerriAI/docs_policyy_builder 2026-03-11 19:19:15 -07:00
src Fix the live tester 2026-03-12 22:14:08 +05:30
static fix: prompt registry 2026-02-18 00:34:54 +05:30
.gitignore Inkeep searchbar and chat added to the Docs (#12030) 2025-06-26 10:13:42 -07:00
.trivyignore security fix 2025-11-14 18:43:41 -08:00
babel.config.js updating docs 2023-08-12 11:30:32 -07:00
Dockerfile fix docs warning (#7419) 2024-12-25 16:42:14 -08:00
docusaurus.config.js fix 2025-12-20 15:21:00 +05:30
index.md fix keys 2023-08-17 16:13:52 -07:00
package-lock.json CircleCI test stability (#23055) 2026-03-07 15:19:39 -08:00
package.json Fix CVEs: bump tar/minimatch/pypdf + harden Docker SBOM patching (#23082) 2026-03-07 18:31:27 -08:00
README.md updating docs 2023-08-12 11:30:32 -07:00
sidebars.js fix(tag_regex): address backwards-compat, metadata overwrite, and warning noise 2026-03-13 17:55:47 -07:00

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

$ USE_SSH=true yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.