Skip to content

Commit 78fa902

Browse files
Merge pull request #6 from Virtual-Protocol/feat/acp-837
increase the signature valid interval to 5 mins
2 parents 1278c41 + 3ce8329 commit 78fa902

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/python/clients/httpx/extensible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def main():
3131

3232
# Make request with X-Budget header
3333
try:
34-
budget = "$0.69" # ⭐ Your budget
34+
budget = "$0.01" # ⭐ Your budget
3535
print(f"Making request to {endpoint_path} with budget: {budget}")
3636

3737
response = await client.post(

examples/python/servers/fastapi/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ async def dynamic_price_middleware(request: Request, call_next):
121121
facilitator_config=facilitator_config,
122122
description=f"acp job budget ({budget})",
123123
mime_type="application/json",
124+
max_deadline_seconds=300, # ⭐ 5 minutes
125+
124126
# ⭐ Define input schema for x402scan registration
125127
input_schema=HTTPInputSchema(
126128
header_fields={

0 commit comments

Comments
 (0)