MCPcopy Create free account
hub / github.com/acking-you/static_flow / fetch_admin_gpt2api_rs_version

Function fetch_admin_gpt2api_rs_version

crates/frontend/src/api.rs:2697–2707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2695}
2696
2697pub 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
2709pub async fn fetch_admin_gpt2api_rs_models() -> Result<serde_json::Value, String> {
2710 #[cfg(feature = "mock")]

Callers 1

admin_gpt2api_rs_pageFunction · 0.85

Calls 1

get_admin_gpt2api_rsFunction · 0.85

Tested by

no test coverage detected