mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* feat(ui): add LITELLM_UI_USE_SI_TERMINOLOGY to show SI instead of AI in the Admin UI Setting LITELLM_UI_USE_SI_TERMINOLOGY=true on the proxy makes the Admin UI say "SI" where its own copy says "AI" and "Super Intelligence" where it says "Artificial Intelligence". This covers the nav, page headings, settings text, guardrail garden blurbs, the compliance playground prompts and the playground sample prompts. Third-party product, provider and law names keep their spelling (Vertex AI, Cisco AI Defense, EU AI Act, ...), and user data such as guardrail names, gateway URLs and keys is never rewritten. The proxy exposes the flag on /.well-known/litellm-ui-config, a TerminologyProvider at the app root reads it, and components call useTerminology() on their own strings. The context defaults to a pass-through, so nothing changes when the flag is unset. * fix(ui): apply SI terminology to the command palette, page visibility groups and guardrail garden search * test(ui): cover the flag-off wording on the palette, page visibility and garden search tests * fix(ui): apply SI terminology to the Aria usage assistant copy * test(ui): keep the Aria ui-config stub within the inline object lint budget * fix(ui): keep AI wording in prompts sent to models
47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
|
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
import { AuthProvider } from "@/contexts/AuthContext";
|
|
import ReactQueryProvider from "@/contexts/ReactQueryProvider";
|
|
import HotkeysProvider from "@/contexts/HotkeysProvider";
|
|
import { TerminologyProvider } from "@/contexts/TerminologyContext";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "LiteLLM Dashboard",
|
|
description: "LiteLLM Proxy Admin UI",
|
|
icons: { icon: "/get_favicon" },
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
// next-themes stamps the theme class on <html> before paint, which the exported markup
|
|
// cannot predict; suppressHydrationWarning confines that mismatch to this element.
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={inter.className}>
|
|
<ThemeProvider attribute="class" defaultTheme="light" enableSystem disableTransitionOnChange>
|
|
<NuqsAdapter>
|
|
<ReactQueryProvider>
|
|
<TerminologyProvider>
|
|
<HotkeysProvider>
|
|
<AuthProvider>{children}</AuthProvider>
|
|
</HotkeysProvider>
|
|
</TerminologyProvider>
|
|
<Toaster />
|
|
</ReactQueryProvider>
|
|
</NuqsAdapter>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|