From ca52274f6adb1679fd761fd7987cff622ac801e8 Mon Sep 17 00:00:00 2001 From: verseon0980 Date: Thu, 9 Apr 2026 20:48:44 +0530 Subject: [PATCH] fix: use async ensure_opg_approval in llm_chat example Signed-off-by: verseon0980 --- examples/llm_chat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/llm_chat.py b/examples/llm_chat.py index 68bf19e..aed3f44 100644 --- a/examples/llm_chat.py +++ b/examples/llm_chat.py @@ -10,12 +10,10 @@ async def main(): llm = og.LLM(private_key=os.environ.get("OG_PRIVATE_KEY")) - llm.ensure_opg_approval(min_allowance=0.1) - + await llm.ensure_opg_approval_async(min_allowance=0.1) messages = [ {"role": "user", "content": "What is the capital of France?"}, ] - result = await llm.chat( model=og.TEE_LLM.GEMINI_2_5_FLASH, messages=messages,