Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge branch 'main' into litellm_add_bedrock_guardrails

Ishaan Jaff70f9e41ed93b
diff --cc litellm/proxy/proxy_config.yaml
index 6b831876f04,7c524eb18a0..5f4072434fd
--- a/litellm/proxy/proxy_config.yaml
+++ b/litellm/proxy/proxy_config.yaml
@@@ -1,13 -1,20 +1,14 @@@
model_list:
- - model_name: gpt-4
+ - model_name: fake-openai-endpoint
litellm_params:
- model: openai/gpt-4
- api_key: os.environ/OPENAI_API_KEY
+ model: openai/fake
+ api_key: fake-key
+ api_base: https://exampleopenaiendpoint-production.up.railway.app/
-litellm_settings:
- success_callback: ["prometheus"]
- failure_callback: ["prometheus"]
+
guardrails:
- - guardrail_name: "lakera-pre-guard"
+ - guardrail_name: "bedrock-pre-guard"
litellm_params:
- guardrail: lakera # supported values: "aporia", "bedrock", "lakera"
- mode: "during_call"
- api_key: os.environ/LAKERA_API_KEY
- api_base: os.environ/LAKERA_API_BASE
- category_thresholds:
- prompt_injection: 0.1
- jailbreak: 0.1
-
+ guardrail: bedrock # supported values: "aporia", "bedrock", "lakera"
+ mode: "post_call"
+ guardrailIdentifier: ff6ujrregl1q
+ guardrailVersion: "DRAFT"