Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

503 строки
30 KiB

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