Skip to content

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

refactor: 移除模型锁定逻辑允许自由切换

wizardchen8832d70e19b6
diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vue
index 0827f06f4..c5ecccf18 100644
--- a/frontend/src/components/Input-field.vue
+++ b/frontend/src/components/Input-field.vue
@@ -129,9 +129,9 @@ const agentModelId = computed(() => {
return currentAgentConfig.value?.model_id || null;
});
-// 模型选择是否被智能体锁定
+// 模型选择是否被智能体锁定 - 已移除锁定逻辑,允许用户自由切换模型
const isModelLockedByAgent = computed(() => {
- return hasAgentConfig.value && !!agentModelId.value;
+ return false;
});
// Mention related state