We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f08376 commit 19db873Copy full SHA for 19db873
1 file changed
backend/open_webui/main.py
@@ -1043,6 +1043,12 @@ async def chat_completion(
1043
**default_model_params,
1044
**(model_info.params.model_dump() if model_info and model_info.params else {}),
1045
}
1046
+ request_params = {key: value for key, value in (form_data.get('params') or {}).items() if value is not None}
1047
+ if model_info_params or request_params:
1048
+ form_data['params'] = {
1049
+ **model_info_params,
1050
+ **request_params,
1051
+ }
1052
1053
# Check base model existence for custom models
1054
if model_info and model_info.base_model_id:
0 commit comments