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: fix streaming example in README (#16461)
Cesar Garcia656dce92d01b
diff --git a/README.md b/README.mdindex 6dcebfbd3d9..59034164702 100644--- a/README.md+++ b/README.md@@ -132,11 +132,15 @@ print(response)## Streaming ([Docs](https://docs.litellm.ai/docs/completion/stream))-liteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.+LiteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.Streaming is supported for all models (Bedrock, Huggingface, TogetherAI, Azure, OpenAI, etc.)```pythonfrom litellm import completion++messages = [{"content": "Hello, how are you?", "role": "user"}]++# gpt-4oresponse = completion(model="openai/gpt-4o", messages=messages, stream=True)for part in response:print(part.choices[0].delta.content or "")