diff --git a/docs/opengradient/client/llm.md b/docs/opengradient/client/llm.md index 65aed9f0..40615b73 100644 --- a/docs/opengradient/client/llm.md +++ b/docs/opengradient/client/llm.md @@ -200,8 +200,8 @@ a transaction. Otherwise, sends an ERC-20 approve transaction. **Arguments** -* **`opg_amount`**: Minimum number of OPG tokens required (e.g. ``0.05`` - for 0.05 OPG). Must be at least 0.05 OPG. +* **`opg_amount`**: Minimum number of OPG tokens required (e.g. ``0.1`` + for 0.1 OPG). Must be at least 0.1 OPG. **Returns** @@ -211,5 +211,5 @@ Permit2ApprovalResult: Contains ``allowance_before``, **Raises** -* **`ValueError`**: If the OPG amount is less than 0.05. +* **`ValueError`**: If the OPG amount is less than 0.1. * **`RuntimeError`**: If the approval transaction fails. \ No newline at end of file diff --git a/docs/opengradient/index.md b/docs/opengradient/index.md index 7ee7de9d..32abc92f 100644 --- a/docs/opengradient/index.md +++ b/docs/opengradient/index.md @@ -6,7 +6,7 @@ opengradient # Package opengradient -**Version: 0.9.1** +**Version: 0.9.2** OpenGradient Python SDK for decentralized AI inference with end-to-end verification. diff --git a/examples/llm_chat.py b/examples/llm_chat.py index 15c4d6f4..a2c599cb 100644 --- a/examples/llm_chat.py +++ b/examples/llm_chat.py @@ -10,7 +10,7 @@ async def main(): llm = og.LLM(private_key=os.environ.get("OG_PRIVATE_KEY")) - llm.ensure_opg_approval(opg_amount=1) + llm.ensure_opg_approval(opg_amount=0.1) messages = [ {"role": "user", "content": "What is the capital of France?"}, diff --git a/src/opengradient/client/llm.py b/src/opengradient/client/llm.py index 9fc9d1cf..1960d5a2 100644 --- a/src/opengradient/client/llm.py +++ b/src/opengradient/client/llm.py @@ -198,8 +198,8 @@ def ensure_opg_approval(self, opg_amount: float) -> Permit2ApprovalResult: a transaction. Otherwise, sends an ERC-20 approve transaction. Args: - opg_amount: Minimum number of OPG tokens required (e.g. ``0.05`` - for 0.05 OPG). Must be at least 0.05 OPG. + opg_amount: Minimum number of OPG tokens required (e.g. ``0.1`` + for 0.1 OPG). Must be at least 0.1 OPG. Returns: Permit2ApprovalResult: Contains ``allowance_before``, @@ -207,7 +207,7 @@ def ensure_opg_approval(self, opg_amount: float) -> Permit2ApprovalResult: was needed). Raises: - ValueError: If the OPG amount is less than 0.05. + ValueError: If the OPG amount is less than 0.1. RuntimeError: If the approval transaction fails. """ if opg_amount < 0.1: