fix(utils.py): fix azure completion cost calculation

This commit is contained in:
Krrish Dholakia 2023-11-30 09:19:35 -08:00
parent 2108b7b528
commit af56d8a759
2 changed files with 2 additions and 4 deletions

View file

@ -863,7 +863,7 @@ async def model_info(request: Request):
model_name = m["model_name"]
model_params = {}
for k,v in m["litellm_params"].items():
if k == "api_key": # don't send the api key
if k == "api_key" or k == "api_base": # don't send the api key or api base
continue
if k == "model":