Files
DeepTutor/web/features/runtime-status/api.ts
Bingxi Zhao (Frank) 6e6e56aedb release: v1.6.3
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.

Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00

16 lines
452 B
TypeScript

import { requestJson } from "@/shared/api/client";
import { parseRuntimeStatus, type RuntimeStatusModel } from "./model";
export const RUNTIME_STATUS_PATH = "/api/system/runtime";
export async function fetchRuntimeStatus(
signal?: AbortSignal,
): Promise<RuntimeStatusModel> {
const payload = await requestJson<unknown>(RUNTIME_STATUS_PATH, {
cache: "no-store",
signal,
scope: "runtime",
});
return parseRuntimeStatus(payload);
}