1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00
matrix-docker-ansible-deploy/roles/custom
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
..
matrix_playbook_migration Wire matrix_server_fqn_matrix_federation to matrix_SERVICE_*_public_federation_api_traefik_hostname for ease of use 2024-01-26 16:04:55 +02:00
matrix-base Add validation task for potential conflict between mautrix-instagram and mautrix-meta-instagram 2024-02-19 10:34:09 +02:00
matrix-bot-buscarron fix buscarron old vars 2024-02-08 21:17:12 +02:00
matrix-bot-chatgpt Downgrade ChatGPT (3.1.5 -> 3.1.4) 2024-02-22 15:41:11 +02:00
matrix-bot-draupnir Update gnuxie/draupnir Docker tag to v1.86.2 2024-02-09 21:13:33 +00:00
matrix-bot-go-neb Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bot-honoroit update honoroit (v0.9.19 -> v0.9.20) 2024-02-05 22:12:24 +02:00
matrix-bot-matrix-registration-bot Revert "Auto-generate matrix_bot_matrix_registration_bot_bot_password via group vars" 2024-01-09 10:22:20 +02:00
matrix-bot-matrix-reminder-bot Merge branch 'master' into bye-bye-nginx-proxy 2024-01-13 10:25:35 +02:00
matrix-bot-maubot Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bot-mjolnir Explicitly Declare Draupnir and Mjolnir Config and enter Bot Mode 2024-01-24 15:26:05 +01:00
matrix-bot-postmoogle Update registry.gitlab.com/etke.cc/postmoogle Docker tag to v0.9.17 2024-02-11 19:45:35 +00:00
matrix-bridge-appservice-discord Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-appservice-irc Fix NeDB to Postgres importing task for matrix-bridge-appservice-irc 2024-01-13 17:18:22 +02:00
matrix-bridge-appservice-kakaotalk Fix additional-networks connectivity for a few services 2024-01-15 11:13:47 +02:00
matrix-bridge-appservice-slack Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bridge-appservice-webhooks Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-bridge-beeper-linkedin Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-go-skype-bridge Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-heisenbridge Move matrix-bridge-heisenbridge to its own container network 2024-01-07 15:24:10 +02:00
matrix-bridge-hookshot chore(deps): update halfshot/matrix-hookshot docker tag to v5.2.1 2024-02-21 18:24:09 +00:00
matrix-bridge-mautrix-discord Disable media_patterns for mautrix-discord 2024-02-18 07:53:39 +02:00
matrix-bridge-mautrix-facebook Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-gmessages Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-googlechat Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-hangouts Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-instagram Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-meta-instagram Add support for bridging to Facebook Messenger and Instagram via mautrix-meta 2024-02-19 10:25:00 +02:00
matrix-bridge-mautrix-meta-messenger Add support for bridging to Facebook Messenger and Instagram via mautrix-meta 2024-02-19 10:25:00 +02:00
matrix-bridge-mautrix-signal Fix incorrect image tag reference for mautrix-signal 2024-02-17 08:22:33 +02:00
matrix-bridge-mautrix-slack Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mautrix-telegram chore(deps): update Telegrambot config 2024-01-20 12:58:41 +01:00
matrix-bridge-mautrix-twitter Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-mautrix-whatsapp Use to_json for matrix_mautrix_whatsapp_extev_polls 2024-02-09 16:42:48 +02:00
matrix-bridge-mautrix-wsproxy Fix additional-networks connectivity for a few services 2024-01-15 11:13:47 +02:00
matrix-bridge-mx-puppet-discord Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-groupme Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-instagram Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-slack Fix Traefik load balancer port for matrix-mx-puppet-slack 2024-01-19 12:13:22 +02:00
matrix-bridge-mx-puppet-steam Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-bridge-mx-puppet-twitter Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-bridge-sms Make homeserver services sleep after startup, instead of all dependencies sleeping separately 2024-01-12 12:45:18 +02:00
matrix-cactus-comments Add matrix-cactus-comments-client role 2024-01-09 09:53:01 +02:00
matrix-cactus-comments-client Update joseluisq/static-web-server Docker tag to v2.27.0 2024-02-13 03:02:42 +00:00
matrix-client-cinny Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-client-element Upgrade Element (v1.11.57 -> v1.11.58) 2024-02-13 19:06:14 +02:00
matrix-client-hydrogen Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-client-schildichat Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-common-after/tasks Fix all 300+ ansible-lint-reported errors 2023-03-07 17:28:15 +02:00
matrix-conduit fix: actually allow overriding the conduit config template 2024-02-19 15:14:36 +01:00
matrix-corporal Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-coturn Add lt-cred-mech authentication mechanism to Coturn 2024-02-18 09:52:00 +02:00
matrix-dendrite Add lt-cred-mech authentication mechanism to Coturn 2024-02-18 09:52:00 +02:00
matrix-dimension Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-dynamic-dns Add additional-networks support to matrix-dynamic-dns 2024-01-15 11:18:25 +02:00
matrix-email2matrix Fix yamllint-reported errors in matrix-email2matrix 2024-01-13 19:47:04 +02:00
matrix-ldap-registration-proxy Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-ma1sd Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-media-repo Add missing matrix_media_repo_container_labels_traefik_entrypoints variable and hook it to other matrix-media-repo entrypoint variables 2024-02-20 15:50:33 +02:00
matrix-prometheus-nginxlog-exporter Fix some variable typos in matrix-prometheus-nginxlog-exporter 2024-01-14 21:32:02 +02:00
matrix-prometheus-services-connect Properly switch to element-hq-synapse and introduce variables for customizing that 2024-01-17 08:40:23 +02:00
matrix-rageshake Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-registration Make Traefik labels files look better 2024-01-15 10:41:15 +02:00
matrix-sliding-sync Upgrade sliding-sync (v0.99.14 -> v0.99.15) 2024-01-22 14:36:05 +02:00
matrix-static-files Update joseluisq/static-web-server Docker tag to v2.27.0 2024-02-13 03:02:42 +00:00
matrix-sygnal Ensure each container labels file defines at least one service 2024-01-17 17:56:45 +02:00
matrix-synapse Add Synapse module auto accept invite to rooms and direct messages (#3195) 2024-02-21 18:04:14 +02:00
matrix-synapse-admin Downgrade synapse-admin (0.9.1 -> 0.8.7) 2024-02-14 18:40:57 +02:00
matrix-synapse-auto-compressor Connect matrix-synapse-auto-compressor directly to Postgres network, if integrated Postgres is used 2024-01-13 20:01:06 +02:00
matrix-synapse-reverse-proxy-companion Update nginx Docker tag to v1.25.4 2024-02-14 22:41:48 +00:00
matrix-user-creator add ensure-users-created tag alongside with ensure-matrix-users-created 2023-10-02 18:33:21 +03:00
matrix-user-verification-service Move matrix-user-verification service to its own container network 2024-01-13 17:31:03 +02:00