Track bundled vendor runtime sources
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled

This commit is contained in:
2026-07-07 10:05:50 +08:00
parent fbe179ab53
commit 52636c91ae
2111 changed files with 1850012 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
import { t } from "../config/lang";
export const AigcServerUtil = {
errorDetect: (data: string): string | null => {
const errorMap = {
"torch.cuda.OutOfMemoryError": t("CUDA内存不足"),
};
for (const [key, value] of Object.entries(errorMap)) {
if (data.includes(key)) {
return value;
}
}
return null;
},
};