瀏覽代碼

chore: auto bump version and changelog [skip ci]

Xiaogang Liao 7 小時之前
父節點
當前提交
9080a46da3

+ 2 - 2
cfc-backend/src/main/java/com/etotem/cfc/service/AiGateway.java

@@ -179,8 +179,8 @@ public class AiGateway {
                                       Map<String, Object> inputs) {
         if (!enabled || isCircuitOpen()) return null;
 
-        // BASIC 配额检查(仅 BASIC 用户
-        if (userId != null) {
+        // BASIC 配额检查(仅对真实用户生效;userId=0 为系统级后台任务,如文章自动分类/打标,不受配额限制
+        if (userId != null && userId != 0L) {
             com.etotem.cfc.dto.QuotaConsumeResult quotaResult = basicQuotaService.consumeQuota(userId, "AI_CHAT");
             if (!quotaResult.isSuccess()) {
                 log.info("AI对话配额不足: userId={}, toast={}", userId, quotaResult.getToastMsg());

+ 1 - 1
cfc-backend/src/main/resources/application.yml

@@ -115,7 +115,7 @@ python:
   base-url: https://ai.etotem.com.cn
   timeout-ms: 15000
   # LLM 推理可达 30-60s(画像/问卷更长),read 超时必须覆盖推理耗时,connect 超时才用 timeout-ms
-  read-timeout-ms: 120000
+  read-timeout-ms: 300000   # menu/generate 等长推理任务可达 120s,5 分钟兜底
   circuit-breaker:
     failure-threshold: 3
     reset-timeout-ms: 30000

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-17a6dde352bcfb4f62a0a338e68eaa6e585cfaa4
+17a6dde352bcfb4f62a0a338e68eaa6e585cfaa4