Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

489 行
29 KiB

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