GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — commitwork/schema/llm-hosts.schema.json at main · Portll/commitwork Expand file tree/ Copy pathllm-hosts.schema.jsonMore file actions 107 lines (107 loc) · 6.78 KB / Copy pathllm-hosts.schema.jsonFile metadata and controls107 lines (107 loc) · 6.78 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://commitwork.online/schema/llm-hosts.schema.json", "title": "Declared local LLM hosts", "description": "The local inference servers this fleet will talk to, declared once for memory-layer, commitwork/admin and overwatch-layer. Every host speaks the OpenAI HTTP API, which is what makes this a declaration rather than a set of adapters — a new host is a row, not a struct. The required fields are the ones that stop a consumer from asserting something it did not measure: `licence` and `openSource` so an open-tooling claim about this fleet can be checked rather than repeated, `capabilities` so nothing assumes /v1/embeddings exists on a chat-only server, and `portIsShared` because llama.cpp, llamafile, LocalAI and mlx-lm all default to 8080 and a consumer that probes 8080 and reports a host name is naming something the probe cannot distinguish. Written without $ref/definitions on purpose: monitor/registry.mjs implements neither and refuses a schema that uses them, so sharing subschemas would silently disable this gate rather than tidy it.", "type": "object", "required": ["version", "default", "probeOrder", "hosts"], "additionalProperties": false, "properties": { "version": { "type": "integer", "minimum": 1 }, "note": { "type": "string" }, "principle": { "type": "string" }, "detection": { "type": "string", "description": "Why a successful probe does not identify a host. Prose, but load-bearing prose: it is the reason `portIsShared` exists." }, "default": { "type": "string", "description": "The host named in documentation and used when nothing is detected and nothing is configured. Distinct from the head of probeOrder on purpose — see defaultRationale." }, "defaultRationale": { "type": "string" }, "probeOrder": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Detection order. Ordered by how unambiguous a hit is, NOT by preference, so that the first answer is the most trustworthy one rather than the most wanted one." }, "probeOrderRationale": { "type": "string" }, "enabledByDefault": { "type": "boolean", "description": "Whether a declared runner is live without the operator turning it on. False, and the reason is in enabledByDefaultRationale and the per-host exposureNote fields. Declared rather than hardcoded so the security posture is a readable fact and flipping it is a visible edit." }, "enabledByDefaultRationale": { "type": "string" }, "licenceNote": { "type": "string" }, "contextNote": { "type": "string", "description": "Records a protection that removing ollama cost: per-request num_ctx/keep_alive have no OpenAI equivalent, so KV-cache sizing is now the operator's server launch flag and nothing here enforces it. Kept as a field rather than a comment so it survives an edit that tidies prose." }, "portDefaultsNote": { "type": "string" }, "removed": { "type": "array", "description": "Hosts deliberately dropped. Kept so 'why is X not supported' has a dated answer instead of a silence that reads like an oversight.", "items": { "type": "object", "required": ["id", "removedOn", "reason"], "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[a-z0-9]+([.-][a-z0-9]+)*$" }, "removedOn": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "reason": { "type": "string", "minLength": 20 }, "note": { "type": "string" } } } }, "hosts": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["id", "label", "baseUrl", "api", "licence", "openSource", "portIsShared", "capabilities", "bindsAllInterfacesByDefault", "fetchesModelsOnDemand"], "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[a-z0-9]+([.-][a-z0-9]+)*$" }, "label": { "type": "string", "minLength": 2 }, "baseUrl": { "type": "string", "pattern": "^https?://", "description": "The project's documented default. Every consumer must allow an override; a wrong value here costs a config line and is not a correctness property." }, "api": { "enum": ["openai"], "description": "Deliberately single-valued. A host needing another request shape does not belong in this file: carrying one makes every consumer branch on engine type forever. Widening this enum is the decision to reintroduce that branch, so it should be hard rather than incidental." }, "licence": { "type": "string", "minLength": 3, "description": "As stated upstream. Recorded so an open-source claim about this fleet is checkable. 'proprietary' is a permitted and honest value." }, "openSource": { "type": "boolean", "description": "Its own field rather than derived from `licence`, so a reader filtering for open tooling does not have to parse licence strings and guess." }, "portIsShared": { "type": "boolean", "description": "True when another host in this file defaults to the same port. A consumer probing a shared port MUST report the host as unidentified: the protocol is identical, so nothing about the response distinguishes them." }, "capabilities": { "type": "array", "minItems": 1, "items": { "enum": ["chat", "embeddings"] }, "description": "Declared narrow on purpose. mlx-lm serves chat and not embeddings; a consumer that assumes /v1/embeddings there gets a 404. A declared capability is still a claim about the server's DEFAULT configuration and must be probed before use — llama-server only serves embeddings when started with --embedding." }, "bindsAllInterfacesByDefault": { "type": "boolean", "description": "REQUIRED, because it is the fact that decides whether starting this server is a local act or a network one. localai, vllm and sglang bind 0.0.0.0 out of the box, so launching one publishes an unauthenticated generation endpoint to the LAN. A host added without answering this would be enabled on the same footing as a loopback-only one." }, "fetchesModelsOnDemand": { "type": "boolean", "description": "REQUIRED. True when a request naming an unknown model id can cause a download. It turns a generation request into an egress event, which is a different thing to authorise." }, "exposureNote": { "type": "string" }, "note": { "type": "string" } } } } } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |