MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / add_option_from_json

Function add_option_from_json

app/server/runtime.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::unordered_map<std::string, std::string> options_from_object(const Value * value) {
78 return minitts::cli::json_options_map(value);
79}
80
81void add_option_from_json(
82 std::unordered_map<std::string, std::string> & options,
83 const Value & object,
84 const std::string & field,
85 const std::string & option_key) {
86 const auto * value = object.find(field);
87 if (value != nullptr && !value->is_null()) {
88 options[option_key] = minitts::cli::json_option_string(*value);
89 }

Callers 1

build_speech_requestMethod · 0.85

Calls 3

json_option_stringFunction · 0.85
is_nullMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected