v2.3.5
This commit is contained in:
+15
-1
@@ -2876,17 +2876,22 @@
|
||||
<div style="border:1px solid var(--line);border-radius:12px;padding:12px">
|
||||
<div class="right-section-title" style="margin-bottom:8px">웹 검색</div>
|
||||
<label style="display:block;font-size:12px;color:var(--muted);margin-bottom:6px">검색 제공자</label>
|
||||
<select id="settings-provider" onchange="toggleOllamaModelRow(this.value)" style="width:100%;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:13px">
|
||||
<select id="settings-provider" onchange="toggleOllamaModelRow(this.value);toggleSearxngUrlRow(this.value)" style="width:100%;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:13px">
|
||||
<option value="ddg">DuckDuckGo</option>
|
||||
<option value="ollama">Ollama (모델 보조 검색)</option>
|
||||
<option value="tavily">Tavily</option>
|
||||
<option value="google">Google CSE</option>
|
||||
<option value="brave">Brave</option>
|
||||
<option value="searxng">SearXNG (셀프호스트)</option>
|
||||
</select>
|
||||
<div id="search-ollama-model-row" style="display:none;margin-top:8px">
|
||||
<label style="display:block;font-size:12px;color:var(--muted);margin-bottom:4px">Ollama 검색 모델</label>
|
||||
<input id="settings-search-ollama-model" type="text" placeholder="예: gemini-3-flash-preview:cloud" style="width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:12px;box-sizing:border-box">
|
||||
</div>
|
||||
<div id="search-searxng-url-row" style="display:none;margin-top:8px">
|
||||
<label style="display:block;font-size:12px;color:var(--muted);margin-bottom:4px">SearXNG 인스턴스 URL</label>
|
||||
<input id="settings-search-searxng-url" type="text" placeholder="예: http://127.0.0.1:8888" style="width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:12px;box-sizing:border-box">
|
||||
</div>
|
||||
<label style="display:block;font-size:12px;color:var(--muted);margin:10px 0 6px">검색 엄격도</label>
|
||||
<select id="settings-search-rigor" style="width:100%;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:13px">
|
||||
<option value="fast">빠름</option>
|
||||
@@ -5896,6 +5901,11 @@ function toggleOllamaModelRow(provider) {
|
||||
if (row) row.style.display = provider === 'ollama' ? 'block' : 'none';
|
||||
}
|
||||
|
||||
function toggleSearxngUrlRow(provider) {
|
||||
const row = document.getElementById('search-searxng-url-row');
|
||||
if (row) row.style.display = provider === 'searxng' ? 'block' : 'none';
|
||||
}
|
||||
|
||||
async function setQuickSearchRigor(level) {
|
||||
quickSearchRigor = level;
|
||||
updateQuickModeUI();
|
||||
@@ -6488,7 +6498,10 @@ async function openSettings(tab) {
|
||||
document.getElementById('settings-search-rigor').value = s.search_rigor || 'verified';
|
||||
if (document.getElementById('settings-search-ollama-model'))
|
||||
document.getElementById('settings-search-ollama-model').value = s.ollama_model || '';
|
||||
if (document.getElementById('settings-search-searxng-url'))
|
||||
document.getElementById('settings-search-searxng-url').value = s.searxng_url || '';
|
||||
toggleOllamaModelRow(s.preferred_provider);
|
||||
toggleSearxngUrlRow(s.preferred_provider);
|
||||
// Keys are loaded via the Credentials tab — not here
|
||||
} catch {}
|
||||
try {
|
||||
@@ -7220,6 +7233,7 @@ async function saveSettings() {
|
||||
google_cx: document.getElementById('cred-google-cx')?.value.trim() || '',
|
||||
brave_api_key: document.getElementById('cred-brave-key')?.value.trim() || '',
|
||||
ollama_model: document.getElementById('settings-search-ollama-model')?.value.trim() || '',
|
||||
searxng_url: document.getElementById('settings-search-searxng-url')?.value.trim() || '',
|
||||
};
|
||||
const policyPayload = {
|
||||
force_web_for_fresh: document.getElementById('settings-force-web-fresh').checked,
|
||||
|
||||
Reference in New Issue
Block a user