Sfoglia il codice sorgente

chore: auto bump version and changelog [skip ci]

iwt 1 mese fa
parent
commit
ed18ee7426

+ 1 - 1
cfc-langgraph/Dockerfile

@@ -27,7 +27,7 @@ CMD ["python3", "-m", "gunicorn", "app.main:app", \
      "--worker-class", "uvicorn.workers.UvicornWorker", \
      "--bind", "0.0.0.0:9000", \
      "--workers", "2", \
-     "--timeout", "60", \
+     "--timeout", "300", \
      "--keep-alive", "10", \
      "--access-logfile", "-", \
      "--error-logfile", "-"]

+ 4 - 0
cfc-langgraph/src/llm/client.py

@@ -4,9 +4,13 @@ from langchain_openai import ChatOpenAI
 
 def get_llm() -> ChatOpenAI:
     # 优先 LLM_* 系列(与 .env.production 一致),兼容 OPENAI_* 系列
+    # timeout=180: LLM 推理生成 8-12 题问卷可达 30-60s,默认 600s 无意义,
+    #   显式收紧避免异常场景挂死 worker;max_retries=1 限制失败重试叠加耗时
     return ChatOpenAI(
         model=os.getenv("LLM_MODEL", os.getenv("OPENAI_MODEL", "gpt-4o-mini")),
         api_key=os.getenv("LLM_API_KEY", os.getenv("OPENAI_API_KEY", "")),
         base_url=os.getenv("LLM_BASE_URL", os.getenv("OPENAI_BASE_URL", "https://api.openai.com/v1")),
         temperature=0.7,
+        timeout=180,
+        max_retries=1,
     )

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-7077cbabcdd903bc57eec4e1f6a6f10087886be6
+b846acb2deff5ab89a6f12559ec7173b6ace5d60

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.801",
+  "version": "1.0.802",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.801",
+      "version": "1.0.802",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.802",
+  "version": "1.0.803",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 6 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,12 @@
 
 ---
 
+## v1.0.803 (2026-08-05)
+
+### 文档
+- 库存管理设计文档(入库单+流水+盘点+预警+套餐拆库存)
+
+
 ## v1.0.802 (2026-08-05)
 
 ### Bug 修复

+ 7 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.802
+> 当前版本: v1.0.803
 
 ## 历史版本
 
@@ -8,6 +8,12 @@
 
 ---
 
+## v1.0.803 (2026-08-05)
+
+### 文档
+- 库存管理设计文档(入库单+流水+盘点+预警+套餐拆库存)
+
+
 ## v1.0.802 (2026-08-05)
 
 ### Bug 修复