Matrix Docker Ansible eploy
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 

494 рядки
30 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # baibot is a bot exposing the power of Large Language Models to you.
  6. # Project source code URL: https://github.com/etkecc/baibot
  7. matrix_bot_baibot_enabled: true
  8. matrix_bot_baibot_container_image_self_build: false
  9. matrix_bot_baibot_container_repo: "https://github.com/etkecc/baibot.git"
  10. matrix_bot_baibot_container_repo_version: "{{ 'main' if matrix_bot_baibot_version == 'latest' else matrix_bot_baibot_version }}"
  11. matrix_bot_baibot_container_src_files_path: "{{ matrix_base_data_path }}/baibot/container-src"
  12. # renovate: datasource=docker depName=ghcr.io/etkecc/baibot
  13. matrix_bot_baibot_version: v1.4.0
  14. matrix_bot_baibot_container_image: "{{ matrix_bot_baibot_container_image_name_prefix }}etkecc/baibot:{{ matrix_bot_baibot_version }}"
  15. matrix_bot_baibot_container_image_name_prefix: "{{ 'localhost/' if matrix_bot_baibot_container_image_self_build else 'ghcr.io/' }}"
  16. matrix_bot_baibot_container_image_force_pull: "{{ matrix_bot_baibot_container_image.endswith(':latest') }}"
  17. matrix_bot_baibot_base_path: "{{ matrix_base_data_path }}/baibot"
  18. matrix_bot_baibot_config_path: "{{ matrix_bot_baibot_base_path }}/config"
  19. matrix_bot_baibot_data_path: "{{ matrix_bot_baibot_base_path }}/data"
  20. matrix_bot_baibot_container_network: ""
  21. matrix_bot_baibot_container_additional_networks: "{{ matrix_bot_baibot_container_additional_networks_auto + matrix_bot_baibot_container_additional_networks_custom }}"
  22. matrix_bot_baibot_container_additional_networks_auto: []
  23. matrix_bot_baibot_container_additional_networks_custom: []
  24. # A list of extra arguments to pass to the container
  25. matrix_bot_baibot_container_extra_arguments: []
  26. # List of systemd services that matrix-bot-baibot.service depends on
  27. matrix_bot_baibot_systemd_required_services_list: "{{ matrix_bot_baibot_systemd_required_services_list_default + matrix_bot_baibot_systemd_required_services_list_auto + matrix_bot_baibot_systemd_required_services_list_custom }}"
  28. matrix_bot_baibot_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  29. matrix_bot_baibot_systemd_required_services_list_auto: []
  30. matrix_bot_baibot_systemd_required_services_list_custom: []
  31. # List of systemd services that matrix-bot-baibot.service wants
  32. matrix_bot_baibot_systemd_wanted_services_list: []
  33. # Controls the `homeserver.server_name` configuration setting.
  34. matrix_bot_baibot_config_homeserver_server_name: "{{ matrix_domain }}"
  35. # Controls the `homeserver.url` configuration setting.
  36. matrix_bot_baibot_config_homeserver_url: ""
  37. # Controls the `user.mxid_localpart` configuration setting.
  38. #
  39. # This affects the bot's username.
  40. # Changing this subsequently will require you to drop the bot's session/database (see `matrix_bot_baibot_data_path`),
  41. # so it can start fresh.
  42. matrix_bot_baibot_config_user_mxid_localpart: baibot
  43. # Controls the `user.password` configuration setting.
  44. matrix_bot_baibot_config_user_password: ''
  45. # Controls the `user.name` configuration setting.
  46. #
  47. # The name the bot uses as a display name and when it refers to itself.
  48. # If you leave this empty, the bot will use the default (baibot).
  49. #
  50. # Also see: `matrix_bot_baibot_config_user_mxid_localpart`
  51. matrix_bot_baibot_config_user_name: baibot
  52. # Controls the `user.encryption.recovery_passphrase` configuration setting.
  53. #
  54. # An optional passphrase to use for backing up and recovering the bot's encryption keys.
  55. # You can use any string here.
  56. #
  57. # If left empty, the recovery module will not be used and losing your session/database (see persistence)
  58. # will mean you lose access to old messages in encrypted room.
  59. #
  60. # Changing this subsequently will also cause you to lose access to old messages in encrypted rooms.
  61. # If you really need to change this:
  62. # - Set `matrix_bot_baibot_config_user_encryption_recovery_reset_allowed` to `true` and adjust the passphrase
  63. # - Remove your session file and database (see persistence)
  64. # - Restart the bot
  65. # - Then restore `matrix_bot_baibot_config_user_encryption_recovery_reset_allowed` to `false` to prevent accidental resets in the future
  66. matrix_bot_baibot_config_user_encryption_recovery_passphrase: null
  67. # Controls the `user.encryption.recovery_passphrase` configuration setting.
  68. #
  69. # An optional flag to reset the encryption recovery passphrase (see `matrix_bot_baibot_config_user_encryption_recovery_passphrase`).
  70. matrix_bot_baibot_config_user_encryption_recovery_reset_allowed: false
  71. # Controls the `command_prefix` configuration setting.
  72. # If you leave this empty, the bot will use the default (!bai).
  73. matrix_bot_baibot_config_command_prefix: "!bai"
  74. # Controls the `access.admin_patterns` configuration setting.
  75. # A space-separated list of MXID patterns which specify who is an admin.
  76. #
  77. # Example:
  78. # matrix_bot_baibot_config_access_admin_patterns:
  79. # - "@*:example.com"
  80. # - "@admin:example.net"
  81. matrix_bot_baibot_config_access_admin_patterns: "{{ [matrix_admin] if matrix_admin else [] }}"
  82. # Controls the `persistence.data_dir_path` configuration setting.
  83. #
  84. # The bot runs in a container, so this is the in-container path referring to the data directory on the host
  85. # (see `matrix_bot_baibot_data_path`).
  86. #
  87. # You generally don't need to change this.
  88. matrix_bot_baibot_config_persistence_data_dir_path: /data
  89. # Controls the `persistence.session_encryption_key` configuration setting.
  90. #
  91. # An optional secret for encrypting the bot's session data (see `matrix_bot_baibot_data_path`).
  92. # This must be 32-bytes (64 characters when HEX-encoded).
  93. # Generate it with: `openssl rand -hex 32`
  94. # Leave null or empty to avoid using encryption.
  95. # Changing this subsequently requires that you also throw away all data (see `matrix_bot_baibot_data_path`)
  96. matrix_bot_baibot_config_persistence_session_encryption_key: null
  97. # Controls the `persistence.config_encryption_key` configuration setting.
  98. #
  99. # An optional secret for encrypting bot configuration stored in Matrix's account data.
  100. # This must be 32-bytes (64 characters when HEX-encoded).
  101. # Generate it with: `openssl rand -hex 32`
  102. # Leave null or empty to avoid using encryption.
  103. # Changing this subsequently will make you lose your configuration.
  104. matrix_bot_baibot_config_persistence_config_encryption_key: null
  105. # Controls the `agents.static_definitions` configuration setting.
  106. #
  107. # There are some presets (e.g. `matrix_bot_baibot_config_agents_static_definitions_openai_*`) you can easily use to get started with a given provider.
  108. # You can also define your own agents via `matrix_bot_baibot_config_agents_static_definitions_custom`.
  109. matrix_bot_baibot_config_agents_static_definitions: "{{ matrix_bot_baibot_config_agents_static_definitions_auto + matrix_bot_baibot_config_agents_static_definitions_custom }}"
  110. matrix_bot_baibot_config_agents_static_definitions_auto: |-
  111. {{
  112. ([{
  113. 'id': matrix_bot_baibot_config_agents_static_definitions_anthropic_id,
  114. 'provider': matrix_bot_baibot_config_agents_static_definitions_anthropic_provider,
  115. 'config': matrix_bot_baibot_config_agents_static_definitions_anthropic_config,
  116. }] if matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled else [])
  117. +
  118. ([{
  119. 'id': matrix_bot_baibot_config_agents_static_definitions_groq_id,
  120. 'provider': matrix_bot_baibot_config_agents_static_definitions_groq_provider,
  121. 'config': matrix_bot_baibot_config_agents_static_definitions_groq_config,
  122. }] if matrix_bot_baibot_config_agents_static_definitions_groq_enabled else [])
  123. +
  124. ([{
  125. 'id': matrix_bot_baibot_config_agents_static_definitions_mistral_id,
  126. 'provider': matrix_bot_baibot_config_agents_static_definitions_mistral_provider,
  127. 'config': matrix_bot_baibot_config_agents_static_definitions_mistral_config,
  128. }] if matrix_bot_baibot_config_agents_static_definitions_mistral_enabled else [])
  129. +
  130. ([{
  131. 'id': matrix_bot_baibot_config_agents_static_definitions_openai_id,
  132. 'provider': matrix_bot_baibot_config_agents_static_definitions_openai_provider,
  133. 'config': matrix_bot_baibot_config_agents_static_definitions_openai_config,
  134. }] if matrix_bot_baibot_config_agents_static_definitions_openai_enabled else [])
  135. }}
  136. matrix_bot_baibot_config_agents_static_definitions_custom: []
  137. matrix_bot_baibot_config_agents_static_definitions_prompt: "{% raw %}You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time of this conversation's start is: {{ baibot_conversation_start_time_utc }}.{% endraw %}"
  138. ########################################################################################
  139. # #
  140. # Anthropic agent configuration #
  141. # #
  142. ########################################################################################
  143. matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled: false
  144. matrix_bot_baibot_config_agents_static_definitions_anthropic_id: anthropic
  145. matrix_bot_baibot_config_agents_static_definitions_anthropic_provider: anthropic
  146. matrix_bot_baibot_config_agents_static_definitions_anthropic_config: "{{ matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml | from_yaml | combine(matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension, recursive=True)}}"
  147. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml: "{{ lookup('template', 'templates/provider/anthropic-config.yml.j2') }}"
  148. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension: "{{ matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension_yaml | from_yaml if matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension_yaml | from_yaml is mapping else {} }}"
  149. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension_yaml: |
  150. # Your custom YAML configuration for this provider's configuration goes here.
  151. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_anthropic_config`).
  152. #
  153. # You can override individual variables from the default configuration, or introduce new ones.
  154. #
  155. # If you need something more special, you can take full control by
  156. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml`.
  157. #
  158. # Example configuration extension follows:
  159. #
  160. # text_generation:
  161. # temperature: 3.5
  162. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_base_url: https://api.anthropic.com/v1
  163. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_api_key: ""
  164. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_enabled: true
  165. # For valid model choices, see: https://platform.anthropic.com/docs/models
  166. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_model_id: claude-3-5-sonnet-20240620
  167. # The prompt text to use (can be null or empty to not use a prompt).
  168. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  169. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  170. # The temperature parameter controls the randomness of the generated text.
  171. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  172. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_temperature: 1.0
  173. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_response_tokens: 8192
  174. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_context_tokens: 204800
  175. ########################################################################################
  176. # #
  177. # /Anthropic agent configuration #
  178. # #
  179. ########################################################################################
  180. ########################################################################################
  181. # #
  182. # Groq agent configuration #
  183. # #
  184. ########################################################################################
  185. matrix_bot_baibot_config_agents_static_definitions_groq_enabled: false
  186. matrix_bot_baibot_config_agents_static_definitions_groq_id: groq
  187. matrix_bot_baibot_config_agents_static_definitions_groq_provider: groq
  188. matrix_bot_baibot_config_agents_static_definitions_groq_config: "{{ matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml | from_yaml | combine(matrix_bot_baibot_config_agents_static_definitions_groq_config_extension, recursive=True)}}"
  189. matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml: "{{ lookup('template', 'templates/provider/groq-config.yml.j2') }}"
  190. matrix_bot_baibot_config_agents_static_definitions_groq_config_extension: "{{ matrix_bot_baibot_config_agents_static_definitions_groq_config_extension_yaml | from_yaml if matrix_bot_baibot_config_agents_static_definitions_groq_config_extension_yaml | from_yaml is mapping else {} }}"
  191. matrix_bot_baibot_config_agents_static_definitions_groq_config_extension_yaml: |
  192. # Your custom YAML configuration for this provider's configuration goes here.
  193. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_groq_config`).
  194. #
  195. # You can override individual variables from the default configuration, or introduce new ones.
  196. #
  197. # If you need something more special, you can take full control by
  198. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml`.
  199. #
  200. # Example configuration extension follows:
  201. #
  202. # text_generation:
  203. # temperature: 3.5
  204. matrix_bot_baibot_config_agents_static_definitions_groq_config_base_url: https://api.groq.com/openai/v1
  205. matrix_bot_baibot_config_agents_static_definitions_groq_config_api_key: ""
  206. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_enabled: true
  207. # For valid model choices, see: https://platform.groq.com/docs/models
  208. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_model_id: ""
  209. # The prompt text to use (can be null or empty to not use a prompt).
  210. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  211. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  212. # The temperature parameter controls the randomness of the generated text.
  213. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  214. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_temperature: 1.0
  215. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_response_tokens: 4096
  216. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_context_tokens: 131072
  217. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_enabled: true
  218. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_model_id: whisper-large-v3
  219. ########################################################################################
  220. # #
  221. # /Groq agent configuration #
  222. # #
  223. ########################################################################################
  224. ########################################################################################
  225. # #
  226. # Mistral agent configuration #
  227. # #
  228. ########################################################################################
  229. matrix_bot_baibot_config_agents_static_definitions_mistral_enabled: false
  230. matrix_bot_baibot_config_agents_static_definitions_mistral_id: mistral
  231. matrix_bot_baibot_config_agents_static_definitions_mistral_provider: mistral
  232. matrix_bot_baibot_config_agents_static_definitions_mistral_config: "{{ matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml | from_yaml | combine(matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension, recursive=True)}}"
  233. matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml: "{{ lookup('template', 'templates/provider/mistral-config.yml.j2') }}"
  234. matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension: "{{ matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension_yaml | from_yaml if matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension_yaml | from_yaml is mapping else {} }}"
  235. matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension_yaml: |
  236. # Your custom YAML configuration for this provider's configuration goes here.
  237. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_mistral_config`).
  238. #
  239. # You can override individual variables from the default configuration, or introduce new ones.
  240. #
  241. # If you need something more special, you can take full control by
  242. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml`.
  243. #
  244. # Example configuration extension follows:
  245. #
  246. # text_generation:
  247. # temperature: 3.5
  248. matrix_bot_baibot_config_agents_static_definitions_mistral_config_base_url: https://api.mistral.ai/v1
  249. matrix_bot_baibot_config_agents_static_definitions_mistral_config_api_key: ""
  250. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_enabled: true
  251. # For valid model choices, see: https://platform.mistral.com/docs/models
  252. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_model_id: mistral-large-latest
  253. # The prompt text to use (can be null or empty to not use a prompt).
  254. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  255. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  256. # The temperature parameter controls the randomness of the generated text.
  257. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  258. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_temperature: 1.0
  259. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_response_tokens: 4096
  260. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_context_tokens: 128000
  261. ########################################################################################
  262. # #
  263. # /Mistral agent configuration #
  264. # #
  265. ########################################################################################
  266. ########################################################################################
  267. # #
  268. # OpenAI agent configuration #
  269. # #
  270. ########################################################################################
  271. matrix_bot_baibot_config_agents_static_definitions_openai_enabled: false
  272. matrix_bot_baibot_config_agents_static_definitions_openai_id: openai
  273. matrix_bot_baibot_config_agents_static_definitions_openai_provider: openai
  274. matrix_bot_baibot_config_agents_static_definitions_openai_config: "{{ matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml | from_yaml | combine(matrix_bot_baibot_config_agents_static_definitions_openai_config_extension, recursive=True)}}"
  275. matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml: "{{ lookup('template', 'templates/provider/openai-config.yml.j2') }}"
  276. matrix_bot_baibot_config_agents_static_definitions_openai_config_extension: "{{ matrix_bot_baibot_config_agents_static_definitions_openai_config_extension_yaml | from_yaml if matrix_bot_baibot_config_agents_static_definitions_openai_config_extension_yaml | from_yaml is mapping else {} }}"
  277. matrix_bot_baibot_config_agents_static_definitions_openai_config_extension_yaml: |
  278. # Your custom YAML configuration for this provider's configuration goes here.
  279. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_openai_config`).
  280. #
  281. # You can override individual variables from the default configuration, or introduce new ones.
  282. #
  283. # If you need something more special, you can take full control by
  284. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml`.
  285. #
  286. # Example configuration extension follows:
  287. #
  288. # text_generation:
  289. # temperature: 3.5
  290. matrix_bot_baibot_config_agents_static_definitions_openai_config_base_url: https://api.openai.com/v1
  291. # The API key is intentionally not required. Some OpenAI-compatible APIs do not require a key.
  292. matrix_bot_baibot_config_agents_static_definitions_openai_config_api_key: ""
  293. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_enabled: true
  294. # For valid model choices, see: https://platform.openai.com/docs/models
  295. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_model_id: gpt-4o
  296. # The prompt text to use (can be null or empty to not use a prompt).
  297. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  298. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  299. # The temperature parameter controls the randomness of the generated text.
  300. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  301. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_temperature: 1.0
  302. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_response_tokens: 16384
  303. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_context_tokens: 128000
  304. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_enabled: true
  305. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_model_id: whisper-1
  306. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_enabled: true
  307. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_model_id: tts-1-hd
  308. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_voice: onyx
  309. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_speed: 1.0
  310. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_response_format: opus
  311. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_enabled: true
  312. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_model_id: dall-e-3
  313. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_style: vivid
  314. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_size: 1024x1024
  315. ########################################################################################
  316. # #
  317. # /OpenAI agent configuration #
  318. # #
  319. ########################################################################################
  320. # Controls the `initial_global_config.handler.catch_all` configuration setting.
  321. #
  322. # This is an initial global configuration setting.
  323. # It only affects the first run of the bot. Configuration is later managed at runtime.
  324. matrix_bot_baibot_config_initial_global_config_handler_catch_all: null
  325. # Controls the `initial_global_config.handler.text_generation` configuration setting.
  326. #
  327. # This is an initial global configuration setting.
  328. # It only affects the first run of the bot. Configuration is later managed at runtime.
  329. matrix_bot_baibot_config_initial_global_config_handler_text_generation: null
  330. # Controls the `initial_global_config.handler.text_to_speech` configuration setting.
  331. #
  332. # This is an initial global configuration setting.
  333. # It only affects the first run of the bot. Configuration is later managed at runtime.
  334. matrix_bot_baibot_config_initial_global_config_handler_text_to_speech: null
  335. # Controls the `initial_global_config.handler.speech_to_text` configuration setting.
  336. #
  337. # This is an initial global configuration setting.
  338. # It only affects the first run of the bot. Configuration is later managed at runtime.
  339. matrix_bot_baibot_config_initial_global_config_handler_speech_to_text: null
  340. # Controls the `initial_global_config.handler.image_generation` configuration setting.
  341. #
  342. # This is an initial global configuration setting.
  343. # It only affects the first run of the bot. Configuration is later managed at runtime.
  344. matrix_bot_baibot_config_initial_global_config_handler_image_generation: null
  345. # Controls the `initial_global_config.user_patterns` configuration setting.
  346. #
  347. # A space-separated list of MXID patterns which specify who can use the bot.
  348. # By default, we let anyone on the homeserver use the bot.
  349. #
  350. # This is an initial global configuration setting.
  351. # It only affects the first run of the bot. Configuration is later managed at runtime.
  352. matrix_bot_baibot_config_initial_global_config_user_patterns:
  353. - "@*:{{ matrix_bot_baibot_config_homeserver_server_name }}"
  354. # Controls the `logging` configuration setting.
  355. #
  356. # This could take a single value (e.g. `warn`) to affect all tracing targets,
  357. # or individual libraries (e.g. `mxlink`, `baibot`) can be configured independently of the main level.
  358. #
  359. # Below, we configure the logging level for:
  360. # - the bot (baibot), via `matrix_bot_baibot_config_logging_level_baibot`
  361. # - the bot framework that the bot is based on (mxlink), via `matrix_bot_baibot_config_logging_level_mxlink`
  362. # - everything else (external libraries), via `matrix_bot_baibot_config_logging_level_other_libs`
  363. #
  364. # Valid values for each level are: `trace`, `debug`, `info`, `warn`, `error`.
  365. # Learn more here: https://stackoverflow.com/a/73735203
  366. matrix_bot_baibot_config_logging: "{{ matrix_bot_baibot_config_logging_level_other_libs }},mxlink={{ matrix_bot_baibot_config_logging_level_mxlink }},baibot={{ matrix_bot_baibot_config_logging_level_baibot }}"
  367. # Adjust the logging level for other libraries used by the bot.
  368. matrix_bot_baibot_config_logging_level_other_libs: warn
  369. # Affects the logging level of the bot framework (mxlink) that the bot is based on.
  370. # Related to `matrix_bot_baibot_config_logging`
  371. matrix_bot_baibot_config_logging_level_mxlink: info
  372. # Affects the logging level of the bot itself.
  373. # Related to `matrix_bot_baibot_config_logging`
  374. matrix_bot_baibot_config_logging_level_baibot: info
  375. # Holds the final baibot configuration (a combination of the default and its extension).
  376. # You most likely don't need to touch this variable. Instead, see `matrix_bot_baibot_configuration_yaml` or `matrix_bot_baibot_configuration_extension_yaml`.
  377. matrix_bot_baibot_configuration: "{{ matrix_bot_baibot_configuration_yaml | from_yaml | combine(matrix_bot_baibot_configuration_extension, recursive=True) }}"
  378. # Default baibot configuration template which covers the generic use case.
  379. # You can customize it by controlling the various variables inside it.
  380. #
  381. # For a more advanced customization, you can extend the default (see `matrix_bot_baibot_configuration_extension_yaml`)
  382. # or completely replace this variable with your own template.
  383. matrix_bot_baibot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  384. matrix_bot_baibot_configuration_extension_yaml: |
  385. # Your custom YAML configuration for baibot goes here.
  386. # This configuration extends the default starting configuration (`matrix_bot_baibot_configuration_yaml`).
  387. #
  388. # You can override individual variables from the default configuration, or introduce new ones.
  389. #
  390. # If you need something more special, you can take full control by
  391. # completely redefining `matrix_bot_baibot_configuration_yaml`.
  392. #
  393. # Example configuration extension follows:
  394. #
  395. # user:
  396. # password: something
  397. matrix_bot_baibot_configuration_extension: "{{ matrix_bot_baibot_configuration_extension_yaml | from_yaml if matrix_bot_baibot_configuration_extension_yaml | from_yaml is mapping else {} }}"
  398. # Additional environment variables to pass to the baibot container.
  399. #
  400. # Environment variables take priority over settings in the configuration file.
  401. #
  402. # Example:
  403. # matrix_bot_baibot_environment_variables_extension: |
  404. # BAIBOT_USER_PASSWORD=password
  405. matrix_bot_baibot_environment_variables_extension: ''