mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Add email-blocking guardrail config and fix pre-existing ToolPolicies/create_key build errors
Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
74374412a1
commit
9924fc14ac
34 changed files with 25 additions and 0 deletions
25
dev_config.yaml
Normal file
25
dev_config.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
model_list:
|
||||
- model_name: gpt-4o-realtime
|
||||
litellm_params:
|
||||
model: openai/gpt-4o-realtime-preview-2024-12-17
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
- model_name: gpt-4o-mini
|
||||
litellm_params:
|
||||
model: openai/gpt-4o-mini
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
|
||||
guardrails:
|
||||
- guardrail_name: "block-emails"
|
||||
litellm_params:
|
||||
guardrail: litellm_content_filter
|
||||
mode: pre_call
|
||||
default_on: false
|
||||
patterns:
|
||||
- pattern_type: prebuilt
|
||||
pattern_name: email
|
||||
name: email
|
||||
action: BLOCK
|
||||
|
||||
general_settings:
|
||||
master_key: sk-test-master-key
|
||||
store_prompts_in_spend_logs: true
|
||||
Loading…
Add table
Reference in a new issue