mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user