feat(prediction): 新增 AI SoH 预测客户端

This commit is contained in:
2026-05-11 22:21:57 +08:00
parent c8ea9330e1
commit b11d37e9d8
2 changed files with 201 additions and 0 deletions
+3
View File
@@ -7,6 +7,9 @@ export const env = createEnv({
LOG_DB: z.stringbool().default(false),
LOG_FORMAT: z.enum(['pretty', 'json']).optional(),
LOG_LEVEL: z.enum(['trace', 'debug', 'info', 'warning', 'error', 'fatal']).default('info'),
SOH_PREDICTION_API_BASE_URL: z.url({ protocol: /^https?$/ }).optional(),
SOH_PREDICTION_CACHE_TTL_SECONDS: z.coerce.number().int().positive().default(86_400),
SOH_PREDICTION_TIMEOUT_MS: z.coerce.number().int().positive().default(10_000),
},
clientPrefix: 'VITE_',
client: {},