From 319bd6170adea9a756e2a379f19debadebbddf31 Mon Sep 17 00:00:00 2001 From: kylexqian Date: Mon, 27 Apr 2026 13:47:49 -0700 Subject: [PATCH] fix session cap increase --- tee_gateway/definitions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tee_gateway/definitions.py b/tee_gateway/definitions.py index 932f9eb..249e8de 100644 --- a/tee_gateway/definitions.py +++ b/tee_gateway/definitions.py @@ -66,16 +66,16 @@ # by dynamic_session_cost_calculator() in util.py. # --------------------------------------------------------------------------- -# /v1/chat/completions — maximum OPG spend per session (18 decimals: 100000000000000000 = 0.1 OPG). +# /v1/chat/completions — maximum OPG spend per session (18 decimals: 1000000000000000000 = 1 OPG). # This is the upper-bound amount presented to the client during the x402 pre-check handshake. # The x402 "upto" scheme allows the actual charge to be any value up to this cap; # the real per-request cost is settled dynamically by dynamic_session_cost_calculator() in util.py # based on actual token usage, so clients are never overcharged beyond what they consumed. -CHAT_COMPLETIONS_OPG_SESSION_MAX_SPEND: str = "100000000000000000" +CHAT_COMPLETIONS_OPG_SESSION_MAX_SPEND: str = "1000000000000000000" -# /v1/completions — maximum OPG spend per session (18 decimals: 100000000000000000 = 0.1 OPG). +# /v1/completions — maximum OPG spend per session (18 decimals: 1000000000000000000 = 1 OPG). # This is the upper-bound amount presented to the client during the x402 pre-check handshake. # The x402 "upto" scheme allows the actual charge to be any value up to this cap; # the real per-request cost is settled dynamically by dynamic_session_cost_calculator() in util.py # based on actual token usage, so clients are never overcharged beyond what they consumed. -COMPLETIONS_OPG_SESSION_MAX_SPEND: str = "100000000000000000" +COMPLETIONS_OPG_SESSION_MAX_SPEND: str = "1000000000000000000"