Files
sub2api/backend/cmd/server
alfadb 6995a6226d feat(billing): gate unpriced ollama cloud models at save and request time
- save-time gate on admin account create/update (and AccountService, which has
  no production consumers but is the spec-mandated location): non-empty
  model_mapping values and empty-mapping allowed_models lists must all resolve
  via GetModelPricing, otherwise 400 MODEL_PRICING_MISSING
- request-time gate: ollama_cloud accounts no longer fall into the global
  zero-cost path when pricing is unavailable; explicit 4xx instead
- operational preflight SQL documented as comments (not a migration)
- include ollama_cloud in the billing model candidate filter (S1) so claude-*
  names can no longer be priced at Anthropic rates for this platform
- keep ollama_cloud out of the LiteLLM platform map on purpose (comment only)
- refresh a stale comment in upstream_billing_probe.go
2026-10-08 15:24:05 +08:00
..