fix: /samples超时从15s增至30s,同步.env模型名
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled

This commit is contained in:
selfrelease
2026-08-31 17:31:52 +08:00
parent 5f565f4dff
commit 798bb40885
+1 -1
View File
@@ -490,7 +490,7 @@ def generate_samples(req: SampleRequest):
[{"role": "system", "content": "你是问题生成助手,只返回 JSON 数组。"}, [{"role": "system", "content": "你是问题生成助手,只返回 JSON 数组。"},
{"role": "user", "content": prompt}], {"role": "user", "content": prompt}],
temperature=0.8, temperature=0.8,
timeout=15, timeout=30,
) )
# 解析 JSON # 解析 JSON
answer = answer.strip() answer = answer.strip()