Load server sampling parameters from the server context by default.

This commit is contained in:
HanClinto 2024-07-09 16:50:45 -04:00
parent fd560fe680
commit 6cfa080950

View file

@ -884,7 +884,8 @@ struct server_context {
bool launch_slot_with_task(server_slot & slot, const server_task & task) {
slot_params default_params;
llama_sampling_params default_sparams;
// Default sampling parameters are loaded from the server context unless overridden by individual requests
llama_sampling_params default_sparams = params.sparams;
auto & data = task.data;
if (data.count("__oaicompat") != 0) {