web: gate anonymous grounding behind a runtime feature flag (showcase-with-kill-switch) #191
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #177.
Anonymous chat sessions at helexa.ai currently offer the grounding tools unconditionally (
useChatsendsweb_search+read_pageon every request), buthelexa/small(Qwen3-1.7B) essentially never emits a tool call — so first-time visitors see no grounding capability at all. We may never get a second chance to impress that visitor.Decision: support anonymous web search deliberately, as a gated mechanism that can be turned off in seconds when abused:
[features] anon_web_searchin helexa-upstream config (defaulttrue), exposed on a public unauthenticatedGET /web/v1/features.anon_web_search = falsetohelexa-upstream.tomlon gallumbits + restart. No site rebuild, no nginx edit.Not a security boundary:
/tools/*stays per-IP rate-limited at the edge regardless of the flag; hard-off for the backends remains stopping the helexa-tools / SearXNG services.Known limitation, accepted for now: the anonymous tier model (1.7B) tool-calls unreliably, so the showcase is weak until a tool-capable small model serves the anon tier — tracked in the Gemma 4 small-models issue.