TuringToken/relay
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
..
channel Initial commit 2026-06-03 10:01:10 +08:00
common Initial commit 2026-06-03 10:01:10 +08:00
common_handler Initial commit 2026-06-03 10:01:10 +08:00
constant Initial commit 2026-06-03 10:01:10 +08:00
helper 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
reasonmap Initial commit 2026-06-03 10:01:10 +08:00
audio_handler.go Initial commit 2026-06-03 10:01:10 +08:00
chat_completions_via_responses.go Initial commit 2026-06-03 10:01:10 +08:00
claude_handler.go Initial commit 2026-06-03 10:01:10 +08:00
compatible_handler.go Initial commit 2026-06-03 10:01:10 +08:00
embedding_handler.go Initial commit 2026-06-03 10:01:10 +08:00
gemini_handler.go Initial commit 2026-06-03 10:01:10 +08:00
image_handler.go Initial commit 2026-06-03 10:01:10 +08:00
mjproxy_handler.go Initial commit 2026-06-03 10:01:10 +08:00
param_override_error.go Initial commit 2026-06-03 10:01:10 +08:00
relay_adaptor.go Initial commit 2026-06-03 10:01:10 +08:00
relay_task.go Initial commit 2026-06-03 10:01:10 +08:00
rerank_handler.go Initial commit 2026-06-03 10:01:10 +08:00
responses_handler.go Initial commit 2026-06-03 10:01:10 +08:00
websocket.go Initial commit 2026-06-03 10:01:10 +08:00