Skip to content

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]

fixing mypy lint errors

Eddie Richterbbfa00c61bfb
diff --git a/litellm/llms/lemonade/chat/transformation.py b/litellm/llms/lemonade/chat/transformation.py
index 3fb63dabe08..f1dc0e1a37d 100644
--- a/litellm/llms/lemonade/chat/transformation.py
+++ b/litellm/llms/lemonade/chat/transformation.py
@@ -26,7 +26,7 @@ class LemonadeChatConfig(OpenAILikeChatConfig):
presence_penalty: Optional[int] = None
stop: Optional[Union[str, list]] = None
temperature: Optional[int] = None
- top_p: Optional[float] = None
+ top_p: Optional[int] = None
top_k: Optional[int] = None
response_format: Optional[dict] = None
tools: Optional[list] = None
@@ -42,7 +42,7 @@ class LemonadeChatConfig(OpenAILikeChatConfig):
presence_penalty: Optional[int] = None,
stop: Optional[Union[str, list]] = None,
temperature: Optional[int] = None,
- top_p: Optional[float] = None,
+ top_p: Optional[int] = None,
top_k: Optional[int] = None,
response_format: Optional[dict] = None,
tools: Optional[list] = None,
@@ -89,13 +89,16 @@ class LemonadeChatConfig(OpenAILikeChatConfig):
)
# Returning the model if it was found in lemonade. Currently there is no mechanism to report
- # if the model supports function calling or the max tokens so we leave those out
+ # the models max input or output tokens so leaving those as None
return ModelInfoBase(
key=model,
litellm_provider="lemonade",
mode="chat",
input_cost_per_token=0.0,
output_cost_per_token=0.0,
+ max_input_tokens=None,
+ max_output_tokens=None,
+ max_tokens=None,
)
def _get_openai_compatible_provider_info(