mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
The API Reference page was already behind a deprecation banner. This deletes the /ui/api-reference route and its components, the Developer Tools sidebar entry and page description, the legacy ?page=api_ref redirects, and the i18n strings only that page used. Old ?page=api_ref and ?page=api-reference bookmarks now fall through to the dashboard like any other unknown page id, since there is no replacement page. Tests that listed the page are updated: the sidebar and legacy-route vitest files, the uiHref examples, the e2e sidebar fixtures and Internal Viewer nav check, and the UI path detection unit test.
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { Page } from "./pages";
|
|
|
|
/**
|
|
* Maps sidebar menu item labels to their corresponding page enum values.
|
|
* This mapping is for the admin role.
|
|
*/
|
|
export const menuLabelToPage: Record<string, Page> = {
|
|
"Virtual Keys": Page.ApiKeys,
|
|
Playground: Page.LlmPlayground,
|
|
Models: Page.Models,
|
|
"Models + Endpoints": Page.Models,
|
|
Usage: Page.NewUsage,
|
|
Teams: Page.Teams,
|
|
"Internal Users": Page.Users,
|
|
"Internal User": Page.Users, // Legacy label support
|
|
Organizations: Page.Organizations,
|
|
"AI Hub": Page.ModelHubTable,
|
|
"Model Hub": Page.ModelHubTable,
|
|
Logs: Page.Logs,
|
|
Guardrails: Page.Guardrails,
|
|
// Settings submenu items
|
|
"Router Settings": Page.RouterSettings,
|
|
"Logging & Alerts": Page.LoggingAndAlerts,
|
|
"Admin Settings": Page.AdminPanel,
|
|
"Cost Tracking": Page.CostTracking,
|
|
"UI Theme": Page.UiTheme,
|
|
// Experimental submenu items
|
|
"Response Cache": Page.Caching,
|
|
Caching: Page.Caching, // Legacy label support
|
|
Prompts: Page.Prompts,
|
|
Budgets: Page.Budgets,
|
|
"API Playground": Page.TransformRequest,
|
|
"Tag Management": Page.TagManagement,
|
|
// Tools submenu items
|
|
"MCP Servers": Page.McpServers,
|
|
"Vector Stores": Page.VectorStores,
|
|
};
|