feat: per-signature LM router (lm[<SigName>] config blocks + predict factory) #26

Merged
onibot merged 1 commits from feat/lm-signature-router into main 2026-10-26 16:37:14 +01:00
Owner

One general construction door: lm[]: blocks in config.yaml (provider inherits base_url+ceiling; model builds a dedicated cached LM; other keys -> per-call lm_kwargs). predict() swapped at the 13 construction sites. First block: ExtractSignature max_tokens=1800. run.log lists active blocks at startup. Tests: lm_signature_router 5/5; suite 23 files green.

One general construction door: lm[<SigName>]: blocks in config.yaml (provider inherits base_url+ceiling; model builds a dedicated cached LM; other keys -> per-call lm_kwargs). predict() swapped at the 13 construction sites. First block: ExtractSignature max_tokens=1800. run.log lists active blocks at startup. Tests: lm_signature_router 5/5; suite 23 files green.
onibot added 1 commit 2026-10-26 16:37:10 +01:00
His ask: one general construction door so a signature's model/settings
change by editing config alone — no call-site ifs, now or ever after.
lm[ExtractSignature]: as a config.yaml sibling of lm: (provider:
inherits base_url + transport ceiling; model: builds a dedicated
cached LM; other keys -> per-call lm_kwargs through Predict config,
honored by dspy 3.4.1 _forward_preprocess). predict() is the door: the
13 construction sites swapped mechanically. First block shipped:
ExtractSignature max_tokens=1800 (the 4096 cap was 3x headroom that
only extended the worst case on slow local models — the 40-min
arithmetic). run.log reports active blocks at startup. TDD:
tests/lm_signature_router.py 5/5 (parse, no-block defaults,
settings-only override, dedicated+cached LM, provenance listing).
onibot merged commit 95dfdf7123 into main 2026-10-26 16:37:14 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onibot/floop#26