mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(openaicaller.py): fix condition to check for error_call argument in generate_response method
This commit is contained in:
@@ -83,7 +83,7 @@ class openai_caller:
|
||||
# async def generate_response(self, error_call=None, **kwargs):
|
||||
async def generate_response(*args, **kwargs):
|
||||
self = args[0]
|
||||
if len(args) > 1:
|
||||
if args.get("error_call", None) != None:
|
||||
error_call = args[1]
|
||||
else:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user