We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f19074 + 2c759fc commit 4b380bcCopy full SHA for 4b380bc
1 file changed
src/Guardrails.svelte
@@ -178,7 +178,7 @@
178
Documentation
179
</a>
180
<a
181
- href="https://github.com/BerriAI/litellm/blob/main/guardrails_registry.json"
+ href="https://github.com/BerriAI/litellm-guardrails"
182
target="_blank"
183
rel="noopener noreferrer"
184
class="btn btn-secondary"
@@ -289,8 +289,11 @@
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>
+ guardrail: custom_code
+ mode: "{item.input_type === 'response' ? 'post_call' : 'pre_call'}"
294
+ custom_code: |
295
+ def apply_guardrail(inputs, request_data, input_type):
296
+ ... # paste code from above</code></pre>
297
</div>
298
299
<div class="card-footer">
0 commit comments