From 06a390b6b8b7f199e246b298e4b0c53db265f272 Mon Sep 17 00:00:00 2001 From: Array in a Matrix Date: Wed, 8 Mar 2023 19:22:31 -0500 Subject: [PATCH 1/3] Update configuring-playbook-cactus-comments.md --- docs/configuring-playbook-cactus-comments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuring-playbook-cactus-comments.md b/docs/configuring-playbook-cactus-comments.md index 00c76f54..4d75c02e 100644 --- a/docs/configuring-playbook-cactus-comments.md +++ b/docs/configuring-playbook-cactus-comments.md @@ -24,7 +24,7 @@ matrix_cactus_comments_enabled: true # To do this you need to uncomment one of the following lines (depending if you are using synapse or dentrite as a homeserver) # If you don't know which one you use: The default is synapse ;) # matrix_synapse_allow_guest_access: true -# matrix_dentrite_allow_guest_access +# matrix_dentrite_allow_guest_access: true ``` ## Installing From f2ebb5a91d9b008b589ecf57acd2823f38d9b35f Mon Sep 17 00:00:00 2001 From: Joe Kappus Date: Thu, 9 Mar 2023 00:02:54 -0500 Subject: [PATCH 2/3] 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. --- roles/custom/matrix-bot-chatgpt/defaults/main.yml | 3 ++- roles/custom/matrix-bot-chatgpt/templates/env.j2 | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/custom/matrix-bot-chatgpt/defaults/main.yml b/roles/custom/matrix-bot-chatgpt/defaults/main.yml index 489b22c4..13b25a00 100644 --- a/roles/custom/matrix-bot-chatgpt/defaults/main.yml +++ b/roles/custom/matrix-bot-chatgpt/defaults/main.yml @@ -9,7 +9,7 @@ matrix_bot_chatgpt_docker_repo: "https://github.com/matrixgpt/matrix-chatgpt-bot matrix_bot_chatgpt_docker_repo_version: "{{ 'latest' if matrix_bot_chatgpt_version == 'latest' else matrix_bot_chatgpt_version }}" matrix_bot_chatgpt_docker_src_files_path: "{{ matrix_base_data_path }}/chatgpt/docker-src" -matrix_bot_chatgpt_version: 2.2.1 +matrix_bot_chatgpt_version: 3.0.0 matrix_bot_chatgpt_docker_image: "{{ matrix_bot_chatgpt_docker_image_name_prefix }}matrixgpt/matrix-chatgpt-bot:{{ matrix_bot_chatgpt_version }}" matrix_bot_chatgpt_docker_image_name_prefix: "{{ 'localhost/' if matrix_bot_chatgpt_container_image_self_build else 'ghcr.io/' }}" matrix_bot_chatgpt_docker_image_force_pull: "{{ matrix_bot_chatgpt_docker_image.endswith(':latest') }}" @@ -29,6 +29,7 @@ matrix_bot_chatgpt_systemd_wanted_services_list: [] # ChatGPT Settings matrix_bot_chatgpt_openai_api_key: '' +matrix_bot_chatgpt_api_model: 'gpt-3.5-turbo' matrix_bot_chatgpt_context: 'thread' # CHATGPT_CONTEXT="thread" matrix_bot_chatgpt_keyv_backend: 'file' diff --git a/roles/custom/matrix-bot-chatgpt/templates/env.j2 b/roles/custom/matrix-bot-chatgpt/templates/env.j2 index 40b2f9ff..bc8c3866 100644 --- a/roles/custom/matrix-bot-chatgpt/templates/env.j2 +++ b/roles/custom/matrix-bot-chatgpt/templates/env.j2 @@ -3,6 +3,7 @@ MATRIX_ACCESS_TOKEN={{ matrix_bot_chatgpt_matrix_access_token }} OPENAI_API_KEY={{ matrix_bot_chatgpt_openai_api_key }} CHATGPT_CONTEXT={{ matrix_bot_chatgpt_context }} +CHATGPT_API_MODEL={{ matrix_bot_chatgpt_api_model }} KEYV_BACKEND={{ matrix_bot_chatgpt_keyv_backend }} KEYV_URL={{ matrix_bot_chatgpt_keyv_url }} From 70af9a44816faff432ecd913cf72cdded6c18f86 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 9 Mar 2023 08:56:51 +0200 Subject: [PATCH 3/3] Upgrade Traefik (v2.9.8-1 -> v2.9.8-2) - not using unprivileged ports anymore --- requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index 013a6c53..05c5aa70 100644 --- a/requirements.yml +++ b/requirements.yml @@ -55,7 +55,7 @@ version: v0.1.1-1 - src: git+https://github.com/devture/com.devture.ansible.role.traefik.git - version: v2.9.8-1 + version: v2.9.8-2 - src: git+https://github.com/devture/com.devture.ansible.role.traefik_certs_dumper.git version: v2.8.1-0