From 6eae8bf5c3f69958cf35e7d5aaed9f51096f2ea2 Mon Sep 17 00:00:00 2001 From: trollkotze Date: Tue, 26 Mar 2024 21:08:23 +0100 Subject: [PATCH] utils.hpp: make from_json utility for llama_control_vector_load_info static --- examples/server/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp index f73ec441f..79928264b 100644 --- a/examples/server/utils.hpp +++ b/examples/server/utils.hpp @@ -616,7 +616,7 @@ static json format_error_response(const std::string & message, const enum error_ }; } -void from_json(const json& j, llama_control_vector_load_info& l) { +static void from_json(const json& j, llama_control_vector_load_info& l) { j.at("strength").get_to(l.strength); j.at("fname").get_to(l.fname); }