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

Method handle_generic_run

app/server/runtime.cpp:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686 request.text_input = engine::runtime::Transcript{
687 engine::io::json::require_string(body, "input"),
688 engine::io::json::optional_string(body, "language", ""),
689 };
690
691 request.options = options_from_object(body.find("options"));
692 add_option_from_json(request.options, body, "seed", "seed");
693 add_option_from_json(request.options, body, "temperature", "temperature");
694 add_option_from_json(request.options, body, "top_k", "top_k");
695 add_option_from_json(request.options, body, "top_p", "top_p");
696 add_option_from_json(request.options, body, "max_tokens", "max_tokens");
697 add_option_from_json(request.options, body, "max_steps", "max_steps");
698 add_option_from_json(request.options, body, "repetition_penalty", "repetition_penalty");
699 add_option_from_json(request.options, body, "guidance_scale", "guidance_scale");
700 add_option_from_json(request.options, body, "num_inference_steps", "num_inference_steps");

Callers

nothing calls this directly

Calls 5

parseFunction · 0.85
build_request_from_jsonFunction · 0.85
json_responseFunction · 0.85
task_result_jsonFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected