Skip to content

Commit

Permalink
Feature: Add payment type
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Jan 19, 2024
1 parent 17ad46c commit 3553810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aleph/web/controllers/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ async def message_price(request: web.Request):
else:
required_tokens = compute_cost(session=session, content=content)

return web.json_response({"required_tokens": float(required_tokens)})
return web.json_response({"required_tokens": float(required_tokens),
"payment_type": content.payment.type if content.payment else None})

0 comments on commit 3553810

Please sign in to comment.