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

Function fetch_admin_gpt2api_rs_models

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

Source from the content-addressed store, hash-verified

2707}
2708
2709pub 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
2721pub async fn post_admin_gpt2api_rs_login() -> Result<serde_json::Value, String> {
2722 #[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