mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 12:28:22 +00:00
Support POST /v1/systemone -- `{state, model, questions}` ->
`{answers, usage}` -- as a first-class Routstr endpoint with a dedicated
upstream provider.
- routstr/upstream/typesafe.py: new TypeSafeUpstreamProvider with a fixed
base URL, a priced model catalog assembled from TypeSafe's
pricing-less GET /v1/models, and fail-closed catalog errors.
- Register the provider and seed it from TYPESAFE_API_KEY.
- proxy: admit POST systemone and route it through the response-usage
settlement branch (plus the X-Cashu gate) so ecash payments are charged
from usage instead of being served free.
- Document the endpoint and add unit + end-to-end integration coverage.
SYSTEMONE_TYPESAFE.md records the change set and test report.