diff --git a/src/execution.ts b/src/execution.ts index aa99e73..0fbe1d2 100644 --- a/src/execution.ts +++ b/src/execution.ts @@ -287,7 +287,12 @@ async function executeFromQueue(channel: string) { } catch (e) { channelQueue.stopTyping(); console.error(`Error ocurred while handling chat completion request (${(e as object).constructor.name}):`); - console.error(e); + if (Axios.isAxiosError(e)) { + console.error(JSON.stringify(e.response?.data)); + } + else { + console.error(e); + } if (OpenAImessages.length !== 0) { console.error("Messages:"); console.error(OpenAImessages);