Skip to content

Commit c977674

Browse files
committed
refac/fix
1 parent d513eb8 commit c977674

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/open_webui/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,8 @@ async def chat_completion(
17321732
}
17331733

17341734
# Check base model existence for custom models
1735-
if model_info_params.get("base_model_id"):
1736-
base_model_id = model_info_params.get("base_model_id")
1735+
if model_info and model_info.base_model_id:
1736+
base_model_id = model_info.base_model_id
17371737
if base_model_id not in request.app.state.MODELS:
17381738
if ENABLE_CUSTOM_MODEL_FALLBACK:
17391739
default_models = (

0 commit comments

Comments
 (0)