mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
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:
commit
cbfabbd8ab
2 changed files with 0 additions and 39 deletions
|
|
@ -31,10 +31,3 @@ export interface ParsedMessages {
|
|||
requestMessages: ParsedMessage[];
|
||||
responseMessage: ParsedMessage | null;
|
||||
}
|
||||
|
||||
export interface RoleStyle {
|
||||
background: string;
|
||||
borderColor: string;
|
||||
label: string;
|
||||
labelColor: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue