MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / res_err

Function res_err

tools/server/server-models.cpp:889–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887}
888
889static void res_err(std::unique_ptr<server_http_res> & res, const json & error_data) {
890 res->status = json_value(error_data, "code", 500);
891 res->data = safe_json_to_str({{ "error", error_data }});
892}
893
894static bool router_validate_model(std::string & name, server_models & models, bool models_autoload, std::unique_ptr<server_http_res> & res) {
895 if (name.empty()) {

Callers 2

router_validate_modelFunction · 0.85
init_routesMethod · 0.85

Calls 2

json_valueFunction · 0.85
safe_json_to_strFunction · 0.85

Tested by

no test coverage detected