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:
Ishaan Jaff 2024-06-27 16:33:19 -07:00 committed by GitHub
commit 0cd25c250d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."
},
)