forked from phoenix/litellm-mirror
Merge pull request #4447 from BerriAI/litellm_fix_error_on_v2_model_info
[fix] error message on /v2/model info when no models exist
This commit is contained in:
commit
0cd25c250d
1 changed files with 1 additions and 1 deletions
|
@ -6284,7 +6284,7 @@ async def model_info_v2(
|
|||
raise HTTPException(
|
||||
status_code=500,
|
||||
detail={
|
||||
"error": f"Invalid llm model list. llm_model_list={llm_model_list}"
|
||||
"error": f"No model list passed, models={llm_model_list}. You can add a model through the config.yaml or on the LiteLLM Admin UI."
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue