Merge remote-tracking branch 'origin/main' into codex/webui-segmented-transcript-store
This commit is contained in:
@@ -244,6 +244,26 @@ export async function fetchSettingsUsage(
|
||||
);
|
||||
}
|
||||
|
||||
export interface VersionCheckResult {
|
||||
updateAvailable: {
|
||||
currentVersion: string;
|
||||
latestVersion: string;
|
||||
pypiUrl?: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export async function checkVersion(
|
||||
token: string,
|
||||
base: string = "",
|
||||
): Promise<VersionCheckResult> {
|
||||
return request<VersionCheckResult>(
|
||||
`${base}/api/settings/version-check`,
|
||||
token,
|
||||
undefined,
|
||||
10_000,
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchWorkspaces(
|
||||
token: string,
|
||||
base: string = "",
|
||||
|
||||
Reference in New Issue
Block a user