mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
deps(llama.cpp): update and adapt API changes (#2381)
deps(llama.cpp): update and rename function Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
21a12c2cdd
commit
3a9408363b
2 changed files with 3 additions and 3 deletions
|
@ -791,7 +791,7 @@ struct llama_server_context
|
|||
sampler_names.emplace_back(sampler_name);
|
||||
}
|
||||
}
|
||||
slot->sparams.samplers_sequence = sampler_types_from_names(sampler_names, false);
|
||||
slot->sparams.samplers_sequence = llama_sampling_types_from_names(sampler_names, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1146,7 +1146,7 @@ struct llama_server_context
|
|||
std::vector<std::string> samplers_sequence;
|
||||
for (const auto &sampler_type : slot.sparams.samplers_sequence)
|
||||
{
|
||||
samplers_sequence.emplace_back(sampler_type_to_name_string(sampler_type));
|
||||
samplers_sequence.emplace_back(llama_sampling_type_to_str(sampler_type));
|
||||
}
|
||||
|
||||
return json {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue