TuringToken/relay/helper
xiezhouwei 789f3b43e4 fix: prevent float-to-int truncation turning small billing amounts (e.g. 0.01) into 0 in use-price paths\n\n- service/quota.go: replace IntPart() with Round(0).IntPart() + safety net\n- relay/helper/price.go: replace int(float64) with int(math.Round()) + safety net\n- controller/channel-test.go: same fix for test billing calculation\n- All use-price paths now round instead of truncate, and guarantee minimum 1 quota when effective pricing > 0 2026-06-23 11:26:00 +08:00
..
common.go Initial commit 2026-06-03 10:01:10 +08:00
image_billing.go Initial commit 2026-06-03 10:01:10 +08:00
image_price.go Initial commit 2026-06-03 10:01:10 +08:00
markup_relay.go Initial commit 2026-06-03 10:01:10 +08:00
model_mapped.go Initial commit 2026-06-03 10:01:10 +08:00
price.go fix: prevent float-to-int truncation turning small billing amounts (e.g. 0.01) into 0 in use-price paths\n\n- service/quota.go: replace IntPart() with Round(0).IntPart() + safety net\n- relay/helper/price.go: replace int(float64) with int(math.Round()) + safety net\n- controller/channel-test.go: same fix for test billing calculation\n- All use-price paths now round instead of truncate, and guarantee minimum 1 quota when effective pricing > 0 2026-06-23 11:26:00 +08:00
rule_markup_relay.go Initial commit 2026-06-03 10:01:10 +08:00
stream_result.go Initial commit 2026-06-03 10:01:10 +08:00
stream_scanner.go Initial commit 2026-06-03 10:01:10 +08:00
stream_scanner_test.go Initial commit 2026-06-03 10:01:10 +08:00
valid_request.go Initial commit 2026-06-03 10:01:10 +08:00
video_seedance_payload_billing_test.go Initial commit 2026-06-03 10:01:10 +08:00