Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(frontend): apply default context template when switching to quick-answer mode

helloandyzhangaf2f55c29fb3
diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vue
index e8358aa74..cd55ddb0f 100644
--- a/frontend/src/views/agent/AgentEditorModal.vue
+++ b/frontend/src/views/agent/AgentEditorModal.vue
@@ -1666,7 +1666,7 @@ const defaultFormData = {
// 基础设置
agent_mode: 'smart-reasoning' as 'quick-answer' | 'smart-reasoning',
system_prompt: '',
- context_template: '{{query}}',
+ context_template: '',
// 模型设置
model_id: '',
rerank_model_id: '',