v0.17.1: fix msg-toolbar visibility, add follow_redirects to SearXNG query

This commit is contained in:
gramps
2026-07-13 08:15:57 -07:00
parent f16bef4671
commit dcb73945e0
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import logging
log = logging.getLogger("caic") log = logging.getLogger("caic")
VERSION = "v0.17.0" VERSION = "v0.17.1"
OLLAMA_BASE = os.environ.get("OLLAMA_BASE", "http://localhost:11434") OLLAMA_BASE = os.environ.get("OLLAMA_BASE", "http://localhost:11434")
LLAMA_SERVER_BASE = os.environ.get("LLAMA_SERVER_BASE", "http://192.168.50.108:8081") LLAMA_SERVER_BASE = os.environ.get("LLAMA_SERVER_BASE", "http://192.168.50.108:8081")
SEARXNG_BASE = "http://localhost:8888" SEARXNG_BASE = "http://localhost:8888"
+1
View File
@@ -117,6 +117,7 @@ async def query_searxng(query: str, max_results: int = 5) -> list:
f"{SEARXNG_BASE}/search", f"{SEARXNG_BASE}/search",
params={"q": query, "format": "json", "categories": "general"}, params={"q": query, "format": "json", "categories": "general"},
timeout=10.0, timeout=10.0,
follow_redirects=True,
) )
if resp.status_code == 200: if resp.status_code == 200:
data = resp.json() data = resp.json()
+1 -1
View File
@@ -175,7 +175,7 @@ body { font-family: var(--font-body); background: var(--bg-primary); color: var(
.tps-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-family:var(--font-mono); font-size:10px; margin-left:8px; background:rgba(72,181,224,0.15); border:1px solid rgba(72,181,224,0.3); color:var(--accent); } .tps-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-family:var(--font-mono); font-size:10px; margin-left:8px; background:rgba(72,181,224,0.15); border:1px solid rgba(72,181,224,0.3); color:var(--accent); }
.tok-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-family:var(--font-mono); font-size:10px; margin-left:8px; background:rgba(52,152,219,0.15); border:1px solid rgba(52,152,219,0.3); color:#3498db; } .tok-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-family:var(--font-mono); font-size:10px; margin-left:8px; background:rgba(52,152,219,0.15); border:1px solid rgba(52,152,219,0.3); color:#3498db; }
.msg-toolbar { display:flex; gap:2px; margin-top:8px; opacity:0; transition:opacity 0.15s; align-items:center; } .msg-toolbar { display:flex; gap:2px; margin-top:8px; opacity:0.35; transition:opacity 0.15s; align-items:center; }
.message .content:hover .msg-toolbar { opacity:1; } .message .content:hover .msg-toolbar { opacity:1; }
.msg-toolbar button { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:4px 6px; border-radius:4px; font-size:13px; line-height:1; display:flex; align-items:center; gap:4px; transition:color 0.15s,background 0.15s; } .msg-toolbar button { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:4px 6px; border-radius:4px; font-size:13px; line-height:1; display:flex; align-items:center; gap:4px; transition:color 0.15s,background 0.15s; }
.msg-toolbar button:hover { color:var(--text-primary); background:var(--bg-tertiary); } .msg-toolbar button:hover { color:var(--text-primary); background:var(--bg-tertiary); }