mirror of
https://github.com/block/buzz.git
synced 2026-11-16 06:11:34 +00:00
fix(desktop): shared-compute usability — share toggle, usage indicator, model resync (#2448)
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>
This commit is contained in:
@@ -52,6 +52,27 @@ export async function meshNodeStatus(): Promise<MeshNodeStatus> {
|
||||
return await invokeTauri<MeshNodeStatus>("mesh_node_status");
|
||||
}
|
||||
|
||||
/**
|
||||
* Host-side usage of the compute this machine is sharing. The
|
||||
* local/remote/endpoint attempt split distinguishes this machine's own agents
|
||||
* (local) from another member consuming this machine's compute (remote/endpoint).
|
||||
*/
|
||||
export type MeshServingUsage = {
|
||||
inflight: number;
|
||||
peakInflight: number;
|
||||
requestsServed: number;
|
||||
tokensServed: number;
|
||||
tokensPerSecond: number;
|
||||
localAttempts: number;
|
||||
remoteAttempts: number;
|
||||
endpointAttempts: number;
|
||||
peers: number;
|
||||
};
|
||||
|
||||
export async function meshServingUsage(): Promise<MeshServingUsage> {
|
||||
return await invokeTauri<MeshServingUsage>("mesh_serving_usage");
|
||||
}
|
||||
|
||||
export async function meshInstalledModels(): Promise<MeshModelOption[]> {
|
||||
return await invokeTauri<MeshModelOption[]>("mesh_installed_models");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user