MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / handle_models

Method handle_models

src/server/rest_handler.cpp:884–894  ·  view source on GitHub ↗

@brief Handle the models request @param request the request @param send_response the send response @param send_streaming_response the send streaming response

Source from the content-addressed store, hash-verified

882///@param send_response the send response
883///@param send_streaming_response the send streaming response
884void RestHandler::handle_models(const json& request,
885 std::function<void(const json&)> send_response,
886 StreamResponseCallback send_streaming_response) {
887 try {
888 json models = supported_models.get_all_models_ollama();
889 send_response(models);
890 } catch (const std::exception& e) {
891 json error_response = {{"error", e.what()}};
892 send_response(error_response);
893 }
894}
895
896///@brief Handle the version request
897///@param request the request

Callers 1

create_lm_serverFunction · 0.80

Calls 1

get_all_models_ollamaMethod · 0.80

Tested by

no test coverage detected