Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

117 satır
6.0 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2024 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2023 Joe Kappus
  3. # SPDX-FileCopyrightText: 2023 MDAD project contributors
  4. # SPDX-FileCopyrightText: 2023 Nikita Chernyi
  5. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  6. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  7. #
  8. # SPDX-License-Identifier: AGPL-3.0-or-later
  9. ---
  10. # chatgpt is a bot for chatting to openAI chatgpt Matrix bot
  11. # Project source code URL: https://github.com/matrixgpt/matrix-chatgpt-bot
  12. matrix_bot_chatgpt_enabled: true
  13. # renovate: datasource=docker depName=ghcr.io/matrixgpt/matrix-chatgpt-bot
  14. matrix_bot_chatgpt_version: 3.1.4
  15. matrix_bot_chatgpt_container_image_self_build: false
  16. matrix_bot_chatgpt_container_image_self_build_repo: "https://github.com/matrixgpt/matrix-chatgpt-bot"
  17. matrix_bot_chatgpt_container_image_self_build_repo_version: "{{ 'main' if matrix_bot_chatgpt_version == 'latest' else matrix_bot_chatgpt_version }}"
  18. matrix_bot_chatgpt_container_image: "{{ matrix_bot_chatgpt_container_image_registry_prefix }}matrixgpt/matrix-chatgpt-bot:{{ matrix_bot_chatgpt_container_image_tag }}"
  19. matrix_bot_chatgpt_container_image_registry_prefix: "{{ 'localhost/' if matrix_bot_chatgpt_container_image_self_build else matrix_bot_chatgpt_container_image_registry_prefix_upstream }}"
  20. matrix_bot_chatgpt_container_image_registry_prefix_upstream: "{{ matrix_bot_chatgpt_container_image_registry_prefix_upstream_default }}"
  21. matrix_bot_chatgpt_container_image_registry_prefix_upstream_default: "ghcr.io/"
  22. matrix_bot_chatgpt_container_image_tag: "{{ matrix_bot_chatgpt_version }}"
  23. matrix_bot_chatgpt_container_image_force_pull: "{{ matrix_bot_chatgpt_container_image.endswith(':latest') }}"
  24. matrix_bot_chatgpt_base_path: "{{ matrix_base_data_path }}/chatgpt"
  25. matrix_bot_chatgpt_config_path: "{{ matrix_bot_chatgpt_base_path }}/config"
  26. matrix_bot_chatgpt_data_path: "{{ matrix_bot_chatgpt_base_path }}/data"
  27. matrix_bot_chatgpt_container_src_path: "{{ matrix_bot_chatgpt_base_path }}/container-src"
  28. # Controls how long to wait for the container to stop gracefully before killing it.
  29. # We use a small value here, because this container does not seem to handle the SIGTERM signal.
  30. matrix_bot_chatgpt_container_stop_grace_time_seconds: 1
  31. matrix_bot_chatgpt_container_network: ""
  32. matrix_bot_chatgpt_container_additional_networks: "{{ matrix_bot_chatgpt_container_additional_networks_auto + matrix_bot_chatgpt_container_additional_networks_custom }}"
  33. matrix_bot_chatgpt_container_additional_networks_auto: []
  34. matrix_bot_chatgpt_container_additional_networks_custom: []
  35. # A list of extra arguments to pass to the container
  36. matrix_bot_chatgpt_container_extra_arguments: []
  37. # List of systemd services that matrix-bot-chatgpt.service depends on
  38. 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 }}"
  39. matrix_bot_chatgpt_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  40. matrix_bot_chatgpt_systemd_required_services_list_auto: []
  41. matrix_bot_chatgpt_systemd_required_services_list_custom: []
  42. # List of systemd services that matrix-bot-chatgpt.service wants
  43. matrix_bot_chatgpt_systemd_wanted_services_list: []
  44. # ChatGPT Settings
  45. matrix_bot_chatgpt_openai_api_key: ''
  46. matrix_bot_chatgpt_api_model: 'gpt-3.5-turbo'
  47. matrix_bot_chatgpt_context: 'thread' # CHATGPT_CONTEXT="thread"
  48. matrix_bot_chatgpt_keyv_backend: 'file'
  49. matrix_bot_chatgpt_keyv_url: ''
  50. matrix_bot_chatgpt_keyv_bot_encryption: false
  51. matrix_bot_chatgpt_keyv_bot_storage: true
  52. # Matrix Static Settings (required, see notes)
  53. # Defaults to "https://matrix.org"
  54. matrix_bot_chatgpt_matrix_homeserver_url: "" # MATRIX_HOMESERVER_URL=
  55. # With the @ and :example.com, ie @bot.chatgpt:example.com, needs to be set, created manually beforehand.
  56. matrix_bot_chatgpt_matrix_bot_username_localpart: 'bot.chatgpt'
  57. matrix_bot_chatgpt_matrix_bot_username: "@{{ matrix_bot_chatgpt_matrix_bot_username_localpart }}:{{ matrix_domain }}" # MATRIX_BOT_USERNAME=
  58. # Set `MATRIX_BOT_PASSWORD` the bot will print an `MATRIX_ACCESS_TOKEN` to the terminal
  59. # or https://webapps.stackexchange.com/questions/131056/how-to-get-an-access-token-for-element-riot-matrix
  60. matrix_bot_chatgpt_matrix_access_token: '' # MATRIX_ACCESS_TOKEN=
  61. # Once `MATRIX_BOT_ACCESS_TOKEN` is set this is no longer used.
  62. matrix_bot_chatgpt_matrix_bot_password: '' # MATRIX_BOT_PASSWORD=
  63. # Matrix Configurable Settings Defaults (optional)
  64. matrix_bot_chatgpt_matrix_default_prefix: "!chatgpt " # MATRIX_DEFAULT_PREFIX= Leave prefix blank to reply to all messages, trailing space matters
  65. matrix_bot_chatgpt_matrix_default_prefix_reply: false # MATRIX_DEFAULT_PREFIX_REPLY=
  66. # Matrix Access Control (optional)
  67. #
  68. # Lists of space-separated entries. Example:
  69. # matrix_bot_chatgpt_matrix_whitelist: ":{{ matrix_domain }} :example.net :example.org"
  70. matrix_bot_chatgpt_matrix_blacklist: ''
  71. matrix_bot_chatgpt_matrix_whitelist: ':{{ matrix_domain }}'
  72. # Matrix Feature Flags (optional)
  73. matrix_bot_chatgpt_matrix_autojoin: true # MATRIX_AUTOJOIN=true
  74. matrix_bot_chatgpt_matrix_encryption: true # MATRIX_ENCRYPTION=true
  75. matrix_bot_chatgpt_matrix_threads: true # MATRIX_THREADS=true
  76. matrix_bot_chatgpt_matrix_rich_text: true # MATRIX_RICH_TEXT=true
  77. # A list of admins
  78. # Example set of rules:
  79. # matrix_bot_chatgpt_admins:
  80. # - @alice:example.com
  81. # - @bob:example.com
  82. # - @bot.*:example.com
  83. # - @*:example.net
  84. # matrix_bot_chatgpt_admins: "{{ [matrix_admin] if matrix_admin else [] }}"
  85. # Additional environment variables to pass to the chatgpt container
  86. #
  87. # You can discover additional environment variables from:
  88. # https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/src/env.ts
  89. #
  90. # Example:
  91. # matrix_bot_chatgpt_environment_variables_extension: |
  92. # chatgpt_TEXT_DONE=Done
  93. matrix_bot_chatgpt_environment_variables_extension: ''
  94. matrix_bot_chatgpt_matrix_bot_prompt_prefix: 'Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.'