Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

back to logs added conditionally

tanjiro15baaf68db76
diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
index b4a74bf846b..f5e18b68046 100644
--- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx
@@ -43,6 +43,7 @@ interface KeyInfoViewProps {
teams: any[] | null
premiumUser: boolean
setAccessToken?: (token: string) => void
+ backButtonText?: string
}
export default function KeyInfoView({
@@ -57,6 +58,7 @@ export default function KeyInfoView({
onDelete,
premiumUser,
setAccessToken,
+ backButtonText = "Back to Keys",
}: KeyInfoViewProps) {
const [isEditing, setIsEditing] = useState(false)
const [form] = Form.useForm()
@@ -92,7 +94,7 @@ export default function KeyInfoView({
return (
<div className="p-4">
<Button icon={ArrowLeftIcon} variant="light" onClick={onClose} className="mb-4">
- Back to Keys
+ {backButtonText}
</Button>
<Text>Key not found</Text>
</div>
@@ -261,7 +263,7 @@ export default function KeyInfoView({
<div className="flex justify-between items-center mb-6">
<div>
<Button icon={ArrowLeftIcon} variant="light" onClick={onClose} className="mb-4">
- Back to Keys
+ {backButtonText}
</Button>
<Title>{currentKeyData.key_alias || "API Key"}</Title>
diff --git a/ui/litellm-dashboard/src/components/view_logs/index.tsx b/ui/litellm-dashboard/src/components/view_logs/index.tsx
index b227d493aa0..72ad8732b6b 100644
--- a/ui/litellm-dashboard/src/components/view_logs/index.tsx
+++ b/ui/litellm-dashboard/src/components/view_logs/index.tsx
@@ -500,6 +500,7 @@ export default function SpendLogsTable({
teams={allTeams}
onClose={() => setSelectedKeyIdInfoView(null)}
premiumUser={premiumUser}
+ backButtonText="Back to Logs"
/>
) : selectedSessionId ? (
<div className="bg-white rounded-lg shadow">