Proxy in front of vLLM too; dashboard reset/clear; opencode effort variants
- Move the MLX proxy into backends/proxy.py and run it on both backends: public port 1134 is the proxy, the model server listens on 127.0.0.1:1135. On vLLM this brings the reasoning chooser, the "default" alias and the per-request table. Effort levels the model lacks map to the nearest it has (high -> xhigh on qwen3.8); vLLM's own key is sent upstream; streamed runs are counted from the usage chunk (MTP packs several tokens per chunk). - Dashboard: restore METRIC_RE (vLLM page stuck on "loading"); Statistics header with Reset, Requests header with Clear; drop the TTFT chart; rename token columns; Peak KV shows "-" when no samples cover a run. - opencode: config snippet's model points at <provider>/default, and reasoning models get variants built from the levels the template accepts. - README: proxy on both platforms; NVIDIA checklist split into verified / open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1121c3f908
commit
8879db44a0
12 changed files with 886 additions and 493 deletions
|
|
@ -296,4 +296,31 @@ reset({"provider": {"mymac": opencode.local_block(CFG)}, "model": "mymac/qwen3-c
|
|||
opencode.sync(dict(CFG, active="qwen3-coder"))
|
||||
check("migrated under a renamed provider too", load()["model"] == "mymac/default", load().get("model"))
|
||||
|
||||
check.section("23. opencode-config's default points at an entry its block has")
|
||||
import argparse, io, contextlib
|
||||
cli._service_check = lambda: CFG
|
||||
buf = io.StringIO()
|
||||
with contextlib.redirect_stdout(buf):
|
||||
cli.cmd_opencode(argparse.Namespace(host="popos.local", provider=None, json=True))
|
||||
snip = json.loads(buf.getvalue())
|
||||
prov_id, block = next(iter(snip["provider"].items()))
|
||||
check("provider named after the host", prov_id == "llmhost-popos", prov_id)
|
||||
check("model is <provider>/<an entry in the block>",
|
||||
snip["model"].partition("/")[0] == prov_id and snip["model"].partition("/")[2] in block["models"],
|
||||
(snip["model"], list(block["models"])))
|
||||
|
||||
check.section("24. the block offers only the effort levels the loaded model accepts")
|
||||
check("qwen3.8: hide high, add xhigh",
|
||||
opencode.effort_variants(("low", "medium", "xhigh")) == {"high": {"disabled": True},
|
||||
"xhigh": {"reasoningEffort": "xhigh"}},
|
||||
opencode.effort_variants(("low", "medium", "xhigh")))
|
||||
check("no levels: hide opencode's whole menu",
|
||||
opencode.effort_variants(()) == {l: {"disabled": True} for l in ("low", "medium", "high")})
|
||||
q = opencode.provider_block(dict(CFG, active="qwen3.8-27b"), "popos.local", "k", "popos.local")
|
||||
ent = q["models"]["default"]
|
||||
check("qwen3.8 block (not downloaded: catalog levels)",
|
||||
ent.get("variants") == {"high": {"disabled": True}, "xhigh": {"reasoningEffort": "xhigh"}}, ent)
|
||||
nr = opencode.provider_block(dict(CFG, active="qwen3-coder"), "popos.local", "k", "popos.local")
|
||||
check("a non-reasoning model gets no variants", "variants" not in nr["models"]["default"], nr["models"]["default"])
|
||||
|
||||
check.done(ROOT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue