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
Use the -d flag in docs instead of -D (#12179)
Krzysztof Szafranek2e467a6c990d
diff --git a/docs/my-website/docs/assistants.md b/docs/my-website/docs/assistants.mdindex 4032c74557f..d262b492a70 100644--- a/docs/my-website/docs/assistants.md+++ b/docs/my-website/docs/assistants.md@@ -279,7 +279,7 @@ with run as run:curl -X POST 'http://0.0.0.0:4000/threads/{thread_id}/runs' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \--D '{+-d '{"assistant_id": "asst_6xVZQFFy1Kw87NbnYeNebxTf","stream": true}'diff --git a/docs/my-website/docs/image_generation.md b/docs/my-website/docs/image_generation.mdindex 5af3e10e0ca..46cf288f5a4 100644--- a/docs/my-website/docs/image_generation.md+++ b/docs/my-website/docs/image_generation.md@@ -52,7 +52,7 @@ litellm --config /path/to/config.yamlcurl -X POST 'http://0.0.0.0:4000/v1/images/generations' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer sk-1234' \--D '{+-d '{"model": "gpt-image-1","prompt": "A cute baby sea otter","n": 1,diff --git a/docs/my-website/docs/old_guardrails.md b/docs/my-website/docs/old_guardrails.mdindex 451ca8ab508..73448666c43 100644--- a/docs/my-website/docs/old_guardrails.md+++ b/docs/my-website/docs/old_guardrails.md@@ -212,7 +212,7 @@ If you need to switch `pii_masking` off for an API Key set `"permissions": {"piicurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"permissions": {"pii_masking": true}}'```diff --git a/docs/my-website/docs/proxy/customers.md b/docs/my-website/docs/proxy/customers.mdindex 2035b24f3a6..3e25fb7f07f 100644--- a/docs/my-website/docs/proxy/customers.md+++ b/docs/my-website/docs/proxy/customers.md@@ -136,7 +136,7 @@ Create / Update a customer with budgetcurl -X POST 'http://0.0.0.0:4000/customer/new'-H 'Authorization: Bearer sk-1234'-H 'Content-Type: application/json'- -D '{+ -d '{"user_id" : "my-customer-id","max_budget": "0", # 👈 CAN BE FLOAT}'diff --git a/docs/my-website/docs/proxy/guardrails.md b/docs/my-website/docs/proxy/guardrails.mdindex 264f13b46fe..10cd5d52a57 100644--- a/docs/my-website/docs/proxy/guardrails.md+++ b/docs/my-website/docs/proxy/guardrails.md@@ -216,7 +216,7 @@ If you need to switch `pii_masking` off for an API Key set `"permissions": {"piicurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"permissions": {"pii_masking": true}}'```diff --git a/docs/my-website/docs/proxy/guardrails/aporia_api.md b/docs/my-website/docs/proxy/guardrails/aporia_api.mdindex d45c34d47f9..8c5c1ec1947 100644--- a/docs/my-website/docs/proxy/guardrails/aporia_api.md+++ b/docs/my-website/docs/proxy/guardrails/aporia_api.md@@ -155,7 +155,7 @@ Use this to control what guardrails run per project. In this tutorial we only wacurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"guardrails": ["aporia-pre-guard", "aporia-post-guard"]}}'diff --git a/docs/my-website/docs/proxy/guardrails/guardrails_ai.md b/docs/my-website/docs/proxy/guardrails/guardrails_ai.mdindex 3f63273fc51..dafce5d0cb5 100644--- a/docs/my-website/docs/proxy/guardrails/guardrails_ai.md+++ b/docs/my-website/docs/proxy/guardrails/guardrails_ai.md@@ -74,7 +74,7 @@ Use this to control what guardrails run per project. In this tutorial we only wacurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"guardrails": ["guardrails_ai-guard"]}}'diff --git a/docs/my-website/docs/proxy/guardrails/quick_start.md b/docs/my-website/docs/proxy/guardrails/quick_start.mdindex 55cfa98d486..620d354a510 100644--- a/docs/my-website/docs/proxy/guardrails/quick_start.md+++ b/docs/my-website/docs/proxy/guardrails/quick_start.md@@ -421,7 +421,7 @@ Use this to control what guardrails run per API Key. In this tutorial we only wacurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"guardrails": ["aporia-pre-guard", "aporia-post-guard"]}}'diff --git a/docs/my-website/docs/proxy/team_budgets.md b/docs/my-website/docs/proxy/team_budgets.mdindex 3942bfa504f..4da5e6c356e 100644--- a/docs/my-website/docs/proxy/team_budgets.md+++ b/docs/my-website/docs/proxy/team_budgets.md@@ -318,7 +318,7 @@ curl -X POST 'http://0.0.0.0:4000/key/generate' \curl -X POST 'http://0.0.0.0:4000/chat/completions' \-H 'Content-Type: application/json' \-H 'Authorization: sk-...' \ # 👈 key from step 2.- -D '{+ -d '{"model": "gpt-3.5-turbo","messages": [{diff --git a/docs/my-website/docs/tutorials/litellm_proxy_aporia.md b/docs/my-website/docs/tutorials/litellm_proxy_aporia.mdindex 143512f99c2..07eb36baa8b 100644--- a/docs/my-website/docs/tutorials/litellm_proxy_aporia.md+++ b/docs/my-website/docs/tutorials/litellm_proxy_aporia.md@@ -150,7 +150,7 @@ Use this to control what guardrails run per project. In this tutorial we only wacurl -X POST 'http://0.0.0.0:4000/key/generate' \-H 'Authorization: Bearer sk-1234' \-H 'Content-Type: application/json' \- -D '{+ -d '{"guardrails": ["aporia-pre-guard", "aporia-post-guard"]}}'