[RAG] 全部LLM硬编码从deepseek-r1改为deepseek-v3;修复知识库问答source格式不匹配导致检索结果被丢弃

This commit is contained in:
2026-04-07 10:32:14 +08:00
parent 4e00a1b15e
commit a5110da4e8
12 changed files with 18 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ async def gen_title(
"content": "我们来玩成语接龙,我先来,生龙活虎"},
{"role": "assistant", "content": "虎头虎脑"}]]
),
model_name: Optional[str] = Body(LLM_MODELS[1], description="LLM 模型名称。"),
model_name: Optional[str] = Body(LLM_MODELS[0], description="LLM 模型名称。"),
):
"""
根据一轮对话历史生成简洁标题\n
@@ -32,7 +32,7 @@ async def gen_title(
if model_name == "R1-70B":
model_name = DEEPSEEK_MODELS[1]
elif model_name == "QIANWEN":
model_name = LLM_MODELS[1]
model_name = LLM_MODELS[0]
else:
model_name = model_name