cleanup total_slots return value in /props endpoint
This commit is contained in:
parent
034403de71
commit
4ff37ea41f
1 changed files with 2 additions and 2 deletions
|
@ -432,7 +432,6 @@ struct llama_server_context
|
|||
}
|
||||
|
||||
default_generation_settings_for_props = get_formated_generation(slots.front());
|
||||
default_generation_settings_for_props["num_slots"] = params.n_parallel;
|
||||
default_generation_settings_for_props["seed"] = -1;
|
||||
|
||||
batch = llama_batch_init(n_ctx, 0, params.n_parallel);
|
||||
|
@ -2620,7 +2619,8 @@ int main(int argc, char **argv)
|
|||
json data = {
|
||||
{ "user_name", llama.name_user.c_str() },
|
||||
{ "assistant_name", llama.name_assistant.c_str() },
|
||||
{ "default_generation_settings", llama.default_generation_settings_for_props }
|
||||
{ "default_generation_settings", llama.default_generation_settings_for_props },
|
||||
{ "total_slots", llama.params.n_parallel }
|
||||
};
|
||||
res.set_content(data.dump(), "application/json; charset=utf-8");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue