mirror of
https://github.com/open-webui/open-webui
synced 2024-11-23 00:27:40 +00:00
enh: min_p
This commit is contained in:
parent
13b757d847
commit
8fcb5cee66
@ -857,6 +857,12 @@ async def generate_chat_completion(
|
||||
):
|
||||
payload["options"]["top_p"] = model_info.params.get("top_p", None)
|
||||
|
||||
if (
|
||||
model_info.params.get("min_p", None)
|
||||
and payload["options"].get("min_p") is None
|
||||
):
|
||||
payload["options"]["min_p"] = model_info.params.get("min_p", None)
|
||||
|
||||
if (
|
||||
model_info.params.get("use_mmap", None)
|
||||
and payload["options"].get("use_mmap") is None
|
||||
|
Loading…
Reference in New Issue
Block a user