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

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