Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

490 行
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: v1.2.0
  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. 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 now is: {{ baibot_now_utc }}.{% endraw %}"
  135. ########################################################################################
  136. # #
  137. # Anthropic agent configuration #
  138. # #
  139. ########################################################################################
  140. matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled: false
  141. matrix_bot_baibot_config_agents_static_definitions_anthropic_id: anthropic
  142. matrix_bot_baibot_config_agents_static_definitions_anthropic_provider: anthropic
  143. 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)}}"
  144. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml: "{{ lookup('template', 'templates/provider/anthropic-config.yml.j2') }}"
  145. 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 {} }}"
  146. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension_yaml: |
  147. # Your custom YAML configuration for this provider's configuration goes here.
  148. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_anthropic_config`).
  149. #
  150. # You can override individual variables from the default configuration, or introduce new ones.
  151. #
  152. # If you need something more special, you can take full control by
  153. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml`.
  154. #
  155. # Example configuration extension follows:
  156. #
  157. # text_generation:
  158. # temperature: 3.5
  159. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_base_url: https://api.anthropic.com/v1
  160. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_api_key: ""
  161. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_enabled: true
  162. # For valid model choices, see: https://platform.anthropic.com/docs/models
  163. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_model_id: claude-3-5-sonnet-20240620
  164. # The prompt text to use (can be null or empty to not use a prompt).
  165. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  166. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  167. # The temperature parameter controls the randomness of the generated text.
  168. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  169. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_temperature: 1.0
  170. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_response_tokens: 8192
  171. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_context_tokens: 204800
  172. ########################################################################################
  173. # #
  174. # /Anthropic agent configuration #
  175. # #
  176. ########################################################################################
  177. ########################################################################################
  178. # #
  179. # Groq agent configuration #
  180. # #
  181. ########################################################################################
  182. matrix_bot_baibot_config_agents_static_definitions_groq_enabled: false
  183. matrix_bot_baibot_config_agents_static_definitions_groq_id: groq
  184. matrix_bot_baibot_config_agents_static_definitions_groq_provider: groq
  185. 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)}}"
  186. matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml: "{{ lookup('template', 'templates/provider/groq-config.yml.j2') }}"
  187. 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 {} }}"
  188. matrix_bot_baibot_config_agents_static_definitions_groq_config_extension_yaml: |
  189. # Your custom YAML configuration for this provider's configuration goes here.
  190. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_groq_config`).
  191. #
  192. # You can override individual variables from the default configuration, or introduce new ones.
  193. #
  194. # If you need something more special, you can take full control by
  195. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml`.
  196. #
  197. # Example configuration extension follows:
  198. #
  199. # text_generation:
  200. # temperature: 3.5
  201. matrix_bot_baibot_config_agents_static_definitions_groq_config_base_url: https://api.groq.com/openai/v1
  202. matrix_bot_baibot_config_agents_static_definitions_groq_config_api_key: ""
  203. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_enabled: true
  204. # For valid model choices, see: https://platform.groq.com/docs/models
  205. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_model_id: ""
  206. # The prompt text to use (can be null or empty to not use a prompt).
  207. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  208. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  209. # The temperature parameter controls the randomness of the generated text.
  210. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  211. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_temperature: 1.0
  212. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_response_tokens: 4096
  213. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_context_tokens: 131072
  214. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_enabled: true
  215. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_model_id: whisper-large-v3
  216. ########################################################################################
  217. # #
  218. # /Groq agent configuration #
  219. # #
  220. ########################################################################################
  221. ########################################################################################
  222. # #
  223. # Mistral agent configuration #
  224. # #
  225. ########################################################################################
  226. matrix_bot_baibot_config_agents_static_definitions_mistral_enabled: false
  227. matrix_bot_baibot_config_agents_static_definitions_mistral_id: mistral
  228. matrix_bot_baibot_config_agents_static_definitions_mistral_provider: mistral
  229. 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)}}"
  230. matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml: "{{ lookup('template', 'templates/provider/mistral-config.yml.j2') }}"
  231. 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 {} }}"
  232. matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension_yaml: |
  233. # Your custom YAML configuration for this provider's configuration goes here.
  234. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_mistral_config`).
  235. #
  236. # You can override individual variables from the default configuration, or introduce new ones.
  237. #
  238. # If you need something more special, you can take full control by
  239. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml`.
  240. #
  241. # Example configuration extension follows:
  242. #
  243. # text_generation:
  244. # temperature: 3.5
  245. matrix_bot_baibot_config_agents_static_definitions_mistral_config_base_url: https://api.mistral.ai/v1
  246. matrix_bot_baibot_config_agents_static_definitions_mistral_config_api_key: ""
  247. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_enabled: true
  248. # For valid model choices, see: https://platform.mistral.com/docs/models
  249. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_model_id: mistral-large-latest
  250. # The prompt text to use (can be null or empty to not use a prompt).
  251. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  252. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  253. # The temperature parameter controls the randomness of the generated text.
  254. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  255. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_temperature: 1.0
  256. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_response_tokens: 4096
  257. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_context_tokens: 128000
  258. ########################################################################################
  259. # #
  260. # /Mistral agent configuration #
  261. # #
  262. ########################################################################################
  263. ########################################################################################
  264. # #
  265. # OpenAI agent configuration #
  266. # #
  267. ########################################################################################
  268. matrix_bot_baibot_config_agents_static_definitions_openai_enabled: false
  269. matrix_bot_baibot_config_agents_static_definitions_openai_id: openai
  270. matrix_bot_baibot_config_agents_static_definitions_openai_provider: openai
  271. 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)}}"
  272. matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml: "{{ lookup('template', 'templates/provider/openai-config.yml.j2') }}"
  273. 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 {} }}"
  274. matrix_bot_baibot_config_agents_static_definitions_openai_config_extension_yaml: |
  275. # Your custom YAML configuration for this provider's configuration goes here.
  276. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_openai_config`).
  277. #
  278. # You can override individual variables from the default configuration, or introduce new ones.
  279. #
  280. # If you need something more special, you can take full control by
  281. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml`.
  282. #
  283. # Example configuration extension follows:
  284. #
  285. # text_generation:
  286. # temperature: 3.5
  287. matrix_bot_baibot_config_agents_static_definitions_openai_config_base_url: https://api.openai.com/v1
  288. # The API key is intentionally not required. Some OpenAI-compatible APIs do not require a key.
  289. matrix_bot_baibot_config_agents_static_definitions_openai_config_api_key: ""
  290. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_enabled: true
  291. # For valid model choices, see: https://platform.openai.com/docs/models
  292. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_model_id: gpt-4o
  293. # The prompt text to use (can be null or empty to not use a prompt).
  294. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  295. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  296. # The temperature parameter controls the randomness of the generated text.
  297. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  298. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_temperature: 1.0
  299. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_response_tokens: 16384
  300. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_context_tokens: 128000
  301. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_enabled: true
  302. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_model_id: whisper-1
  303. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_enabled: true
  304. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_model_id: tts-1-hd
  305. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_voice: onyx
  306. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_speed: 1.0
  307. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_response_format: opus
  308. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_enabled: true
  309. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_model_id: dall-e-3
  310. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_style: vivid
  311. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_size: 1024x1024
  312. ########################################################################################
  313. # #
  314. # /OpenAI agent configuration #
  315. # #
  316. ########################################################################################
  317. # Controls the `initial_global_config.handler.catch_all` configuration setting.
  318. #
  319. # This is an initial global configuration setting.
  320. # It only affects the first run of the bot. Configuration is later managed at runtime.
  321. matrix_bot_baibot_config_initial_global_config_handler_catch_all: null
  322. # Controls the `initial_global_config.handler.text_generation` configuration setting.
  323. #
  324. # This is an initial global configuration setting.
  325. # It only affects the first run of the bot. Configuration is later managed at runtime.
  326. matrix_bot_baibot_config_initial_global_config_handler_text_generation: null
  327. # Controls the `initial_global_config.handler.text_to_speech` configuration setting.
  328. #
  329. # This is an initial global configuration setting.
  330. # It only affects the first run of the bot. Configuration is later managed at runtime.
  331. matrix_bot_baibot_config_initial_global_config_handler_text_to_speech: null
  332. # Controls the `initial_global_config.handler.speech_to_text` configuration setting.
  333. #
  334. # This is an initial global configuration setting.
  335. # It only affects the first run of the bot. Configuration is later managed at runtime.
  336. matrix_bot_baibot_config_initial_global_config_handler_speech_to_text: null
  337. # Controls the `initial_global_config.handler.image_generation` configuration setting.
  338. #
  339. # This is an initial global configuration setting.
  340. # It only affects the first run of the bot. Configuration is later managed at runtime.
  341. matrix_bot_baibot_config_initial_global_config_handler_image_generation: null
  342. # Controls the `initial_global_config.user_patterns` configuration setting.
  343. #
  344. # A space-separated list of MXID patterns which specify who can use the bot.
  345. # By default, we let anyone on the homeserver use the bot.
  346. #
  347. # This is an initial global configuration setting.
  348. # It only affects the first run of the bot. Configuration is later managed at runtime.
  349. matrix_bot_baibot_config_initial_global_config_user_patterns:
  350. - "@*:{{ matrix_bot_baibot_config_homeserver_server_name }}"
  351. # Controls the `logging` configuration setting.
  352. #
  353. # This could take a single value (e.g. `warn`) to affect all tracing targets,
  354. # or individual libraries (e.g. `mxlink`, `baibot`) can be configured independently of the main level.
  355. #
  356. # Below, we configure the logging level for:
  357. # - the bot (baibot), via `matrix_bot_baibot_config_logging_level_baibot`
  358. # - the bot framework that the bot is based on (mxlink), via `matrix_bot_baibot_config_logging_level_mxlink`
  359. # - everything else (external libraries), via `matrix_bot_baibot_config_logging_level_other_libs`
  360. #
  361. # Valid values for each level are: `trace`, `debug`, `info`, `warn`, `error`.
  362. # Learn more here: https://stackoverflow.com/a/73735203
  363. 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 }}"
  364. # Adjust the logging level for other libraries used by the bot.
  365. matrix_bot_baibot_config_logging_level_other_libs: warn
  366. # Affects the logging level of the bot framework (mxlink) that the bot is based on.
  367. # Related to `matrix_bot_baibot_config_logging`
  368. matrix_bot_baibot_config_logging_level_mxlink: info
  369. # Affects the logging level of the bot itself.
  370. # Related to `matrix_bot_baibot_config_logging`
  371. matrix_bot_baibot_config_logging_level_baibot: info
  372. # Holds the final baibot configuration (a combination of the default and its extension).
  373. # You most likely don't need to touch this variable. Instead, see `matrix_bot_baibot_configuration_yaml` or `matrix_bot_baibot_configuration_extension_yaml`.
  374. matrix_bot_baibot_configuration: "{{ matrix_bot_baibot_configuration_yaml | from_yaml | combine(matrix_bot_baibot_configuration_extension, recursive=True) }}"
  375. # Default baibot configuration template which covers the generic use case.
  376. # You can customize it by controlling the various variables inside it.
  377. #
  378. # For a more advanced customization, you can extend the default (see `matrix_bot_baibot_configuration_extension_yaml`)
  379. # or completely replace this variable with your own template.
  380. matrix_bot_baibot_configuration_yaml: "{{ lookup('template', 'templates/config.yml.j2') }}"
  381. matrix_bot_baibot_configuration_extension_yaml: |
  382. # Your custom YAML configuration for baibot goes here.
  383. # This configuration extends the default starting configuration (`matrix_bot_baibot_configuration_yaml`).
  384. #
  385. # You can override individual variables from the default configuration, or introduce new ones.
  386. #
  387. # If you need something more special, you can take full control by
  388. # completely redefining `matrix_bot_baibot_configuration_yaml`.
  389. #
  390. # Example configuration extension follows:
  391. #
  392. # user:
  393. # password: something
  394. 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 {} }}"
  395. # Additional environment variables to pass to the baibot container.
  396. #
  397. # Environment variables take priority over settings in the configuration file.
  398. #
  399. # Example:
  400. # matrix_bot_baibot_environment_variables_extension: |
  401. # BAIBOT_USER_PASSWORD=password
  402. matrix_bot_baibot_environment_variables_extension: ''