jasonfoknxu 2 years ago
parent 44f62efbad
commit df9f884de5

@ -0,0 +1,5 @@
## 1.0.1
- Fix duplicated message bug
## 1.0.0
- First version

@ -1,6 +1,6 @@
{
"name": "chatgpt-bot-discord-telegram-azure",
"version": "1.0.0",
"version": "1.0.1",
"main": "build/index.js",
"license": "MIT",
"author": "jasonfoknxu <nxu@nxu.biz> (https://nxuweb.net)",

@ -27,6 +27,9 @@ const chat = async (userPrompt: string, from: string = 'bot') => {
const result = await client.getChatCompletions(deploymentName, messages, {
user: (config.CHAT_MODE === 3) ? 'bot' : from,
});
messages = [];
if (!result) {
return null;
}

Loading…
Cancel
Save