2023-01-02 20:16:38 +02:00
|
|
|
---
|
|
|
|
# chatgpt is a bot for chatting to openAI chatgpt matrix bot
|
|
|
|
# Project source code URL: https://github.com/matrixgpt/matrix-chatgpt-bot
|
|
|
|
|
|
|
|
matrix_bot_chatgpt_enabled: true
|
|
|
|
|
2023-10-06 14:14:03 +02:00
|
|
|
# renovate: datasource=docker depName=ghcr.io/matrixgpt/matrix-chatgpt-bot
|
2023-10-27 20:06:59 +02:00
|
|
|
matrix_bot_chatgpt_version: 3.1.4
|
2023-03-16 10:19:23 +02:00
|
|
|
|
2023-01-02 20:16:38 +02:00
|
|
|
matrix_bot_chatgpt_container_image_self_build: false
|
2023-03-16 10:19:23 +02:00
|
|
|
matrix_bot_chatgpt_container_image_self_build_repo: "https://github.com/matrixgpt/matrix-chatgpt-bot"
|
|
|
|
matrix_bot_chatgpt_container_image_self_build_repo_version: "{{ 'main' if matrix_bot_chatgpt_version == 'latest' else matrix_bot_chatgpt_version }}"
|
2023-01-02 20:16:38 +02:00
|
|
|
|
2023-03-16 10:19:23 +02:00
|
|
|
matrix_bot_chatgpt_container_image: "{{ matrix_bot_chatgpt_container_image_name_prefix }}matrixgpt/matrix-chatgpt-bot:{{ matrix_bot_chatgpt_container_image_tag }}"
|
|
|
|
matrix_bot_chatgpt_container_image_name_prefix: "{{ 'localhost/' if matrix_bot_chatgpt_container_image_self_build else matrix_bot_chatgpt_container_image_registry_prefix }}"
|
|
|
|
matrix_bot_chatgpt_container_image_tag: "{{ matrix_bot_chatgpt_version }}"
|
|
|
|
matrix_bot_chatgpt_container_image_force_pull: "{{ matrix_bot_chatgpt_container_image.endswith(':latest') }}"
|
|
|
|
matrix_bot_chatgpt_container_image_registry_prefix: ghcr.io/
|
2023-01-02 20:16:38 +02:00
|
|
|
|
|
|
|
matrix_bot_chatgpt_base_path: "{{ matrix_base_data_path }}/chatgpt"
|
|
|
|
matrix_bot_chatgpt_config_path: "{{ matrix_bot_chatgpt_base_path }}/config"
|
|
|
|
matrix_bot_chatgpt_data_path: "{{ matrix_bot_chatgpt_base_path }}/data"
|
2023-03-16 10:19:23 +02:00
|
|
|
matrix_bot_chatgpt_container_src_path: "{{ matrix_bot_chatgpt_base_path }}/container-src"
|
2023-01-02 20:16:38 +02:00
|
|
|
|
2023-12-06 12:11:53 +02:00
|
|
|
# Controls how long to wait for the container to stop gracefully before killing it.
|
|
|
|
# We use a small value here, because this container does not seem to handle the SIGTERM signal.
|
|
|
|
matrix_bot_chatgpt_container_stop_grace_time_seconds: 1
|
|
|
|
|
2024-01-02 15:56:56 +02:00
|
|
|
matrix_bot_chatgpt_container_network: ""
|
|
|
|
|
|
|
|
matrix_bot_chatgpt_container_additional_networks: "{{ matrix_bot_chatgpt_container_additional_networks_auto + matrix_bot_chatgpt_container_additional_networks_custom }}"
|
|
|
|
matrix_bot_chatgpt_container_additional_networks_auto: []
|
|
|
|
matrix_bot_chatgpt_container_additional_networks_custom: []
|
|
|
|
|
2023-01-02 20:16:38 +02:00
|
|
|
# A list of extra arguments to pass to the container
|
|
|
|
matrix_bot_chatgpt_container_extra_arguments: []
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-chatgpt.service depends on
|
2024-01-02 15:56:56 +02:00
|
|
|
matrix_bot_chatgpt_systemd_required_services_list: "{{ matrix_bot_chatgpt_systemd_required_services_list_default + matrix_bot_chatgpt_systemd_required_services_list_auto + matrix_bot_chatgpt_systemd_required_services_list_custom }}"
|
|
|
|
matrix_bot_chatgpt_systemd_required_services_list_default: ['docker.service']
|
|
|
|
matrix_bot_chatgpt_systemd_required_services_list_auto: []
|
|
|
|
matrix_bot_chatgpt_systemd_required_services_list_custom: []
|
2023-01-02 20:16:38 +02:00
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-chatgpt.service wants
|
|
|
|
matrix_bot_chatgpt_systemd_wanted_services_list: []
|
|
|
|
|
|
|
|
# ChatGPT Settings
|
2023-02-09 14:53:56 +02:00
|
|
|
matrix_bot_chatgpt_openai_api_key: ''
|
2023-03-09 07:02:54 +02:00
|
|
|
matrix_bot_chatgpt_api_model: 'gpt-3.5-turbo'
|
2023-01-27 21:02:14 +02:00
|
|
|
matrix_bot_chatgpt_context: 'thread' # CHATGPT_CONTEXT="thread"
|
2023-01-27 20:55:13 +02:00
|
|
|
|
2023-02-09 14:53:56 +02:00
|
|
|
matrix_bot_chatgpt_keyv_backend: 'file'
|
|
|
|
matrix_bot_chatgpt_keyv_url: ''
|
|
|
|
matrix_bot_chatgpt_keyv_bot_encryption: false
|
|
|
|
matrix_bot_chatgpt_keyv_bot_storage: true
|
|
|
|
|
2023-01-02 20:16:38 +02:00
|
|
|
# Matrix Static Settings (required, see notes)
|
|
|
|
# Defaults to "https://matrix.org"
|
2024-01-02 15:56:56 +02:00
|
|
|
matrix_bot_chatgpt_matrix_homeserver_url: "" # MATRIX_HOMESERVER_URL=
|
2023-01-02 20:16:38 +02:00
|
|
|
# With the @ and :DOMAIN, ie @SOMETHING:DOMAIN, needs to be set, created manually beforehand.
|
2023-01-10 17:26:59 +02:00
|
|
|
matrix_bot_chatgpt_matrix_bot_username_localpart: 'bot.chatgpt'
|
|
|
|
matrix_bot_chatgpt_matrix_bot_username: "@{{ matrix_bot_chatgpt_matrix_bot_username_localpart }}:{{ matrix_domain }}" # MATRIX_BOT_USERNAME=
|
2023-01-02 20:16:38 +02:00
|
|
|
# Set `MATRIX_BOT_PASSWORD` the bot will print an `MATRIX_ACCESS_TOKEN` to the terminal
|
|
|
|
# or https://webapps.stackexchange.com/questions/131056/how-to-get-an-access-token-for-element-riot-matrix
|
|
|
|
matrix_bot_chatgpt_matrix_access_token: '' # MATRIX_ACCESS_TOKEN=
|
|
|
|
# Once `MATRIX_BOT_ACCESS_TOKEN` is set this is no longer used.
|
|
|
|
matrix_bot_chatgpt_matrix_bot_password: '' # MATRIX_BOT_PASSWORD=
|
|
|
|
|
|
|
|
# Matrix Configurable Settings Defaults (optional)
|
|
|
|
matrix_bot_chatgpt_matrix_default_prefix: "!chatgpt " # MATRIX_DEFAULT_PREFIX= Leave prefix blank to reply to all messages, trailing space matters
|
|
|
|
matrix_bot_chatgpt_matrix_default_prefix_reply: false # MATRIX_DEFAULT_PREFIX_REPLY=
|
|
|
|
|
|
|
|
# Matrix Access Control (optional)
|
2023-03-16 10:06:52 +02:00
|
|
|
#
|
|
|
|
# Lists of space-separated entries. Example:
|
|
|
|
# matrix_bot_chatgpt_matrix_whitelist: ":{{ matrix_domain }} :second-domain.com :third-domain.com"
|
2023-01-02 20:16:38 +02:00
|
|
|
matrix_bot_chatgpt_matrix_blacklist: ''
|
|
|
|
matrix_bot_chatgpt_matrix_whitelist: ':{{ matrix_domain }}'
|
|
|
|
|
|
|
|
# Matrix Feature Flags (optional)
|
|
|
|
matrix_bot_chatgpt_matrix_autojoin: true # MATRIX_AUTOJOIN=true
|
|
|
|
matrix_bot_chatgpt_matrix_encryption: true # MATRIX_ENCRYPTION=true
|
|
|
|
matrix_bot_chatgpt_matrix_threads: true # MATRIX_THREADS=true
|
|
|
|
matrix_bot_chatgpt_matrix_rich_text: true # MATRIX_RICH_TEXT=true
|
|
|
|
|
|
|
|
|
|
|
|
# A list of admins
|
|
|
|
# Example set of rules:
|
|
|
|
# matrix_bot_chatgpt_admins:
|
|
|
|
# - @someone:example.com
|
|
|
|
# - @another:example.com
|
|
|
|
# - @bot.*:example.com
|
|
|
|
# - @*:another.com
|
|
|
|
# matrix_bot_chatgpt_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
|
|
|
|
|
|
|
|
# Additional environment variables to pass to the chatgpt container
|
|
|
|
#
|
2023-03-16 10:19:23 +02:00
|
|
|
# You can discover additional environment variables from:
|
|
|
|
# https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/src/env.ts
|
|
|
|
#
|
2023-01-02 20:16:38 +02:00
|
|
|
# Example:
|
|
|
|
# matrix_bot_chatgpt_environment_variables_extension: |
|
|
|
|
# chatgpt_TEXT_DONE=Done
|
|
|
|
matrix_bot_chatgpt_environment_variables_extension: ''
|
2023-07-28 09:00:59 +02:00
|
|
|
|
|
|
|
matrix_bot_chatgpt_matrix_bot_prompt_prefix: 'Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.'
|