From 985d538a5fdb1b58d35621687313ed7d74d80288 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 17:28:27 +0200 Subject: cloud: the context size from the provider's /models Hetzner runs vLLM, whose /models reports max_model_len per model (262144); OpenRouter names it context_length. Read when the chat's model changes, as /props is for a local one, so the meter shows a cloud chat's fill and its attachment budget is half of what is free instead of a fixed 24000 characters. Image input already went through: a cloud model's inputs count as unknown. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 645fc87..a9bd59f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -59,6 +59,11 @@ socket (ask) ──> llama-server (LLM, tools) ──> socket (think, token, too - **Search** quotes the query as one FTS5 phrase with a prefix star. The self-check proves typed FTS syntax (`"`, `*`, `NOT`, `OR`, `)`) is matched as text and raises nothing. +- **Usage** (2026-10-23): `stream()` keeps each request's last `usage` + chunk (Hetzner sends running totals on every chunk) and `answer()` saves + them per turn in `turns.usage`, JSON `{ts, provider, model, rounds}`, + `provider` the cloud name or `local`. Read by llm-cost-dashboard's + `ingest/assistant_ingest.py`. Titles and transcriptions are not counted. ## Hardware @@ -284,7 +289,8 @@ and history were untouched. - `--cloud-models hetzner`: 4 ids in 1.2 s, including the pass prompt. - `models` listed the router's two and both configured cloud ones. - "Che tempo fa domani a Roma?": `weather` with `Rome,IT`, first token - 4.6 s, ctx 775 then 953, `max` 0. + 4.6 s, ctx 775 then 953, `max` 0 at the time. Hetzner's `/models` + reports `max_model_len` (262144); the meter reads it since. - "Quante email non lette ho?" in the same chat: no tool offered, it said it has no way to read mail. Nothing personal went out. - Voice clip (`05.wav`) in the cloud chat: transcribed by the local -- cgit v1.2.3