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(utils.py): fix linting error for python3.8
Krrish Dholakia37dc359efbcc
diff --git a/litellm/utils.py b/litellm/utils.pyindex ee0bed3f7b7..98c8b018419 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -160,6 +160,7 @@ from typing import (Literal,Optional,Tuple,+ Type,Union,cast,get_args,@@ -6155,7 +6156,7 @@ def _should_retry(status_code: int):def type_to_response_format_param(- response_format: Optional[Union[type[BaseModel], dict]],+ response_format: Optional[Union[Type[BaseModel], dict]],) -> Optional[dict]:"""Re-implementation of openai's 'type_to_response_format_param' function