mirror of
https://github.com/open-webui/open-webui
synced 2025-05-22 05:53:20 +00:00
Update Ollama request option list with full supported options
See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8 This adds the full suite of supported Ollama options.
This commit is contained in:
parent
3f3a5bb0ab
commit
cee08e316d
@ -76,14 +76,26 @@ def apply_model_params_to_body_ollama(params: dict, form_data: dict) -> dict:
|
|||||||
"num_ctx",
|
"num_ctx",
|
||||||
"num_batch",
|
"num_batch",
|
||||||
"num_keep",
|
"num_keep",
|
||||||
|
"num_predict",
|
||||||
"repeat_last_n",
|
"repeat_last_n",
|
||||||
"tfs_z",
|
"tfs_z",
|
||||||
"top_k",
|
"top_k",
|
||||||
"min_p",
|
"min_p",
|
||||||
|
"typical_p",
|
||||||
|
"repeat_penalty",
|
||||||
|
"presence_penalty",
|
||||||
|
"frequency_penalty",
|
||||||
|
"penalize_newline",
|
||||||
|
"stop",
|
||||||
|
"numa",
|
||||||
|
"num_gpu",
|
||||||
|
"main_gpu",
|
||||||
|
"low_vram",
|
||||||
|
"vocab_only",
|
||||||
"use_mmap",
|
"use_mmap",
|
||||||
"use_mlock",
|
"use_mlock",
|
||||||
"num_thread",
|
"num_thread",
|
||||||
"num_gpu",
|
|
||||||
]
|
]
|
||||||
mappings = {i: lambda x: x for i in opts}
|
mappings = {i: lambda x: x for i in opts}
|
||||||
form_data = apply_model_params_to_body(params, form_data, mappings)
|
form_data = apply_model_params_to_body(params, form_data, mappings)
|
||||||
|
Loading…
Reference in New Issue
Block a user