mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-19 01:04:55 +02:00
revert redundant changes
This commit is contained in:
@@ -82,6 +82,10 @@ common_json_value::common_json_value(const char * val) {
|
||||
common_json_value::common_json_value(const common_json & val) :
|
||||
type(VAL_JSON), val_json(std::make_shared<common_json>(val)) {}
|
||||
|
||||
common_json_value::common_json_value(const std::map<std::string, std::string> & vals) : type(VAL_JSON) {
|
||||
val_json = std::make_shared<common_json>(common_json_from_raw(ordered_json(vals)));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
common_json_value::common_json_value(const std::vector<T> & vals) : type(VAL_JSON) {
|
||||
common_json out = common_json::array();
|
||||
|
||||
Reference in New Issue
Block a user