From 111e07c5dbe3e5807462725c53f79970799a653d Mon Sep 17 00:00:00 2001 From: Lucas <48132189+Lucas-TY@users.noreply.github.com> Date: Thu, 16 May 2024 15:01:47 +0800 Subject: [PATCH] fix{SyntaxError: 'async with' outside async function] --- agentverse/llms/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentverse/llms/openai.py b/agentverse/llms/openai.py index 881ec3f7..b4d529ab 100644 --- a/agentverse/llms/openai.py +++ b/agentverse/llms/openai.py @@ -209,7 +209,7 @@ def send_token_limit(self, model: str) -> int: # exception_types=(OpenAIError, json.decoder.JSONDecodeError, Exception) # ), # ) - def generate_response( + async def generate_response( self, prepend_prompt: str = "", history: List[dict] = [],