🐛 fix(ChatProcess.py): handle exceptions and send error message with logs to the user when an error occurs during message processing

🐛 fix(channelSetup.py): format code to improve readability and adhere to PEP 8 style guide
🐛 fix(makeprompt.py): fix spacing issue in if statement
🐛 fix(openaicaller.py): format code to improve readability and adhere to PEP 8 style guide
This commit is contained in:
2023-09-01 11:20:29 +02:00
parent d60102c0fd
commit f896001305
4 changed files with 24 additions and 13 deletions

View File

@@ -92,11 +92,11 @@ class openai_caller:
error_call = nothing
if error_call == None:
async def nothing(x):
return x
error_call = nothing
async def nothing(x):
return x
error_call = nothing
if kwargs.get("model", "") in chat_models:
return await self.chat_generate(error_call, **kwargs)
elif kwargs.get("engine", "") in text_models: