- 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
B2-②: add fallbackPrices entries for the 8 ollama-exclusive cloud models
(gpt-oss:120b/20b, gemma4:31b, mistral-large-3:675b, qwen3.5:397b,
nemotron-3-super/nano:30b/ultra) with official per-token rates, plus
exact/prefix family rules in getFallbackPricing. gpt-oss tiers and the
three nemotron tiers are matched precisely (no bare gpt-oss/nemotron
prefix); models without a published cached-input tier bill cached input
at the input rate instead of 0.
B2-①: two-level pricing lookup for ":tag" model names. Shared helper
normalizePricingModelNameForLookup yields the stripped candidate; wired
into getModelPricingAt (full chain rerun, pricingAt preserved),
matchGroupModelPricing (exact retry) and lookupChannelPricingNormalized
(third retry after the codex normalization; applyChannelOverrides
inherits it). Literal name always wins, so bedrock canonical keys like
us.anthropic.claude-sonnet-4-5-20250929-v1:0 are never destructively
stripped; normalizeChannelPricingModelName stays untouched.
Tests: full /v1/models listing pinned with hit paths, tag-strip and
fail-closed behavior, bedrock double-key regression at base/channel/
group layers.
- C31: include ollama_cloud in SupportsNativeCNResponses so /v1/responses
ingress routes to the platform-native endpoint instead of degrading to
raw CC, and the stateless normalize hook (store=false + strip
previous_response_id) now applies to ollama accounts
- D2/C37': reject the stateful conversation field with an explicit 400
invalid_request_error on native Responses accounts instead of silently
dropping context; normalizeDeepSeekResponsesRequestBody now returns
([]byte, error) with all three production call sites propagating the
typed error as a client-visible 400
- D1': clamp max_tokens for non-DeepSeek models too on ollama.com
upstreams (raw CC, native Responses, Anthropic Messages); the host
check is the boundary, the >65535 upstream 400 is model-independent;
delete the now-dead isOllamaCloudRawChatCompletionsAccount predicate
- C39: mark ollama_cloud accounts force_responses in the Responses
probe (per-protocol, no network probe) and let the admin handler
schedule the probe for ollama_cloud accounts
E17: account for ollama_cloud explicitly in both usage-cell computeds.
Empirically the cell already renders via the generic api-key root branch
(eligible -> OllamaCloudUsageCell + today-stats, ineligible -> '-'
placeholder), because eligibility itself is server-driven
(ollama_cloud_usage.eligible, fixed backend-side in the previous
commit); so the computeds pin that behavior instead of flipping to the
scrolling-window root branch, which would drop today-stats rows and
fire /usage calls the backend rejects for api-key accounts.
- showUsageWindows: explicit ollama_cloud api-key branch -> false
(generic api-key branch renders the Ollama cell)
- shouldFetchUsage: document why ollama_cloud stays unfetched (backend
/usage rejects api-key accounts; data arrives via account payload and
the dedicated refresh endpoint, same shape as CN platforms)
- tests: eligible renders OllamaCloudUsageCell without /usage fetch;
missing/eligible=false renders placeholder, never CN quota cells
Fixes#7061
monitorProviders and probeCapableProviders were missing
MonitorProviderMiniMax even though the constant, adapter, ent schema and
error message all already included minimax, so provider=minimax was
rejected by validateProvider.