mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Signed-off-by: Tyler Longwell <tlongwell@block.xyz> Co-authored-by: Michael Neale <michael.neale@gmail.com> Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz> Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
45 lines
1.2 KiB
Rust
45 lines
1.2 KiB
Rust
use tauri::State;
|
|
|
|
use crate::app_state::AppState;
|
|
|
|
type CmdResult<T> = Result<T, String>;
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_start_node(
|
|
_app: tauri::AppHandle,
|
|
_state: State<'_, AppState>,
|
|
_request: serde_json::Value,
|
|
) -> CmdResult<serde_json::Value> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_stop_node(
|
|
_app: tauri::AppHandle,
|
|
_state: State<'_, AppState>,
|
|
) -> CmdResult<serde_json::Value> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_node_status(_state: State<'_, AppState>) -> CmdResult<serde_json::Value> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_serving_usage(_state: State<'_, AppState>) -> CmdResult<serde_json::Value> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_installed_models(
|
|
_state: State<'_, AppState>,
|
|
) -> CmdResult<Vec<serde_json::Value>> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn mesh_model_catalog() -> CmdResult<serde_json::Value> {
|
|
Err("mesh-llm feature not enabled".to_string())
|
|
}
|