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) add benchmarks on 1K RPS (#6704)
Ishaan Jaffe5051a93a86d
diff --git a/docs/my-website/docs/benchmarks.md b/docs/my-website/docs/benchmarks.mdnew file mode 100644index 00000000000..86699008bdd--- /dev/null+++ b/docs/my-website/docs/benchmarks.md@@ -0,0 +1,41 @@+# Benchmarks++Benchmarks for LiteLLM Gateway (Proxy Server)++Locust Settings:+- 2500 Users+- 100 user Ramp Up+++## Basic Benchmarks++Overhead when using a Deployed Proxy vs Direct to LLM+- Latency overhead added by LiteLLM Proxy: 107ms++| Metric | Direct to Fake Endpoint | Basic Litellm Proxy |+|--------|------------------------|---------------------|+| RPS | 1196 | 1133.2 |+| Median Latency (ms) | 33 | 140 |+++## Logging Callbacks++### [GCS Bucket Logging](https://docs.litellm.ai/docs/proxy/bucket)++Using GCS Bucket has **no impact on latency, RPS compared to Basic Litellm Proxy**++| Metric | Basic Litellm Proxy | LiteLLM Proxy with GCS Bucket Logging |+|--------|------------------------|---------------------|+| RPS | 1133.2 | 1137.3 |+| Median Latency (ms) | 140 | 138 |+++### [LangSmith logging](https://docs.litellm.ai/docs/proxy/logging)++Using LangSmith has **no impact on latency, RPS compared to Basic Litellm Proxy**++| Metric | Basic Litellm Proxy | LiteLLM Proxy with LangSmith |+|--------|------------------------|---------------------|+| RPS | 1133.2 | 1135 |+| Median Latency (ms) | 140 | 132 |+diff --git a/docs/my-website/docs/proxy/bucket.md b/docs/my-website/docs/proxy/bucket.mdindex 3422d0371f8..d1b9e607694 100644--- a/docs/my-website/docs/proxy/bucket.md+++ b/docs/my-website/docs/proxy/bucket.md@@ -9,7 +9,7 @@ LiteLLM Supports Logging to the following Cloud Buckets- (Enterprise) ✨ [Google Cloud Storage Buckets](#logging-proxy-inputoutput-to-google-cloud-storage-buckets)- (Free OSS) [Amazon s3 Buckets](#logging-proxy-inputoutput---s3-buckets)-## Logging Proxy Input/Output to Google Cloud Storage Buckets+## Google Cloud Storage BucketsLog LLM Logs to [Google Cloud Storage Buckets](https://cloud.google.com/storage?hl=en)@@ -20,6 +20,14 @@ Log LLM Logs to [Google Cloud Storage Buckets](https://cloud.google.com/storage?:::+| Property | Details |+|----------|---------|+| Description | Log LLM Input/Output to cloud storage buckets |+| Load Test Benchmarks | [Benchmarks](https://docs.litellm.ai/docs/benchmarks) |+| Google Docs on Cloud Storage | [Google Cloud Storage](https://cloud.google.com/storage?hl=en) |+++### Usage1. Add `gcs_bucket` to LiteLLM Config.yaml@@ -85,7 +93,7 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \6. Save the JSON file and add the path to `GCS_PATH_SERVICE_ACCOUNT`-## Logging Proxy Input/Output - s3 Buckets+## s3 BucketsWe will use the `--config` to setdiff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.mdindex 94faa7734a3..5867a8f2388 100644--- a/docs/my-website/docs/proxy/logging.md+++ b/docs/my-website/docs/proxy/logging.md@@ -107,7 +107,7 @@ class StandardLoggingModelInformation(TypedDict):model_map_value: Optional[ModelInfo]```-## Logging Proxy Input/Output - Langfuse+## LangfuseWe will use the `--config` to set `litellm.success_callback = ["langfuse"]` this will log all successfull LLM calls to langfuse. Make sure to set `LANGFUSE_PUBLIC_KEY` and `LANGFUSE_SECRET_KEY` in your environment@@ -463,7 +463,7 @@ You will see `raw_request` in your Langfuse Metadata. This is the RAW CURL comma<Image img={require('../../img/debug_langfuse.png')} />-## Logging Proxy Input/Output in OpenTelemetry format+## OpenTelemetry format:::info@@ -1216,7 +1216,7 @@ litellm_settings:Start the LiteLLM Proxy and make a test request to verify the logs reached your callback API-## Logging LLM IO to Langsmith+## Langsmith1. Set `success_callback: ["langsmith"]` on litellm config.yaml@@ -1261,7 +1261,7 @@ Expect to see your log on Langfuse<Image img={require('../../img/langsmith_new.png')} />-## Logging LLM IO to Arize AI+## Arize AI1. Set `success_callback: ["arize"]` on litellm config.yaml@@ -1309,7 +1309,7 @@ Expect to see your log on Langfuse<Image img={require('../../img/langsmith_new.png')} />-## Logging LLM IO to Langtrace+## Langtrace1. Set `success_callback: ["langtrace"]` on litellm config.yaml@@ -1351,7 +1351,7 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \'```-## Logging LLM IO to Galileo+## Galileo[BETA]@@ -1466,7 +1466,7 @@ curl --location 'http://0.0.0.0:4000/chat/completions' \<Image img={require('../../img/openmeter_img_2.png')} />-## Logging Proxy Input/Output - DataDog+## DataDogLiteLLM Supports logging to the following Datdog Integrations:- `datadog` [Datadog Logs](https://docs.datadoghq.com/logs/)@@ -1543,7 +1543,7 @@ Expected output on Datadog<Image img={require('../../img/dd_small1.png')} />-## Logging Proxy Input/Output - DynamoDB+## DynamoDBWe will use the `--config` to set@@ -1669,7 +1669,7 @@ Your logs should be available on DynamoDB}```-## Logging Proxy Input/Output - Sentry+## SentryIf api calls fail (llm/database) you can log those to Sentry:@@ -1711,7 +1711,7 @@ Test Requestlitellm --test```-## Logging Proxy Input/Output Athina+## Athina[Athina](https://athina.ai/) allows you to log LLM Input/Output for monitoring, analytics, and observability.diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.jsindex 18ad940f8aa..1dc33f554e7 100644--- a/docs/my-website/sidebars.js+++ b/docs/my-website/sidebars.js@@ -266,6 +266,7 @@ const sidebars = {type: "category",label: "Load Testing",items: [+ "benchmarks","load_test","load_test_advanced","load_test_sdk",