mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:29:49 +08:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
import type { RuntimeStatus } from "@/contracts/generated/turn-protocol";
|
|
|
|
import { requestJson } from "./client";
|
|
|
|
export function fetchRuntimeStatus(signal?: AbortSignal): Promise<RuntimeStatus> {
|
|
return requestJson<RuntimeStatus>("/api/v1/system/runtime", {
|
|
cache: "no-store",
|
|
signal,
|
|
scope: "runtime",
|
|
});
|
|
}
|