()
| 2695 | } |
| 2696 | |
| 2697 | pub async fn fetch_admin_gpt2api_rs_version() -> Result<serde_json::Value, String> { |
| 2698 | #[cfg(feature = "mock")] |
| 2699 | { |
| 2700 | Ok(serde_json::json!({ "version": "0.1.0" })) |
| 2701 | } |
| 2702 | |
| 2703 | #[cfg(not(feature = "mock"))] |
| 2704 | { |
| 2705 | get_admin_gpt2api_rs("/version").await |
| 2706 | } |
| 2707 | } |
| 2708 | |
| 2709 | pub async fn fetch_admin_gpt2api_rs_models() -> Result<serde_json::Value, String> { |
| 2710 | #[cfg(feature = "mock")] |
no test coverage detected