package billing_setting // Built-in token prices use actual USD per million tokens. Keep new model // defaults here instead of splitting them across the legacy ratio tables. var builtinBillingExpr = map[string]string{ // https://developers.openai.com/api/docs/models/gpt-6-astra // Standard pricing; the long-context rates apply to the whole request. // Do not infer service-tier discounts from incoming request parameters: // channels filter service_tier by default, so it may not reach the upstream. "gpt-6-astra": `len <= 272000 ? tier("standard", p * 10 + c * 50 + cr * 1 + cc * 12.5) : tier("long_context", p * 20 + c * 75 + cr * 2 + cc * 25)`, }