()
| 2707 | } |
| 2708 | |
| 2709 | pub async fn fetch_admin_gpt2api_rs_models() -> Result<serde_json::Value, String> { |
| 2710 | #[cfg(feature = "mock")] |
| 2711 | { |
| 2712 | Ok(serde_json::json!({ "object": "list", "data": [] })) |
| 2713 | } |
| 2714 | |
| 2715 | #[cfg(not(feature = "mock"))] |
| 2716 | { |
| 2717 | get_admin_gpt2api_rs("/models").await |
| 2718 | } |
| 2719 | } |
| 2720 | |
| 2721 | pub async fn post_admin_gpt2api_rs_login() -> Result<serde_json::Value, String> { |
| 2722 | #[cfg(feature = "mock")] |
no test coverage detected