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 supported call types
Ishaan Jaff2fd523a0f923
diff --git a/docs/my-website/docs/proxy/caching.md b/docs/my-website/docs/proxy/caching.mdindex ded8333f048..f733498d97c 100644--- a/docs/my-website/docs/proxy/caching.md+++ b/docs/my-website/docs/proxy/caching.md@@ -260,6 +260,25 @@ curl --location 'http://0.0.0.0:4000/cache/ping' -H "Authorization: Bearer sk-1```## Advanced++## Control Call Types Caching is on for - (`/chat/completion`, `/embeddings`, etc.)++By default, caching is on for all call types. You can control which call types caching is on for by setting `supported_call_types` in `cache_params`++**Cache will only be on for the call types specified in `supported_call_types`**++```yaml+litellm_settings:+ cache: True+ cache_params:+ type: redis+ supported_call_types: [+ "acompletion", # /chat/completions+ "atext_completion", # /completions+ "aembedding", # /embeddings+ "atranscription", # /audio/transcriptions+ ]+```### Set Cache Params on config.yaml```yamlmodel_list:@@ -280,7 +299,12 @@ litellm_settings:password: "your_password" # The password for the Redis cache. Required if type is "redis".# Optional configurations- supported_call_types: ["acompletion", "completion", "embedding", "aembedding"] # defaults to all litellm call types+ supported_call_types: [+ "acompletion", # /chat/completions+ "atext_completion", # /completions+ "aembedding", # /embeddings+ "atranscription", # /audio/transcriptions+ ]```### Turn on / off caching per request.@@ -625,11 +649,12 @@ cache_params:# List of litellm call types to cache for# Options: "completion", "acompletion", "embedding", "aembedding"- supported_call_types:- - completion- - acompletion- - embedding- - aembedding+ supported_call_types: [+ "acompletion", # /chat/completions+ "atext_completion", # /completions+ "aembedding", # /embeddings+ "atranscription", # /audio/transcriptions+ ]# Redis cache parametershost: localhost # Redis server hostname or IP address