mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
refactor(router.py): fix linting errors
This commit is contained in:
parent
624ef83455
commit
861c66580f
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class Router:
|
||||||
########## remove -ModelID-XXXX from model ##############
|
########## remove -ModelID-XXXX from model ##############
|
||||||
original_model_string = data["model"]
|
original_model_string = data["model"]
|
||||||
# Find the index of "ModelID" in the string
|
# Find the index of "ModelID" in the string
|
||||||
self.print_verbose(f"completion model: {original_model_string}"}
|
self.print_verbose(f"completion model: {original_model_string}")
|
||||||
index_of_model_id = original_model_string.find("-ModelID")
|
index_of_model_id = original_model_string.find("-ModelID")
|
||||||
# Remove everything after "-ModelID" if it exists
|
# Remove everything after "-ModelID" if it exists
|
||||||
if index_of_model_id != -1:
|
if index_of_model_id != -1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue