mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix set default value for max_file_size_mb
This commit is contained in:
parent
155ba055ee
commit
0184735d3d
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ def check_file_size_under_limit(
|
||||||
|
|
||||||
file_contents_size = file.size or 0
|
file_contents_size = file.size or 0
|
||||||
file_content_size_in_mb = file_contents_size / (1024 * 1024)
|
file_content_size_in_mb = file_contents_size / (1024 * 1024)
|
||||||
|
max_file_size_mb = None
|
||||||
|
|
||||||
if llm_router is not None and request_data["model"] in router_model_names:
|
if llm_router is not None and request_data["model"] in router_model_names:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue