@brief Handle the version request @param request the request @param send_response the send response @param send_streaming_response the send streaming response
| 898 | ///@param send_response the send response |
| 899 | ///@param send_streaming_response the send streaming response |
| 900 | void RestHandler::handle_version(const json& request, |
| 901 | std::function<void(const json&)> send_response, |
| 902 | StreamResponseCallback send_streaming_response) { |
| 903 | std::string version = __FLM_VERSION__; |
| 904 | |
| 905 | json response = {{"version", version}}; |
| 906 | send_response(response); |
| 907 | } |
| 908 | |
| 909 | ///@brief Handle the models request (open ai) |
| 910 | ///@param request the request |