mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
* feat(auto_router): write and preview the classifier prompt an edited tier set sends An edited tier set replaces the whole rubric, so the built-in prompt editor is refused there and the operator had no way to steer the classifier or add calibration examples of their own. classification_prompt has always been accepted beside tier_definitions as the rubric's opening; the dashboard just never exposed it. Custom mode gets its own Edit prompt dialog bound to that field. The dialog previews the assembled prompt from the proxy, debounced against the draft, so a built-in tier that leaves its description blank shows the shipped criteria it inherits. The preview and the live classifier both call custom_tier_classification_prompt, verified byte-identical against a running proxy, so the preview cannot drift from what the router sends. The preview POSTs on the same path as the shipped GET, because the prompt is the operator's own text and must not reach access logs through a URL. The path joins admin_viewer_routes so a role that may call the GET is not refused the POST, and the request model applies the write gate's own strip and cap so the preview refuses what the save would refuse. * fix(ui): name the orphaned keyword rules inside the tier editor before Done * fix(ui): drop stale classifier prompt preview responses * style(ui): format the stale preview regression test |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||