Open PC-Admin opened 1 year ago
Is matrix_bot_chatgpt_matrix_homeserver_url
incorrect by default, so that you're finding the need to explicitly set it to http://matrix-synapse-reverse-proxy-companion:8008
?
Is matrix-synapse-reverse-proxy-companion
up? The chatgpt bot seems to be complaining that it can't reach it. Perhaps there's some trouble there. Some services were failing to start on certain deployments yesterday, before 6cda711c0b74ccb6ec192c fixed it. It may be related.
Read this: https://github.com/matrixgpt/matrix-chatgpt-bot (first page). IMHO at the moment the bot doenst work caused by openai restrictions.
Is
matrix_bot_chatgpt_matrix_homeserver_url
incorrect by default, so that you're finding the need to explicitly set it tohttp://matrix-synapse-reverse-proxy-companion:8008
?
It actually produces the same bug with both, it was just a fix I tried previously.
Is
matrix-synapse-reverse-proxy-companion
up? The chatgpt bot seems to be complaining that it can't reach it. Perhaps there's some trouble there. Some services were failing to start on certain deployments yesterday, before 6cda711 fixed it. It may be related.
Yes it's up:
root@pagrus:~# docker ps -a | grep matrix-synapse-reverse-proxy-companion
d81548c0089a nginx:1.23.3-alpine "/docker-entrypoint.…" 11 hours ago Up 11 hours 80/tcp matrix-synapse-reverse-proxy-companion
root@pagrus:~# ping http://matrix-synapse-reverse-proxy-companion
ping: http://matrix-synapse-reverse-proxy-companion: Name or service not known
root@pagrus:~# systemctl status matrix-synapse-reverse-proxy-companion
● matrix-synapse-reverse-proxy-companion.service - Synapse reverse-proxy companion
Loaded: loaded (/etc/systemd/system/matrix-synapse-reverse-proxy-companion.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-02-14 06:05:54 AWST; 11h ago
Read this: https://github.com/matrixgpt/matrix-chatgpt-bot (first page). IMHO at the moment the bot doenst work caused by openai restrictions.
I tried changing the model to a working one with the following extra variable:
matrix_bot_chatgpt_environment_variables_extension: 'CHATGPT_MODEL=text-davinci-003'
But it still produces the same error:
Feb 14 17:44:54 pagrus matrix-bot-chatgpt[26895]: Tue, 14 Feb 2023 09:44:54 GMT [ERROR] [OpenAI-API Error: TypeError: fetch failed]
Feb 14 17:44:54 pagrus matrix-bot-chatgpt[26895]: TypeError: Cannot read properties of undefined (reading 'response')
Feb 14 17:44:54 pagrus matrix-bot-chatgpt[26895]: at CommandHandler.onMessage (file:///usr/src/app/dist/handlers.js:128:86)
Feb 14 17:44:54 pagrus matrix-bot-chatgpt[26895]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Feb 14 17:44:54 pagrus matrix-bot-chatgpt[26895]: Tue, 14 Feb 2023 09:44:54 GMT [ERROR] [MatrixHttpClient] (REQ-56) { errcode: 'M_NOT_FOUND', error: 'Event not found.' }
I don't think this add-on will really work until it starts using the new OpenAI API interface. Feel free to close this issue if there's no more discussion.
Here's how i got it to work .
matrix_bot_chatgpt_environment_variables_extension: 'CHATGPT_MODEL=text-davinci-003'
without any other matrix_bot_chatgpt_environment_variables_extension
The yml only accepts one matrix_bot_chatgpt_environment_variables_extension
and accepts only the last one so it was defaulting to #matrix_bot_chatgpt_environment_variables_extension: 'MATRIX_ENCRYPTION=false'
for me.
Now it works also for me, cooool!
Now it works also for me, cooool!
your chat bot still work with this or do you have to buy credit now?
i cant get it working
No, it's only work with a valid key...
did you free key one run out?
Describe the bug
Tried out the new chatgpt bot today but it's failing to respond when pinged, it produced this error:
It's worth noting our server is behind a wireguard proxy and this has caused us to require workarounds in the past: https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2314
Here's a more verbose output of the bug:
To Reproduce My
vars.yml
file looks like this:Expected behavior A clear and concise description of what you expected to happen.
I expected it to succeed in probing the homeserver container and OpenAI service.
Matrix Server: