Restrict the AI tab to HOST1 — the only node with the GPU, Ollama and the index
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
// api/ai.php, receives a token, and polls until the job reaches done or error. That keeps
|
||||
// the api layer on one response convention; see api/ai.php for why SSE was declined.
|
||||
//
|
||||
// The tab is only reachable when AI_ENABLED is true. Varaverk.page omits it from the tab
|
||||
// list and rejects it server-side, and api/ai.php refuses ask independently — hiding a link
|
||||
// is not access control.
|
||||
// The tab is only reachable on HOST1, and only when AI_ENABLED is true. Varaverk.page omits
|
||||
// it from the tab list and rejects it server-side, and api/ai.php refuses every action on
|
||||
// the same two conditions independently — hiding a link is not access control. HOST1 is the
|
||||
// node with the GPU, the Ollama process and the index; include/ai.php reads only the local
|
||||
// {HOST}_OLLAMA_URL, so the tab could not function anywhere else regardless.
|
||||
//
|
||||
// DESIGN PRINCIPLES
|
||||
// The banner leads with offload, not with size.
|
||||
|
||||
Reference in New Issue
Block a user