refactor(router.py): fix linting errors

This commit is contained in:
Krrish Dholakia 2023-11-27 22:08:48 -08:00
parent 624ef83455
commit 861c66580f

View file

@ -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: