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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs(bedrock.md): add guardrails on config.yaml to docs
Krrish Dholakiaeb6a0a32f1db
diff --git a/docs/my-website/docs/providers/bedrock.md b/docs/my-website/docs/providers/bedrock.mdindex 485dbf892b8..907dfc2337d 100644--- a/docs/my-website/docs/providers/bedrock.md+++ b/docs/my-website/docs/providers/bedrock.md@@ -393,7 +393,7 @@ response = completion()```</TabItem>-<TabItem value="proxy" label="LiteLLM Proxy Server">+<TabItem value="proxy" label="Proxy on request">```python@@ -420,6 +420,55 @@ extra_body={})+print(response)+```+</TabItem>+<TabItem value="proxy-config" label="Proxy on config.yaml">++1. Update config.yaml++```yaml+model_list:+ - model_name: bedrock-claude-v1+ litellm_params:+ model: bedrock/anthropic.claude-instant-v1+ aws_access_key_id: os.environ/CUSTOM_AWS_ACCESS_KEY_ID+ aws_secret_access_key: os.environ/CUSTOM_AWS_SECRET_ACCESS_KEY+ aws_region_name: os.environ/CUSTOM_AWS_REGION_NAME+ guardrailConfig: {+ "guardrailIdentifier": "ff6ujrregl1q", # The identifier (ID) for the guardrail.+ "guardrailVersion": "DRAFT", # The version of the guardrail.+ "trace": "disabled", # The trace behavior for the guardrail. Can either be "disabled" or "enabled"+ }++```++2. Start proxy++```bash+litellm --config /path/to/config.yaml+```++3. Test it!++```python++import openai+client = openai.OpenAI(+ api_key="anything",+ base_url="http://0.0.0.0:4000"+)++# request sent to model set on litellm proxy, `litellm --model`+response = client.chat.completions.create(model="bedrock-claude-v1", messages = [+ {+ "role": "user",+ "content": "this is a test request, write a short poem"+ }+],+temperature=0.7+)+print(response)```</TabItem>