mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
refactor(ui): drop redundant comment above guardrail mode formatter
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
881aa20808
commit
f80cb0d9f8
1 changed files with 0 additions and 2 deletions
|
|
@ -110,8 +110,6 @@ export const toModeArray = (raw: unknown): string[] => {
|
|||
return [];
|
||||
};
|
||||
|
||||
// Turns a guardrail mode into a renderable string. A mode is a single mode, a list of modes, or a
|
||||
// tag-based `{ tags, default }` object, which React refuses to render as a child
|
||||
export const formatGuardrailMode = (raw: unknown): string => {
|
||||
const flat: string[] = toModeArray(raw);
|
||||
if (flat.length > 0) return flat.join(", ");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue