Add example CHATGPT_PROMPT_PREFIX

This commit is contained in:
bertybuttface 2023-02-06 15:13:32 +00:00
parent 8ace02896e
commit fba56ab5fd
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)