| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| billing.go | ||
| override.go | ||
| override_test.go | ||
| relay_info.go | ||
| relay_utils.go | ||
| request_conversion.go |
Add three billing lifecycle methods to the TaskAdaptor interface: - EstimateBilling: compute OtherRatios from user request before pricing - AdjustBillingOnSubmit: adjust ratios from upstream submit response - AdjustBillingOnComplete: determine final quota at task terminal state Introduce BaseBilling as embeddable no-op default for adaptors without custom billing. Move Sora/Ali OtherRatios logic from shared validation into per-adaptor EstimateBilling implementations. Add TaskBillingContext to persist pricing params (model_price, group_ratio, other_ratios) in task private data for async polling settlement. Extract RecalculateTaskQuota as a general-purpose delta settlement function and unify polling billing via settleTaskBillingOnComplete (adaptor-first, then token-based fallback).
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| billing.go | Loading commit data... | |
| override.go | Loading commit data... | |
| override_test.go | Loading commit data... | |
| relay_info.go | Loading commit data... | |
| relay_utils.go | Loading commit data... | |
| request_conversion.go | Loading commit data... |