Repository navigation
stuntd 0.1.2
What's new
Decisions with several fields. A structured output with 2 to 8 typed fields (enum, boolean or number), like {category, urgency, needs_human}, is now learnt. Each field gets its own head, and the request is answered locally only when every field is sure. Otherwise the provider answers and every field is recorded. Single-field sites keep their names, so heads from 0.1.0 and 0.1.1 keep serving.
Anthropic Messages API. stuntd serve --upstream https://api.anthropic.com learns decisions sent to /v1/messages, through output_config.format or a single tool. The local answer is checked against the Message model of the official anthropic SDK in the tests. It has not been run against a live API key yet, so reports are welcome.
Retraining in the background. training.auto_retrain = N retrains a site once N new captures arrive, one run at a time, as a child process with its own log. With serving.auto_promote on, the loop runs without you: collect, train, shadow, promote, demote, retrain.
Lazy checkpoint load. stuntd serve --lazy (or serving.lazy_load = true) starts at once and loads the base checkpoint on the first request that needs it. A failed load answers that request with the usual model error and the next one tries again. Closes #1.
Upgrading
pip install -U stuntd. Nothing to change in your config: the new settings are off by default. One thing to know: requests with several typed fields used to pass through as free text and are now recorded, so the store grows for them.
Community
Questions and show and tell now live in Discussions.