refactor(proxy_server.py): fix linting issues

This commit is contained in:
Krrish Dholakia 2023-11-30 09:24:51 -08:00
parent cbc358ef77
commit 062ede96e3

View file

@ -854,10 +854,11 @@ async def info_key_fn(key: str = fastapi.Query(..., description="Key in the requ
#### MODEL MANAGEMENT #### #### MODEL MANAGEMENT ####
#### [BETA] - This is a beta endpoint, format might change based on user feedback. - https://github.com/BerriAI/litellm/issues/933 #### [BETA] - This is a beta endpoint, format might change based on user feedback. - https://github.com/BerriAI/litellm/issues/933
@router.get("/model/info", description="Provides more info about each model in /models, including config.yaml descriptions", tags=["model management"], dependencies=[Depends(user_api_key_auth)]) @router.get("/model/info", description="Provides more info about each model in /models, including config.yaml descriptions (except api key and api base)", tags=["model management"], dependencies=[Depends(user_api_key_auth)])
async def model_info(request: Request): async def model_info(request: Request):
global llm_model_list, general_settings global llm_model_list, general_settings
all_models = [] all_models = []
if llm_model_list is not None:
for m in llm_model_list: for m in llm_model_list:
model_dict = {} model_dict = {}
model_name = m["model_name"] model_name = m["model_name"]