Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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