utils.hpp: make from_json utility for llama_control_vector_load_info static
This commit is contained in:
parent
2506fed8e8
commit
6eae8bf5c3
1 changed files with 1 additions and 1 deletions
|
@ -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("strength").get_to(l.strength);
|
||||||
j.at("fname").get_to(l.fname);
|
j.at("fname").get_to(l.fname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue