CyberCaius on Discord, after v0.1.1819: the startup error is gone, but
Desktop's check ({"max_tokens":1,"messages":[{"role":"user",
"content":"."}]} on the first haiku it is listed) now went to leee's
claude-haiku-5-5, another provider's Claude model, and spent its quota.
He wants it on the model or group his session uses.
6e331afb4 sent the check to the model it names (desktopProbe) because,
on the session's AnyRouter gpt-6.1-sol, it failed for the
prompt_cache_key AnyRouter requires. That commit also gave such relays
the key, so the reroute isn't needed: desktopProbe is gone, and the
check is routed as a title is (desktopTurn), to the session's pick. The
cache key stays.
A floor on max_tokens (OpenAI's models refuse fewer than 16) is already
met by asking again at the floor (tokenFloor, TestTooFewTokensSaidWith-
Signs covers /v1/messages max_tokens 1 "." to a Chat upstream).
Tests: TestClaudeDesktopProbeAsked becomes TestClaudeDesktopProbeTo-
SessionModel. Its relay needs the key and refuses max_tokens < 16 as
OpenAI does. The probe of the haiku alias reaches gpt-6.1-sol on the
relay (2 calls, the floor met once), leee gets nothing, and the call
answers 200. TestDesktopProbe is removed with the function.
Run (mote):
- go test -tags nogui ./internal/gateway/ -run 'Desktop|Title|CacheKey|
ExtraBody|UpstreamBodies|TooFew|TokenFloor|Alias': ok
- go vet ./internal/gateway/ (darwin, GOOS=linux, GOOS=windows): ok
- gofmt -l: clean
Broken by hand: 6e331afb4's desktop.go put back,
TestClaudeDesktopProbeToSessionModel red: "probe went to leee
({"model":"claude-haiku-5-5","max_tokens":1,...}), not the session's
model".
No GUI file is reached. Not run: the full suite (shipped at once, as
asked). Not tried: a real AnyRouter account or a real Claude Desktop.