Merge pull request #41645 from BerriAI/litellm_remove_orphaned_role_styles

chore(ui): remove orphaned ROLE_STYLES and RoleStyle from pretty messages view
This commit is contained in:
Mateo Wang 2026-09-18 08:46:16 -07:00 committed by GitHub
commit cbfabbd8ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 39 deletions

View file

@ -31,10 +31,3 @@ export interface ParsedMessages {
requestMessages: ParsedMessage[];
responseMessage: ParsedMessage | null;
}
export interface RoleStyle {
background: string;
borderColor: string;
label: string;
labelColor: string;
}

View file

@ -8,41 +8,9 @@ import {
ParsedMessages,
RequestPayload,
ResponsePayload,
RoleStyle,
ToolCall,
} from "./prettyMessagesTypes";
/**
* Role color styles for message cards - minimal, professional design
* Color only used for labels and left border accent
*/
export const ROLE_STYLES: Record<string, RoleStyle> = {
system: {
background: "transparent",
borderColor: "var(--color-muted-foreground)",
label: "SYSTEM",
labelColor: "var(--color-muted-foreground)",
},
user: {
background: "transparent",
borderColor: "var(--color-info)",
label: "USER",
labelColor: "var(--color-info)",
},
assistant: {
background: "transparent",
borderColor: "var(--color-success)",
label: "ASSISTANT",
labelColor: "var(--color-success)",
},
tool: {
background: "transparent",
borderColor: "var(--color-warning)",
label: "TOOL RESULT",
labelColor: "var(--color-warning)",
},
};
type UnknownRecord = Record<string, unknown>;
const isRecord = (value: unknown): value is UnknownRecord =>