export type ModelTrace = { provider: "mock" | "live"; model?: string; endpoint?: string; requestPreview?: string; responsePreview?: string; }; export function compactTracePreview(value: string, max = 1200) { return value.trim().slice(0, max); }