Initial clean project import

This commit is contained in:
cat-shark
2026-06-19 18:41:41 +08:00
commit a13b804c7a
1306 changed files with 220568 additions and 0 deletions
+15
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;
},
};