소스 검색

Adding variable for messing with the prompt and setting the default to the example

pull/2804/head
System user; root 3 년 전
부모
커밋
621578399f
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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 파일 보기

@@ -88,3 +88,5 @@ matrix_bot_chatgpt_matrix_rich_text: true # MATRIX_RICH_TEXT=true
# matrix_bot_chatgpt_environment_variables_extension: |
# chatgpt_TEXT_DONE=Done
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 파일 보기

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

CHATGPT_PROMPT_PREFIX={{ matrix_bot_chatgpt_matrix_bot_prompt_prefix }}

DATA_PATH=/data/

{{ matrix_bot_chatgpt_environment_variables_extension }}

불러오는 중...
취소
저장