forked from phoenix/litellm-mirror
(fix) print statements
This commit is contained in:
parent
0598ab9b63
commit
e1230627d0
1 changed files with 2 additions and 2 deletions
|
@ -1027,7 +1027,7 @@ async def info_key_fn(key: str = fastapi.Query(..., description="Key in the requ
|
||||||
async def add_new_model(model_params: ModelParams):
|
async def add_new_model(model_params: ModelParams):
|
||||||
global llm_router, llm_model_list, general_settings, user_config_file_path
|
global llm_router, llm_model_list, general_settings, user_config_file_path
|
||||||
try:
|
try:
|
||||||
print("User config path: ", user_config_file_path)
|
print_verbose("User config path: ", user_config_file_path)
|
||||||
# Load existing config
|
# Load existing config
|
||||||
if os.path.exists(f"{user_config_file_path}"):
|
if os.path.exists(f"{user_config_file_path}"):
|
||||||
with open(f"{user_config_file_path}", "r") as config_file:
|
with open(f"{user_config_file_path}", "r") as config_file:
|
||||||
|
@ -1035,7 +1035,7 @@ async def add_new_model(model_params: ModelParams):
|
||||||
else:
|
else:
|
||||||
config = {"model_list": []}
|
config = {"model_list": []}
|
||||||
|
|
||||||
print("Loaded config: ", config)
|
print_verbose("Loaded config: ", config)
|
||||||
# Add the new model to the config
|
# Add the new model to the config
|
||||||
config['model_list'].append({
|
config['model_list'].append({
|
||||||
'model_name': model_params.model_name,
|
'model_name': model_params.model_name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue