mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
docs: what binds where, what the proxy refuses, and what the cockpit really has
Checked against the code at 9a11cea and, for exposure, against the reference box
(engine on 127.0.0.1:30000, /metrics 200 with no key on :30000 and :30001,
/v1/models 401).
- DESIGN.md: the cockpit is installed by default since v1.12 and binds the
tailnet address on a first install, not "opt-in, loopback".
- SECURITY.md, README, ARCHITECTURE.md, docs/operations.md: the engine is on
loopback since v1.17, run.sh and ENGINE_BIND=0.0.0.0 are the two paths that
put it on the network; the proxy has optional TLS and per-client identity
since v6.16; /metrics is read through :30001, needs no key, and the image
lane exports none; the flash lane's proxy, not the lane, is on every
interface.
- docs/clients.md: no lane truncates; a prompt past the pool share or the
flash ceiling is a 400 context_too_long, a 413 is only the body cap.
- docs/context-1m.md: pools measured 832,993 to 922,094 over sixteen boots,
the static 1m pair's worst case is 923,863 (one agent step counted), a
native re-install keeps the proxy.
- README: disk needs are the preflight's, per disk and summed for one disk;
the one-liner serves 1M; the Operations code block is closed (it swallowed
the next heading); the Logs and Setup rows list what the tabs do.
- docs/cockpit.md and install.sh: no bench job, canary battery, key panel or
Benchmarks tab; reclaim commands come from ./uninstall.sh, not --list.
- docs/opencode.md, docs/clients.md: the variants are lean, low, medium and
xhigh, lean being the default.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9a11ceadd8
commit
0942e4f46c
10 files changed
+127
-80
No files matched your search
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
What the installer writes for [opencode](https://opencode.ai), why each piece is there, and how to opt out. Moved out of the README in v1.14.2.
|
||||
|
||||
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed engine (`qwen38` for the 27B pair, `flashnext` for flash), each with `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the template's own default, xhigh), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
|
||||
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed engine (`qwen38` for the 27B pair, `flashnext` for flash), each with `lean` / `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the patched template's default, `lean`, or Qwen's `xhigh` on a box installed with `LEAN_DEFAULT=0`), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
|
||||
|
||||
A box with no opencode config of its own gets this one as `~/.config/opencode/opencode.json`
|
||||
(since v1.18.4: before, it was printed as a `cp` command, and a first install left opencode,
|
||||
@@ -69,7 +69,7 @@ What the shipped config gets right for you:
|
||||
|
||||
1. **The hidden 32K output cap**: opencode sends `max_tokens = min(limit.output, OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX or 32000)`. Without that env var, a long thinking phase hits 32000 tokens, the turn ends silently (`finish_reason: length`, no text, no tool call) and you have to re-prompt. The installer ships an **`oc` launcher** (`~/.local/bin/oc`, skipped if an unrelated `oc` binary exists) that exports the right value and execs `opencode --yolo`: launch with `oc` instead of `opencode` and the cap sits above every output limit this repo declares, on every target and in either context mode. It is deliberately a ceiling rather than the installed target's own number, because `limit.output` is what follows a model switch: a ceiling copied from the installed target survives the switch and cuts the next lane's turn in the same silence (`./oc-limits.sh --max-out` is where both installers read it). Note that `--yolo` auto-approves every tool action (how the reference box runs); remove it from the launcher file if you prefer per-action prompts.
|
||||
2. **Limits that can never 400**: the server rejects any request where `input + max_tokens` exceeds the window (no clamping), and the prompt opencode sends can reach its compaction point (`limit.input` minus 20,000) plus one agent step (up to 43,863 tokens measured on this box). So the config ships `context/input 173000, output 64000` in native mode (173,000 - 20,000 + 43,863 + 64,000 = 260,863, under 262,144, whether the 32K cap is lifted or not), `205000/32000` on the flash lane, and `700000/200000` in 1m mode as a starting pair. Until v1.18.7 the native pair was 194048/64000 and the flash one 225000/32000: both fitted a prompt of exactly `context`, not the one a large step brings past compaction, so a request in that band got a 400 that opencode then compacted on. The 1m pair is a starting pair, which the installer then fits to the pool the boot actually got (`oc-fit-limits.py`, after step 9): the pool changes from boot to boot (832,993 to 922,094 tokens over sixteen 27B boots on the reference box), and that pair does not fit the smaller ones. Since v1.18.2 the cockpit does the same fit by itself after a switch and a Start. Both fits hold the same window rule, and on a 262,144 window they never go above the lane's pair above (v1.18.7).
|
||||
3. **Reasoning-effort variants**: the generated config declares `medium` and `low` variants (ctrl+t in the TUI); the default is the model's `xhigh`. This works because the patched template accepts and maps effort tiers (`max`/`high` → `xhigh`, `minimal` → `low`, [contributed by helge](https://forums.developer.nvidia.com/t/380257/10)); any client sending an unmapped tier would get a 500 on the stock template.
|
||||
3. **Reasoning-effort variants**: the generated config declares `lean`, `low`, `medium` and `xhigh` variants (ctrl+t in the TUI), `lean` first because it is what a turn that picks none gets: the patched template's default since v1.13, measured in [LEAN.md](../LEAN.md) (`LEAN_DEFAULT=0 ./install.sh` keeps Qwen's `xhigh` as the default and still offers `lean`). This works because the patched template accepts `lean` and maps other clients' effort tiers (`max`/`high` → `xhigh`, `minimal` → `low`, [contributed by helge](https://forums.developer.nvidia.com/t/380257/10)); any client sending an unmapped tier would get a 500 on the stock template.
|
||||
4. **Mid-conversation system messages**: some agent clients inject system messages after turn 1; the stock template raises `System message must be at the beginning`. Patched to render them as `<system-reminder>` blocks.
|
||||
5. **Vision declared**: `attachment` + `modalities` are set, so image attachments and on-disk image reads work end to end (the model is natively multimodal).
|
||||
|
||||
|
||||
Reference in new issue
Block a user