Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tee_gateway/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading