fix: /samples超时从15s增至30s,同步.env模型名
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user