We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d513eb8 commit c977674Copy full SHA for c977674
1 file changed
backend/open_webui/main.py
@@ -1732,8 +1732,8 @@ async def chat_completion(
1732
}
1733
1734
# 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")
+ if model_info and model_info.base_model_id:
+ base_model_id = model_info.base_model_id
1737
if base_model_id not in request.app.state.MODELS:
1738
if ENABLE_CUSTOM_MODEL_FALLBACK:
1739
default_models = (
0 commit comments