diff --git a/.env.example b/.env.example index a2941ba..f39099c 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,8 @@ OPENAI_API_KEY= CHATGPT_CONTEXT=thread # (Optional) Explicitly set the ChatGPT model to be used by the API. #CHATGPT_MODEL=text-chat-davinci-002-20221122 +# (Optional) Explicitly set the prefix sent to model at the beginning of a conversation +#CHATGPT_PROMPT_PREFIX=Instructions:\nYou are ChatGPT, a large language model trained by OpenAI. # Set data store settings KEYV_BACKEND=file diff --git a/src/handlers.ts b/src/handlers.ts index 22d207f..7ba66aa 100644 --- a/src/handlers.ts +++ b/src/handlers.ts @@ -122,7 +122,6 @@ export default class CommandHandler { } const result = await sendChatGPTMessage(this.chatGPT, await bodyWithoutPrefix, storedConversation); - console.log(result) await Promise.all([ this.client.setTyping(roomId, false, 500), sendReply(this.client, roomId, this.getRootEventId(event), `${result.response}`, MATRIX_THREADS, MATRIX_RICH_TEXT)