Ver a proveniência

Merge pull request #2804 from ThellraAK/master

Create and set default for chatgpt prompt
pull/2805/head
Slavi Pantaleev há 2 anos
committed by GitHub
ascendente
cometimento
7d1eb7e729
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
2 ficheiros alterados com 4 adições e 0 eliminações
  1. +2
    -0
      roles/custom/matrix-bot-chatgpt/defaults/main.yml
  2. +2
    -0
      roles/custom/matrix-bot-chatgpt/templates/env.j2

+ 2
- 0
roles/custom/matrix-bot-chatgpt/defaults/main.yml Ver ficheiro

@@ -88,3 +88,5 @@ matrix_bot_chatgpt_matrix_rich_text: true # MATRIX_RICH_TEXT=true
# matrix_bot_chatgpt_environment_variables_extension: | # matrix_bot_chatgpt_environment_variables_extension: |
# chatgpt_TEXT_DONE=Done # chatgpt_TEXT_DONE=Done
matrix_bot_chatgpt_environment_variables_extension: '' matrix_bot_chatgpt_environment_variables_extension: ''

matrix_bot_chatgpt_matrix_bot_prompt_prefix: 'Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.'

+ 2
- 0
roles/custom/matrix-bot-chatgpt/templates/env.j2 Ver ficheiro

@@ -25,6 +25,8 @@ MATRIX_ENCRYPTION={{ matrix_bot_chatgpt_matrix_encryption|lower }}
MATRIX_THREADS={{ matrix_bot_chatgpt_matrix_threads|lower }} MATRIX_THREADS={{ matrix_bot_chatgpt_matrix_threads|lower }}
MATRIX_RICH_TEXT={{ matrix_bot_chatgpt_matrix_rich_text|lower }} MATRIX_RICH_TEXT={{ matrix_bot_chatgpt_matrix_rich_text|lower }}


CHATGPT_PROMPT_PREFIX={{ matrix_bot_chatgpt_matrix_bot_prompt_prefix }}

DATA_PATH=/data/ DATA_PATH=/data/


{{ matrix_bot_chatgpt_environment_variables_extension }} {{ matrix_bot_chatgpt_environment_variables_extension }}

Carregando…
Cancelar
Guardar