ai:demo:ai-diagnosis
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
ai:demo:ai-diagnosis [2025/05/08 09:42] – zhangming | ai:demo:ai-diagnosis [2025/05/09 07:37] (当前版本) – zhangming | ||
---|---|---|---|
行 325: | 行 325: | ||
<option value=" | <option value=" | ||
<option value=" | <option value=" | ||
- | <option value=" | + | <option value=" |
+ | <option value=" | ||
</ | </ | ||
< | < | ||
- | <option value=" | + | <option value=" |
</ | </ | ||
</ | </ | ||
行 345: | 行 346: | ||
<span class=" | <span class=" | ||
</ | </ | ||
+ | </ | ||
+ | <!-- 添加RAG不可用提示 --> | ||
+ | <div id=" | ||
+ | ⚠️ RAG不可用(当前模型不支持) | ||
</ | </ | ||
</ | </ | ||
行 505: | 行 510: | ||
updateDiseases([]); | updateDiseases([]); | ||
+ | |||
+ | // 添加模型选择变化监听 | ||
+ | document.getElementById(' | ||
+ | const selectedOption = this.options[this.selectedIndex]; | ||
+ | const ragToggle = document.getElementById(' | ||
+ | const ragWarning = document.getElementById(' | ||
+ | | ||
+ | // 检查是否禁用RAG | ||
+ | const disableRAG = selectedOption.dataset.disableRag === ' | ||
+ | | ||
+ | if (disableRAG) { | ||
+ | ragToggle.checked = false; | ||
+ | ragToggle.disabled = true; // 禁用开关 | ||
+ | ragWarning.style.display = ' | ||
+ | } else { | ||
+ | ragToggle.disabled = false; // 启用开关 | ||
+ | ragWarning.style.display = ' | ||
+ | } | ||
+ | }); | ||
// 提示气泡处理 | // 提示气泡处理 | ||
document.addEventListener(' | document.addEventListener(' | ||
- | | + | // 触发模型选择变化事件 |
- | + | document.getElementById(' | |
- | tooltipTriggers.forEach(trigger => { | + | |
- | const tooltipText = trigger.getAttribute(' | + | |
- | const tooltipContent = document.createElement(' | + | |
- | tooltipContent.className = ' | + | tooltipTriggers.forEach(trigger => { |
- | tooltipContent.textContent = tooltipText; | + | const tooltipText = trigger.getAttribute(' |
- | trigger.appendChild(tooltipContent); | + | const tooltipContent = document.createElement(' |
- | }); | + | tooltipContent.className = ' |
+ | tooltipContent.textContent = tooltipText; | ||
+ | trigger.appendChild(tooltipContent); | ||
+ | }); | ||
}); | }); | ||
</ | </ | ||
</ | </ | ||
</ | </ |
ai/demo/ai-diagnosis.1746697364.txt.gz · 最后更改: 2025/05/08 09:42 由 zhangming