Slavi Pantaleev
3ee7deb2d7
Rename variable (matrix_user_groupname -> matrix_group_name)
2025-04-29 10:39:41 +03:00
Slavi Pantaleev
9fc5cdab33
Rename variable (matrix_user_username -> matrix_user_name)
2025-04-29 10:39:41 +03:00
Slavi Pantaleev
bf0918ae58
Merge branch 'master' into patch-2
2025-03-05 08:29:35 +02:00
Suguru Hirahara
c18fc93a22
Update validate_config.yml files: edit the banner message for variables name
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2025-03-05 13:30:50 +09:00
Suguru Hirahara
c385bee7af
Re-run "reuse annotate" to sort statements
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2025-03-05 12:43:41 +09:00
Suguru Hirahara
cd4b1ca72f
Tribute to deprecated components: add license information to files for matrix-bot-chatgpt
...
This commit adds copyright attirbutions in SPDX format to files for matrix-bot-chatgpt, following the REUSE's specification.
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2025-02-25 02:53:17 +09:00
Slavi Pantaleev
c47eca389b
Rework all roles to include component_(docker|container)_image_registry_prefix* variables
...
This:
- brings consistency - no more mixing `_name_prefix` and `_registry_prefix`
- adds extensibility - a future patch will allow reconfiguring all registry prefixes for all roles in the playbook
We still have `_docker_` vs `_container_` inconsistencies.
These may be worked on later.
2025-02-24 11:38:47 +02:00
Slavi Pantaleev
d12643eb91
Do not use docker stop --time (deprecated in Docker v28 in favor of --timeout or just -t)
...
`-t` works on both old and new Docker versions, so it's best to use that.
2025-02-22 21:42:18 +02:00
Suguru Hirahara
bb81885a5b
Edit roles file for matrix-bot-chatgpt: align example user ID with the documentation
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-12-09 14:41:21 +09:00
Suguru Hirahara
f0cc5da229
Edit user identifier examples: to @alice and @bob
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-12-09 14:40:41 +09:00
Suguru Hirahara
55fcaac1f1
Fix capitalization: matrix → Matrix
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-18 23:35:10 +09:00
Suguru Hirahara
54f7dd587a
Replace second-example.com and third-example.com with example.net and example.org, respectively
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-18 04:03:27 +09:00
Suguru Hirahara
b392b544da
Replace another.com with example.net
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-18 04:03:23 +09:00
Suguru Hirahara
90cfdabb2b
Replace DOMAIN with example.com
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-18 04:02:02 +09:00
Suguru Hirahara
7779b747ea
Edit user identifier example (domain.com → example.com)
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org >
2024-10-18 00:27:18 +09:00
David Mehren
c89c356e53
Add a global config option for Docker network MTU ( #3502 )
...
* Add a global config option for Docker network MTU
* Upgrade systemd_docker_base (v1.2.0-0 -> v1.3.0-0)
The new version includes `devture_systemd_docker_base_container_networks_driver_options`
due to https://github.com/devture/com.devture.ansible.role.systemd_docker_base/commit/3cc7d1239654752da3e8f65760783a280a2b92f7
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3502
* Switch from passing matrix_playbook_docker_network_mtu to respecting devture_systemd_docker_base_container_networks_driver_options
Related to:
- https://github.com/devture/com.devture.ansible.role.systemd_docker_base/commit/3cc7d1239654752da3e8f65760783a280a2b92f7
- https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3502
* Update all roles to versions that respect `devture_systemd_docker_base_container_networks_driver_options`
---------
Co-authored-by: Slavi Pantaleev <slavi@devture.com >
2024-09-18 16:20:27 +03:00
Slavi Pantaleev
9f2eff2ac7
Respect devture_systemd_docker_base_docker_service_name
...
Related to https://github.com/devture/com.devture.ansible.role.systemd_docker_base/commit/0241c71a4c08ff5e203b55d50a424387e3b077c8
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3270#issuecomment-2143782962
With this change, it should be possible for people to adjust the Docker
dependency from `docker.service` to something else (e.g. `pkg-ContainerManager-dockerd.service`),
or to completely eliminate it by setting `devture_systemd_docker_base_docker_service_name` to an empty string.
This makes it easier for people to use the playbook against a Synology DSM server.
2024-06-04 13:14:34 +03:00
Slavi Pantaleev
3758b0cfeb
Squashed commit of the following:
...
commit cf8637efaca0a0be3609fd6add0dff893a0a9194
Author: Slavi Pantaleev <slavi@devture.com >
Date: Sun Mar 24 19:14:57 2024 +0200
Make devture_systemd_docker_base_ipv6_enabled automatically reconfigure geerlingguy/ansible-role-docker
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3218
commit dc7af3bc7d25f321bf409477d823e43ea8a05803
Author: Slavi Pantaleev <slavi@devture.com >
Date: Sun Mar 24 19:10:31 2024 +0200
Replace matrix_ipv6_enabled with devture_systemd_docker_base_ipv6_enabled
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3218
commit 07e900d6a2
Author: Slavi Pantaleev <slavi@devture.com >
Date: Sun Mar 24 19:01:51 2024 +0200
Improve matrix_ipv6_enabled comments
commit 3f03ca7f69
Author: Tilo Spannagel <development@tilosp.de >
Date: Sat Mar 9 19:27:50 2024 +0000
Add setting to enable ipv6
2024-03-24 19:15:43 +02:00
Slavi Pantaleev
ce893c1b22
Downgrade ChatGPT (3.1.5 -> 3.1.4)
...
The new version is very broken. It has at least 2 issues.
The first one is:
```
Error: maxPromptTokens + max_tokens (3097 + 1024 = 4121) must be less than or equal to maxContextTokens (4097)
at ChatGPTClient.setOptions (file:///usr/src/app/node_modules/@waylaidwanderer/chatgpt-api/src/ChatGPTClient.js:72:19)
at new ChatGPTClient (file:///usr/src/app/node_modules/@waylaidwanderer/chatgpt-api/src/ChatGPTClient.js:23:14)
at main (file:///usr/src/app/dist/index.js:62:21)
at file:///usr/src/app/dist/index.js:94:1
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
```
Likely related to:
- https://github.com/matrixgpt/matrix-chatgpt-bot/issues/246
- https://github.com/matrixgpt/matrix-chatgpt-bot/pull/248
It can be tweaked around by overriding some default environment
variables (`roles/custom/matrix-bot-chatgpt/templates/env.j2`) in order to tweak them:
```
CHATGPT_MAX_CONTEXT_TOKENS=4097
CHATGPT_MAX_PROMPT_TOKENS=2500
```
This leads us to another issue:
```
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: Failed to deserialize or serialize a JSON value missing field `version` at line 1 column 6704] {
code: 'GenericFailure'
}
Node.js v20.11.1
error Command failed with exit code 1.
```
... whatever that means.
2024-02-22 15:41:11 +02:00
renovate[bot]
540810b968
chore(deps): update ghcr.io/matrixgpt/matrix-chatgpt-bot docker tag to v3.1.5
2024-02-21 16:04:49 +00:00
Slavi Pantaleev
377fce5855
Merge branch 'master' into bye-bye-nginx-proxy
2024-01-05 17:55:49 +02:00
Slavi Pantaleev
ba0a4e864a
Replace matrix-mailer with an external role
2024-01-05 17:54:50 +02:00
Slavi Pantaleev
4a6287c528
Initial work on matrix-homeserver-proxy role and eliminating matrix-nginx-proxy
...
This is still very far from usable.
Various bridges and bots are still talking to
`matrix-nginx-proxy` instead of the new `matrix-homeserver-proxy` role.
These services need to be reworked. While reworking them,
various cleanups are being done as well as adding Traefik-labels to
those that need them.
2024-01-02 16:07:40 +02:00
Slavi Pantaleev
6b04afb49a
Optimize matrix-bot-chatgpt container stopping time
2023-12-06 12:11:53 +02:00
Slavi Pantaleev
2511b34a7c
Stop containers gracefully, instead of outright killing them
2023-12-06 11:52:23 +02:00
bertybuttface
eaa9a52eeb
Update main.yml
2023-10-27 19:06:59 +01:00
Samuel Meenzen
c846ed199b
Annotate version numbers with renovate metadata
2023-10-06 14:14:03 +02:00
System user; root
621578399f
Adding variable for messing with the prompt and setting the default to the example
2023-07-27 23:00:59 -08:00
Aine
0a3e93e47c
Update chatgpt 3.1.0 -> 3.1.2
2023-06-01 08:22:35 +00:00
darsh12
8c0def5dfe
Update main.yml
...
update matrix_bot_chatgpt_version to 3.1.0
2023-05-09 14:20:27 -07:00
Slavi Pantaleev
636142c4e0
matrix-bot-chatgpt role refactoring
2023-03-16 10:21:53 +02:00
Slavi Pantaleev
a55c6b1b5a
Remove non-functional variable matrix_bot_chatgpt_loglevel
...
It wasn't used at all. It doesn't seem like there's a way to control
the log level, judging by:
- https://github.com/matrixgpt/matrix-chatgpt-bot/blob/8f9eea4114e74597dd7cfcc9454bf327ec32c2a3/.env.example
- https://github.com/matrixgpt/matrix-chatgpt-bot/blob/8f9eea4114e74597dd7cfcc9454bf327ec32c2a3/src/env.ts
2023-03-16 10:21:53 +02:00
Slavi Pantaleev
9afc46de72
Update matrix_bot_chatgpt_matrix_blacklist/matrix_bot_chatgpt_matrix_whitelist comment
2023-03-16 10:21:53 +02:00
Joe Kappus
f2ebb5a91d
Bump ChatGPT version and add new config settings
...
OpenAI changed the model a month ago and broke the bot.
This bump fixes it and adds the default model.
2023-03-09 00:02:54 -05:00
Slavi Pantaleev
dddfee16bc
Fix all 300+ ansible-lint-reported errors
2023-03-07 17:28:15 +02:00
ntallasv
f71cd3a760
fix linting in validate_config.yml
2023-02-10 00:34:07 +02:00
ntallasv
b738486684
update validate_config.yml
2023-02-10 00:13:31 +02:00
ntallasv
9615855cfa
update matrix-chatgpt-bot
2023-02-09 14:53:56 +02:00
bertybuttface
7b5ced3037
Fix linting issue.
2023-01-27 19:02:14 +00:00
bertybuttface
d66a2949f6
Update env.j2
...
Use matrix_bot_chatgpt_context for CHATGPT_CONTEXT
2023-01-27 18:57:24 +00:00
bertybuttface
7e1408ea65
Bump ChatGPT version and add new config settings
...
matrix_bot_chatgpt_context=thread
2023-01-27 18:55:13 +00:00
Slavi Pantaleev
784043cc5d
Ensure OPENAI_PRO is true/false (not True/False)
2023-01-27 08:55:38 +02:00
bertybuttface
18c3903def
Update env.j2
...
Set OPEN_AI to matrix_bot_chatgpt_openai_pro
2023-01-26 15:12:36 +00:00
bertybuttface
ad58858a96
Upgrade matrix-chatgpt (1.2.3 -> 1.3.2)
...
Add support for OPENAI_PRO for ChatGPT pro subscriptions.
2023-01-26 15:09:24 +00:00
Vladimir Panteleev
6c332da7d3
Fix ChatGPT container
...
This container needs a writable $HOME, and will fail at startup if
there isn't one.
Provide one by pointing HOME to a path under the mounted /data
directory.
2023-01-19 01:21:44 +00:00
Slavi Pantaleev
673ee508dc
Upgrade matrix-chatgpt (1.2.2 -> 1.2.3)
2023-01-12 11:25:00 +02:00
Slavi Pantaleev
ab8cb21a45
Upgrade matrix-chatgpt (1.2.1 -> 1.2.2)
2023-01-11 19:25:07 +02:00
Slavi Pantaleev
a96a22c925
chatgpt docs updates
2023-01-10 17:26:59 +02:00
bertybuttface
0b88293393
Bump ChatGPT version.
2023-01-10 14:09:08 +00:00
bertybuttface
0ec1868b95
Add matrix-bot-chatgpt.
...
Co-Authored-By: Slavi Pantaleev <slavi@devture.com >
2023-01-10 13:57:38 +00:00