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 time.sleep() between streaming calls
Ajeet D'Souza0533f77138d5
diff --git a/docs/my-website/docs/caching/caching_api.md b/docs/my-website/docs/caching/caching_api.mdindex 969de441f30..ff31c34eac4 100644--- a/docs/my-website/docs/caching/caching_api.md+++ b/docs/my-website/docs/caching/caching_api.md@@ -51,8 +51,10 @@ LiteLLM can cache your streamed responses for you### Usage```pythonimport litellm+import timefrom litellm import completionfrom litellm.caching import Cache+litellm.cache = Cache(type="hosted")# Make completion calls@@ -64,6 +66,7 @@ response1 = completion(for chunk in response1:print(chunk)+time.sleep(1) # cache is updated asynchronouslyresponse2 = completion(model="gpt-3.5-turbo",@@ -72,4 +75,4 @@ response2 = completion(caching=True)for chunk in response2:print(chunk)-```\ No newline at end of file+```