mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:19:26 +08:00
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
16 lines
452 B
TypeScript
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);
|
|
}
|