How the tier is chosen
A plain heuristic over length, turn count and task keywords in all three languages, held in a configuration file rather than compiled in — so it can be retuned without a code change. Deliberately not an AI classifier. Paying for a model call to decide which model to call would double the latency and the cost of every single request, to answer a question a keyword list answers well enough. The heuristic will be revised when usage data shows where it is wrong, not before.
Economy handles the bulk, which is where the margin comes from — the gateway
passes provider pricing through at cost.
Say open weights, not open source. The models Shamwari routes to publish their weights. That is not the same as
being open source, and the difference is not pedantry: Kimi ships under a
bespoke licence with revenue and user thresholds attached, not under MIT or
Apache-2.0.Shamwari’s own platform code is Apache-2.0. The models it calls are governed
by their own terms, and the corpus it reads is governed by a licence recorded
per source.