Skip to content

Commit 0f19074

Browse files
author
Krish Dholakia
authored
Merge pull request #14 from shin-bot-litellm/fix-guardrails-styling
fix: guardrails code styling and YAML config
2 parents 5354152 + a8ff306 commit 0f19074

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/Guardrails.svelte

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,11 @@
286286

287287
<div class="usage-section">
288288
<span class="usage-label">Usage in config.yaml:</span>
289-
<pre class="usage-code"><code>litellm_settings:
290-
guardrails:
291-
- guardrail_name: "{item.id}"
292-
litellm_params:
293-
guardrail: custom_code.{item.id}
294-
mode: "{item.input_type === 'response' ? 'post_call' : 'pre_call'}"</code></pre>
289+
<pre class="usage-code"><code>guardrails:
290+
- guardrail_name: "{item.id}"
291+
litellm_params:
292+
guardrail: custom_code.{item.id}
293+
mode: "{item.input_type === 'response' ? 'post_call' : 'pre_call'}"</code></pre>
295294
</div>
296295

297296
<div class="card-footer">
@@ -590,11 +589,15 @@
590589
font-size: 0.8125rem;
591590
line-height: 1.6;
592591
margin: 0;
592+
text-align: left;
593+
white-space: pre;
593594
}
594595
595596
.code-block code,
596597
.usage-code code {
597598
color: var(--code-text);
599+
text-align: left;
600+
display: block;
598601
}
599602
600603
.usage-section {

0 commit comments

Comments
 (0)