Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

556 Zeilen
33 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.15.0
  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. # Authentication settings (`user.*` configuration keys).
  48. #
  49. # baibot supports 2 mutually-exclusive authentication modes.
  50. # Set EITHER:
  51. # - password authentication: `matrix_bot_baibot_config_user_password`
  52. # OR:
  53. # - access-token authentication: `matrix_bot_baibot_config_user_access_token` + `matrix_bot_baibot_config_user_device_id`
  54. #
  55. # Password authentication is recommended for most playbook-managed deployments,
  56. # because it integrates with the `matrix-user-creator` role and can auto-create
  57. # the bot account (via the `ensure-matrix-users-created` playbook tag).
  58. # This remains true even on many MAS-enabled deployments where the bot account
  59. # is local and playbook-managed.
  60. # Controls the `user.password` configuration setting.
  61. matrix_bot_baibot_config_user_password: null
  62. # Controls the `user.access_token` configuration setting.
  63. matrix_bot_baibot_config_user_access_token: null
  64. # Controls the `user.device_id` configuration setting.
  65. matrix_bot_baibot_config_user_device_id: null
  66. # Controls the `user.name` configuration setting.
  67. #
  68. # The name the bot uses as a display name and when it refers to itself.
  69. # If you leave this empty, the bot will use the default (baibot).
  70. #
  71. # Also see: `matrix_bot_baibot_config_user_mxid_localpart`
  72. matrix_bot_baibot_config_user_name: baibot
  73. # Controls the `user.avatar` configuration setting.
  74. #
  75. # An optional path to an image file to be used as a custom avatar image.
  76. # This path should be an in-container path (e.g., `/data/avatar.png`).
  77. # Any type of content type is supported, but stick to common image formats (PNG, JPG, ..) for better compatibility with various Matrix clients.
  78. #
  79. # To use a custom avatar:
  80. # - Use the auxiliary role (`aux_` variables) to upload your avatar file to the server (e.g. to {{ matrix_bot_baibot_data_path }}/avatar.png on the host),
  81. # or do it any other way (without Ansible) you prefer
  82. # - Set this variable to something like `/data/avatar.png` (the in-container path)
  83. #
  84. # Possible values:
  85. # - null or empty string: use the default baibot avatar
  86. # - "keep": don't touch the avatar, keep whatever is already set (useful if you manage the avatar via other means)
  87. # - any other value: path to a custom avatar image file (must be an in-container path like `/data/avatar.png`)
  88. matrix_bot_baibot_config_user_avatar: null
  89. # Controls the `user.encryption.recovery_passphrase` configuration setting.
  90. #
  91. # An optional passphrase to use for backing up and recovering the bot's encryption keys.
  92. # You can use any string here.
  93. #
  94. # If left empty, the recovery module will not be used and losing your session/database (see persistence)
  95. # will mean you lose access to old messages in encrypted room.
  96. #
  97. # Changing this subsequently will also cause you to lose access to old messages in encrypted rooms.
  98. # If you really need to change this:
  99. # - Set `matrix_bot_baibot_config_user_encryption_recovery_reset_allowed` to `true` and adjust the passphrase
  100. # - Remove your session file and database (see persistence)
  101. # - Restart the bot
  102. # - Then restore `matrix_bot_baibot_config_user_encryption_recovery_reset_allowed` to `false` to prevent accidental resets in the future
  103. matrix_bot_baibot_config_user_encryption_recovery_passphrase: null
  104. # Controls the `user.encryption.recovery_passphrase` configuration setting.
  105. #
  106. # An optional flag to reset the encryption recovery passphrase (see `matrix_bot_baibot_config_user_encryption_recovery_passphrase`).
  107. matrix_bot_baibot_config_user_encryption_recovery_reset_allowed: false
  108. # Controls the `command_prefix` configuration setting.
  109. # If you leave this empty, the bot will use the default (!bai).
  110. matrix_bot_baibot_config_command_prefix: "!bai"
  111. # Controls the `room.post_join_self_introduction_enabled` configuration setting.
  112. # Influences whether the bot should send an introduction message after joining a room.
  113. matrix_bot_baibot_config_room_post_join_self_introduction_enabled: true
  114. # Controls the `access.admin_patterns` configuration setting.
  115. # A space-separated list of MXID patterns which specify who is an admin.
  116. #
  117. # Example:
  118. # matrix_bot_baibot_config_access_admin_patterns:
  119. # - "@*:example.com"
  120. # - "@admin:example.net"
  121. matrix_bot_baibot_config_access_admin_patterns: "{{ [matrix_admin] if matrix_admin else [] }}"
  122. # Controls the `persistence.data_dir_path` configuration setting.
  123. #
  124. # The bot runs in a container, so this is the in-container path referring to the data directory on the host
  125. # (see `matrix_bot_baibot_data_path`).
  126. #
  127. # You generally don't need to change this.
  128. matrix_bot_baibot_config_persistence_data_dir_path: /data
  129. # Controls the `persistence.session_encryption_key` configuration setting.
  130. #
  131. # An optional secret for encrypting the bot's session data (see `matrix_bot_baibot_data_path`).
  132. # This must be 32-bytes (64 characters when HEX-encoded).
  133. # Generate it with: `openssl rand -hex 32`
  134. # Leave null or empty to avoid using encryption.
  135. # Changing this subsequently requires that you also throw away all data (see `matrix_bot_baibot_data_path`)
  136. matrix_bot_baibot_config_persistence_session_encryption_key: null
  137. # Controls the `persistence.config_encryption_key` configuration setting.
  138. #
  139. # An optional secret for encrypting bot configuration stored in Matrix's account data.
  140. # This must be 32-bytes (64 characters when HEX-encoded).
  141. # Generate it with: `openssl rand -hex 32`
  142. # Leave null or empty to avoid using encryption.
  143. # Changing this subsequently will make you lose your configuration.
  144. matrix_bot_baibot_config_persistence_config_encryption_key: null
  145. # Controls the `agents.static_definitions` configuration setting.
  146. #
  147. # 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.
  148. # You can also define your own agents via `matrix_bot_baibot_config_agents_static_definitions_custom`.
  149. matrix_bot_baibot_config_agents_static_definitions: "{{ matrix_bot_baibot_config_agents_static_definitions_auto + matrix_bot_baibot_config_agents_static_definitions_custom }}"
  150. matrix_bot_baibot_config_agents_static_definitions_auto: |-
  151. {{
  152. ([{
  153. 'id': matrix_bot_baibot_config_agents_static_definitions_anthropic_id,
  154. 'provider': matrix_bot_baibot_config_agents_static_definitions_anthropic_provider,
  155. 'config': matrix_bot_baibot_config_agents_static_definitions_anthropic_config,
  156. }] if matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled else [])
  157. +
  158. ([{
  159. 'id': matrix_bot_baibot_config_agents_static_definitions_groq_id,
  160. 'provider': matrix_bot_baibot_config_agents_static_definitions_groq_provider,
  161. 'config': matrix_bot_baibot_config_agents_static_definitions_groq_config,
  162. }] if matrix_bot_baibot_config_agents_static_definitions_groq_enabled else [])
  163. +
  164. ([{
  165. 'id': matrix_bot_baibot_config_agents_static_definitions_mistral_id,
  166. 'provider': matrix_bot_baibot_config_agents_static_definitions_mistral_provider,
  167. 'config': matrix_bot_baibot_config_agents_static_definitions_mistral_config,
  168. }] if matrix_bot_baibot_config_agents_static_definitions_mistral_enabled else [])
  169. +
  170. ([{
  171. 'id': matrix_bot_baibot_config_agents_static_definitions_openai_id,
  172. 'provider': matrix_bot_baibot_config_agents_static_definitions_openai_provider,
  173. 'config': matrix_bot_baibot_config_agents_static_definitions_openai_config,
  174. }] if matrix_bot_baibot_config_agents_static_definitions_openai_enabled else [])
  175. }}
  176. matrix_bot_baibot_config_agents_static_definitions_custom: []
  177. 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 %}"
  178. ########################################################################################
  179. # #
  180. # Anthropic agent configuration #
  181. # #
  182. ########################################################################################
  183. matrix_bot_baibot_config_agents_static_definitions_anthropic_enabled: false
  184. matrix_bot_baibot_config_agents_static_definitions_anthropic_id: anthropic
  185. matrix_bot_baibot_config_agents_static_definitions_anthropic_provider: anthropic
  186. 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) }}"
  187. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml: "{{ lookup('template', 'templates/provider/anthropic-config.yml.j2') }}"
  188. 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 {} }}"
  189. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_extension_yaml: |
  190. # Your custom YAML configuration for this provider's configuration goes here.
  191. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_anthropic_config`).
  192. #
  193. # You can override individual variables from the default configuration, or introduce new ones.
  194. #
  195. # If you need something more special, you can take full control by
  196. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_anthropic_config_yaml`.
  197. #
  198. # Example configuration extension follows:
  199. #
  200. # text_generation:
  201. # temperature: 3.5
  202. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_base_url: https://api.anthropic.com/v1
  203. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_api_key: ""
  204. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_enabled: true
  205. # For valid model choices, see: https://docs.claude.com/en/docs/about-claude/models/overview
  206. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_model_id: claude-sonnet-4-5-20250929
  207. # The prompt text to use (can be null or empty to not use a prompt).
  208. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  209. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  210. # The temperature parameter controls the randomness of the generated text.
  211. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  212. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_temperature: 1.0
  213. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_response_tokens: 8192
  214. matrix_bot_baibot_config_agents_static_definitions_anthropic_config_text_generation_max_context_tokens: 204800
  215. ########################################################################################
  216. # #
  217. # /Anthropic agent configuration #
  218. # #
  219. ########################################################################################
  220. ########################################################################################
  221. # #
  222. # Groq agent configuration #
  223. # #
  224. ########################################################################################
  225. matrix_bot_baibot_config_agents_static_definitions_groq_enabled: false
  226. matrix_bot_baibot_config_agents_static_definitions_groq_id: groq
  227. matrix_bot_baibot_config_agents_static_definitions_groq_provider: groq
  228. 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) }}"
  229. matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml: "{{ lookup('template', 'templates/provider/groq-config.yml.j2') }}"
  230. 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 {} }}"
  231. matrix_bot_baibot_config_agents_static_definitions_groq_config_extension_yaml: |
  232. # Your custom YAML configuration for this provider's configuration goes here.
  233. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_groq_config`).
  234. #
  235. # You can override individual variables from the default configuration, or introduce new ones.
  236. #
  237. # If you need something more special, you can take full control by
  238. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_groq_config_yaml`.
  239. #
  240. # Example configuration extension follows:
  241. #
  242. # text_generation:
  243. # temperature: 3.5
  244. matrix_bot_baibot_config_agents_static_definitions_groq_config_base_url: https://api.groq.com/openai/v1
  245. matrix_bot_baibot_config_agents_static_definitions_groq_config_api_key: ""
  246. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_enabled: true
  247. # For valid model choices, see: https://platform.groq.com/docs/models
  248. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_model_id: ""
  249. # The prompt text to use (can be null or empty to not use a prompt).
  250. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  251. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  252. # The temperature parameter controls the randomness of the generated text.
  253. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  254. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_temperature: 1.0
  255. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_response_tokens: 4096
  256. matrix_bot_baibot_config_agents_static_definitions_groq_config_text_generation_max_context_tokens: 131072
  257. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_enabled: true
  258. matrix_bot_baibot_config_agents_static_definitions_groq_config_speech_to_text_model_id: whisper-large-v3
  259. ########################################################################################
  260. # #
  261. # /Groq agent configuration #
  262. # #
  263. ########################################################################################
  264. ########################################################################################
  265. # #
  266. # Mistral agent configuration #
  267. # #
  268. ########################################################################################
  269. matrix_bot_baibot_config_agents_static_definitions_mistral_enabled: false
  270. matrix_bot_baibot_config_agents_static_definitions_mistral_id: mistral
  271. matrix_bot_baibot_config_agents_static_definitions_mistral_provider: mistral
  272. 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) }}"
  273. matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml: "{{ lookup('template', 'templates/provider/mistral-config.yml.j2') }}"
  274. 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 {} }}"
  275. matrix_bot_baibot_config_agents_static_definitions_mistral_config_extension_yaml: |
  276. # Your custom YAML configuration for this provider's configuration goes here.
  277. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_mistral_config`).
  278. #
  279. # You can override individual variables from the default configuration, or introduce new ones.
  280. #
  281. # If you need something more special, you can take full control by
  282. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_mistral_config_yaml`.
  283. #
  284. # Example configuration extension follows:
  285. #
  286. # text_generation:
  287. # temperature: 3.5
  288. matrix_bot_baibot_config_agents_static_definitions_mistral_config_base_url: https://api.mistral.ai/v1
  289. matrix_bot_baibot_config_agents_static_definitions_mistral_config_api_key: ""
  290. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_enabled: true
  291. # For valid model choices, see: https://platform.mistral.com/docs/models
  292. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_model_id: mistral-large-latest
  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_mistral_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_mistral_config_text_generation_temperature: 1.0
  299. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_response_tokens: 4096
  300. matrix_bot_baibot_config_agents_static_definitions_mistral_config_text_generation_max_context_tokens: 128000
  301. ########################################################################################
  302. # #
  303. # /Mistral agent configuration #
  304. # #
  305. ########################################################################################
  306. ########################################################################################
  307. # #
  308. # OpenAI agent configuration #
  309. # #
  310. ########################################################################################
  311. matrix_bot_baibot_config_agents_static_definitions_openai_enabled: false
  312. matrix_bot_baibot_config_agents_static_definitions_openai_id: openai
  313. matrix_bot_baibot_config_agents_static_definitions_openai_provider: openai
  314. 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) }}"
  315. matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml: "{{ lookup('template', 'templates/provider/openai-config.yml.j2') }}"
  316. 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 {} }}"
  317. matrix_bot_baibot_config_agents_static_definitions_openai_config_extension_yaml: |
  318. # Your custom YAML configuration for this provider's configuration goes here.
  319. # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_openai_config`).
  320. #
  321. # You can override individual variables from the default configuration, or introduce new ones.
  322. #
  323. # If you need something more special, you can take full control by
  324. # completely redefining `matrix_bot_baibot_config_agents_static_definitions_openai_config_yaml`.
  325. #
  326. # Example configuration extension follows:
  327. #
  328. # text_generation:
  329. # temperature: 3.5
  330. matrix_bot_baibot_config_agents_static_definitions_openai_config_base_url: https://api.openai.com/v1
  331. # The API key is intentionally not required. Some OpenAI-compatible APIs do not require a key.
  332. matrix_bot_baibot_config_agents_static_definitions_openai_config_api_key: ""
  333. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_enabled: true
  334. # For valid model choices, see: https://platform.openai.com/docs/models
  335. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_model_id: gpt-5.2
  336. # The prompt text to use (can be null or empty to not use a prompt).
  337. # See: https://huggingface.co/docs/transformers/en/tasks/prompting
  338. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_prompt: "{{ matrix_bot_baibot_config_agents_static_definitions_prompt }}"
  339. # The temperature parameter controls the randomness of the generated text.
  340. # See: https://blogs.novita.ai/what-are-large-language-model-settings-temperature-top-p-and-max-tokens/#what-is-llm-temperature
  341. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_temperature: 1.0
  342. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_response_tokens: ~
  343. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_completion_tokens: 128000
  344. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_max_context_tokens: 400000
  345. # Built-in tools configuration (OpenAI only).
  346. # These tools extend the model's capabilities but are disabled by default following upstream defaults.
  347. # See: https://github.com/etkecc/baibot/blob/main/docs/features.md#%EF%B8%8F-built-in-tools-openai-only
  348. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_tools_web_search: false
  349. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_generation_tools_code_interpreter: false
  350. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_enabled: true
  351. matrix_bot_baibot_config_agents_static_definitions_openai_config_speech_to_text_model_id: whisper-1
  352. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_enabled: true
  353. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_model_id: tts-1-hd
  354. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_voice: onyx
  355. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_speed: 1.0
  356. matrix_bot_baibot_config_agents_static_definitions_openai_config_text_to_speech_response_format: opus
  357. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_enabled: true
  358. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_model_id: gpt-image-1.5
  359. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_style: null
  360. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_size: null
  361. matrix_bot_baibot_config_agents_static_definitions_openai_config_image_generation_quality: null
  362. ########################################################################################
  363. # #
  364. # /OpenAI agent configuration #
  365. # #
  366. ########################################################################################
  367. # Controls the `initial_global_config.handler.catch_all` configuration setting.
  368. #
  369. # This is an initial global configuration setting.
  370. # It only affects the first run of the bot. Configuration is later managed at runtime.
  371. matrix_bot_baibot_config_initial_global_config_handler_catch_all: null
  372. # Controls the `initial_global_config.handler.text_generation` configuration setting.
  373. #
  374. # This is an initial global configuration setting.
  375. # It only affects the first run of the bot. Configuration is later managed at runtime.
  376. matrix_bot_baibot_config_initial_global_config_handler_text_generation: null
  377. # Controls the `initial_global_config.handler.text_to_speech` configuration setting.
  378. #
  379. # This is an initial global configuration setting.
  380. # It only affects the first run of the bot. Configuration is later managed at runtime.
  381. matrix_bot_baibot_config_initial_global_config_handler_text_to_speech: null
  382. # Controls the `initial_global_config.handler.speech_to_text` configuration setting.
  383. #
  384. # This is an initial global configuration setting.
  385. # It only affects the first run of the bot. Configuration is later managed at runtime.
  386. matrix_bot_baibot_config_initial_global_config_handler_speech_to_text: null
  387. # Controls the `initial_global_config.handler.image_generation` configuration setting.
  388. #
  389. # This is an initial global configuration setting.
  390. # It only affects the first run of the bot. Configuration is later managed at runtime.
  391. matrix_bot_baibot_config_initial_global_config_handler_image_generation: null
  392. # Controls the `initial_global_config.user_patterns` configuration setting.
  393. #
  394. # A space-separated list of MXID patterns which specify who can use the bot.
  395. # By default, we let anyone on the homeserver use the bot.
  396. #
  397. # This is an initial global configuration setting.
  398. # It only affects the first run of the bot. Configuration is later managed at runtime.
  399. matrix_bot_baibot_config_initial_global_config_user_patterns:
  400. - "@*:{{ matrix_bot_baibot_config_homeserver_server_name }}"
  401. # Controls the `logging` configuration setting.
  402. #
  403. # This could take a single value (e.g. `warn`) to affect all tracing targets,
  404. # or individual libraries (e.g. `mxlink`, `baibot`) can be configured independently of the main level.
  405. #
  406. # Below, we configure the logging level for:
  407. # - the bot (baibot), via `matrix_bot_baibot_config_logging_level_baibot`
  408. # - the bot framework that the bot is based on (mxlink), via `matrix_bot_baibot_config_logging_level_mxlink`
  409. # - everything else (external libraries), via `matrix_bot_baibot_config_logging_level_other_libs`
  410. #
  411. # Valid values for each level are: `trace`, `debug`, `info`, `warn`, `error`.
  412. # Learn more here: https://stackoverflow.com/a/73735203
  413. 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 }}"
  414. # Adjust the logging level for other libraries used by the bot.
  415. matrix_bot_baibot_config_logging_level_other_libs: warn
  416. # Affects the logging level of the bot framework (mxlink) that the bot is based on.
  417. # Related to `matrix_bot_baibot_config_logging`
  418. matrix_bot_baibot_config_logging_level_mxlink: info
  419. # Affects the logging level of the bot itself.
  420. # Related to `matrix_bot_baibot_config_logging`
  421. matrix_bot_baibot_config_logging_level_baibot: info
  422. # Holds the final baibot configuration (a combination of the default and its extension).
  423. # You most likely don't need to touch this variable. Instead, see `matrix_bot_baibot_configuration_yaml` or `matrix_bot_baibot_configuration_extension_yaml`.
  424. matrix_bot_baibot_configuration: "{{ matrix_bot_baibot_configuration_yaml | from_yaml | combine(matrix_bot_baibot_configuration_extension, recursive=True) }}"
  425. # Default baibot configuration template which covers the generic use case.
  426. # You can customize it by controlling the various variables inside it.
  427. #
  428. # For a more advanced customization, you can extend the default (see `matrix_bot_baibot_configuration_extension_yaml`)
  429. # or completely replace this variable with your own template.
  430. matrix_bot_baibot_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  431. matrix_bot_baibot_configuration_extension_yaml: |
  432. # Your custom YAML configuration for baibot goes here.
  433. # This configuration extends the default starting configuration (`matrix_bot_baibot_configuration_yaml`).
  434. #
  435. # You can override individual variables from the default configuration, or introduce new ones.
  436. #
  437. # If you need something more special, you can take full control by
  438. # completely redefining `matrix_bot_baibot_configuration_yaml`.
  439. #
  440. # Example configuration extension follows:
  441. #
  442. # user:
  443. # password: something
  444. 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 {} }}"
  445. # Additional environment variables to pass to the baibot container.
  446. #
  447. # Environment variables take priority over settings in the configuration file.
  448. #
  449. # Example:
  450. # matrix_bot_baibot_environment_variables_extension: |
  451. # BAIBOT_USER_PASSWORD=password
  452. matrix_bot_baibot_environment_variables_extension: ''
  453. # matrix_bot_baibot_restart_necessary controls whether the service
  454. # will be restarted (when true) or merely started (when false) by the
  455. # systemd service manager role (when conditional restart is enabled).
  456. #
  457. # This value is automatically computed during installation based on whether
  458. # any configuration files, the systemd service file, or the container image changed.
  459. # The default of `false` means "no restart needed" — appropriate when the role's
  460. # installation tasks haven't run (e.g., due to --tags skipping them).
  461. matrix_bot_baibot_restart_necessary: false