Skip to content

Commit

Permalink
allow setting max_file_size_mb
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jul 16, 2024
1 parent a900f35 commit 865469e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions litellm/types/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ class GenericLiteLLMParams(BaseModel):
input_cost_per_second: Optional[float] = None
output_cost_per_second: Optional[float] = None

max_file_size_mb: Optional[int] = None

model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True)

def __init__(
Expand Down Expand Up @@ -185,6 +187,7 @@ def __init__(
output_cost_per_token: Optional[float] = None,
input_cost_per_second: Optional[float] = None,
output_cost_per_second: Optional[float] = None,
max_file_size_mb: Optional[int] = None,
**params,
):
args = locals()
Expand Down Expand Up @@ -243,6 +246,9 @@ def __init__(
aws_access_key_id: Optional[str] = None,
aws_secret_access_key: Optional[str] = None,
aws_region_name: Optional[str] = None,
# OpenAI / Azure Whisper
# set a max-size of file that can be passed to litellm proxy
max_file_size_mb: Optional[int] = None,
**params,
):
args = locals()
Expand Down

0 comments on commit 865469e

Please sign in to comment.