You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before making LLM requests, your wallet must approve OPG token spending via the [Permit2](https://github.com/Uniswap/permit2) protocol. Call this once (it's idempotent — no transaction is sent if the allowance already covers the requested amount):
91
+
Before making LLM requests, your wallet must approve OPG token spending via the [Permit2](https://github.com/Uniswap/permit2) protocol. This only sends an on-chain transaction when the current allowance drops below the threshold:
92
92
93
93
```python
94
-
llm.ensure_opg_approval(opg_amount=5)
94
+
llm.ensure_opg_approval(min_allowance=5)
95
95
```
96
96
97
97
See [Payment Settlement](#payment-settlement) for details on settlement modes.
0 commit comments