ui/litellm-dashboard/src/components/prompts/README.md
This component provides a view-only interface for viewing prompts in the LiteLLM dashboard, similar to the guardrails component.
prompts.tsx)getPromptsList API callprompt_table.tsx)prompt_info.tsx)The component is integrated into the main application at:
?page=prompts URL parametergetPromptsList and getPromptInfo functions from networking.tsxinterface PromptsProps {
accessToken: string | null;
userRole?: string;
}
The component expects prompts with the following structure:
interface PromptItem {
prompt_id?: string;
prompt_name: string | null;
prompt_info: Record<string, any>;
created_at?: string;
updated_at?: string;
}
The component is fully integrated into the main application:
leftnav.tsx with FileTextOutlined iconpage.tsx with proper routing logic