mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac/fix
This commit is contained in:
parent
d513eb8c4d
commit
c97767424f
1 changed files with 2 additions and 2 deletions
|
|
@ -1732,8 +1732,8 @@ async def chat_completion(
|
|||
}
|
||||
|
||||
# Check base model existence for custom models
|
||||
if model_info_params.get("base_model_id"):
|
||||
base_model_id = model_info_params.get("base_model_id")
|
||||
if model_info and model_info.base_model_id:
|
||||
base_model_id = model_info.base_model_id
|
||||
if base_model_id not in request.app.state.MODELS:
|
||||
if ENABLE_CUSTOM_MODEL_FALLBACK:
|
||||
default_models = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue