rm unused llama_param

This commit is contained in:
ochafik 2025-01-30 04:49:02 +00:00
parent 18450e690f
commit b831a6e0d3

View file

@ -625,7 +625,6 @@ static json oaicompat_completion_params_parse(
// Apply chat template to the list of messages // Apply chat template to the list of messages
if (use_jinja) { if (use_jinja) {
llama_params["tools"] = tools;
auto tool_choice = json_value(body, "tool_choice", std::string("auto")); auto tool_choice = json_value(body, "tool_choice", std::string("auto"));
if (tool_choice != "none" && tool_choice != "auto" && tool_choice != "required") { if (tool_choice != "none" && tool_choice != "auto" && tool_choice != "required") {
throw std::runtime_error("Invalid tool_choice: " + tool_choice); throw std::runtime_error("Invalid tool_choice: " + tool_choice);