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
fix: fix linting error
Krrish Dholakiacd496fee2e3e
diff --git a/litellm/proxy/anthropic_endpoints/endpoints.py b/litellm/proxy/anthropic_endpoints/endpoints.pyindex 2395df3faf4..a84c1e84ab0 100644--- a/litellm/proxy/anthropic_endpoints/endpoints.py+++ b/litellm/proxy/anthropic_endpoints/endpoints.py@@ -24,13 +24,13 @@ from litellm.proxy.utils import ProxyLoggingrouter = APIRouter()-def return_anthropic_chunk(chunk: str | dict) -> str:+def return_anthropic_chunk(chunk: Any) -> str:"""Helper function to format streaming chunks for Anthropic API format-+Args:chunk: A string or dictionary to be returned in SSE format-+Returns:str: A properly formatted SSE chunk string"""