diff --git a/config.lua b/config.lua index 70637b1..e6b3a66 100644 --- a/config.lua +++ b/config.lua @@ -1,26 +1,31 @@ -- config.lua — model registry, routing rules, user preferences. -- Loaded with dofile() at startup; returns a plain Lua table. -- See docs/PHASE0.md §10 for resolution order and full schema. +-- +-- Per issue #12: hossenfelder is the canonical single-URL broker. It does +-- model-aware routing server-side (local models on boltzmann; cloud routes +-- through OpenRouter using its own bearer auth — no client-side key here). +-- Discovery: GET http://hossenfelder.fritz.box:8082/v1/models. + +local HOSSENFELDER = "http://hossenfelder.fritz.box:8082" return { default_model = "fast", models = { fast = { - endpoint = "http://dirac.fritz.box:8081", - model = "qwen-coder-7b-snappy-8k", + endpoint = HOSSENFELDER, + model = "qwen2.5-coder-1.5b-q4_k_m.gguf", temperature = 0.2, }, deep = { - endpoint = "http://dirac.fritz.box:8080", - model = "qwen-coder-7b-32k", + endpoint = HOSSENFELDER, + model = "mistral-nemo-12b-instruct", temperature = 0.1, }, cloud = { - endpoint = "https://hossenfelder.fritz.box:8082", + endpoint = HOSSENFELDER, model = "anthropic/claude-haiku-4.5", - -- Hossenfelder forwards to OpenRouter using its own key from - -- /etc/conf.d/llm-proxy on the LXC; no client-side key needed. temperature = 0.2, }, },