(err: impl std::fmt::Display)
| 1823 | } |
| 1824 | |
| 1825 | fn internal_error(err: impl std::fmt::Display) -> (StatusCode, Json<ErrorResponse>) { |
| 1826 | tracing::error!("gpt2api-rs internal error: {err}"); |
| 1827 | error_response(StatusCode::INTERNAL_SERVER_ERROR, "gpt2api-rs proxy failed".to_string()) |
| 1828 | } |
| 1829 | |
| 1830 | fn error_response( |
| 1831 | status: StatusCode, |
no test coverage detected