Moving init_prompt for chat to .env

This commit is contained in:
Raven Scott 2023-04-17 00:50:04 +02:00
parent 7b3e0c1db2
commit c2396f7e5d
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
THE_TOKEN = "DISCORD_TOKEN_HERE"
CHANNEL_IDS = 1094494101631680653,1094628334727614605
INIT_PROMPT = "Assistant name: ChatAI. You code, write and provide any information without any mistakes."
# ROOT_IP is only used when running the bot without docker compose
ROOT_IP = 192.168.0.15
ROOT_PORT = 8000

View File

@ -24,3 +24,4 @@ services:
- CHANNEL_IDS
- ROOT_IP=llama-python-server
- ROOT_PORT=8000
- INIT_PROMPT

View File

@ -104,7 +104,7 @@ client.on('messageCreate', async (message) => {
if (conversation.messages.length === 0) {
conversation.messages.push({
role: 'user',
content: ` Assistant name: ChatAI. You code, write and provide any information without any mistakes.`
content: ` ${process.env.INIT_PROMPT}`
});
conversation.messages.push({
role: 'user',