Closed cutec-chris closed 8 months ago
2023-10-21 04:56:55,125 - INFO - matrix chatgpt bot start..... 2023-10-21 04:56:58,414 - INFO - Success login via password 2023-10-21 04:57:19,500 - INFO - Message received in room Ulli Ulli | !gpt What is the meaning of life? 2023-10-21 05:01:10,900 - INFO - Message received in room Ulli Ulli | !help Missing session for device OQVCCFUXHQ Missing session for device UNCZNZWORA Missing Olm session for user @chris:matrix.ullihome.de and device OQVCCFUXHQ, skipping Missing Olm session for user @chris:matrix.ullihome.de and device UNCZNZWORA, skipping 2023-10-21 05:01:17,497 - INFO - Message received in room Ulli chatgpt1 | > <@chris:matrix.ullihome.de> !help
!gpt [prompt], generate a one time response without context conversation !chat [prompt], chat with context conversation !pic [prompt], Image generation by DALL·E or LocalAI or stable-diffusion-webui !new + chat, start a new conversation !lc [prompt], chat using langchain api !help, help message
Hello, please provide your env file with redacted info.
HOMESERVER=https://matrix.ullihome.de USER_ID=@chatgpt1:matrix.ullihome.de PASSWORD=xxxxxxxx DEVICE_ID=MatrixChatGPTBot
HOMESERVER=https://matrix.ullihome.de USER_ID=@chatgpt1:matrix.ullihome.de PASSWORD=xxxxxxx DEVICE_ID=MatrixChatGPTBot OPENAI_API_KEY=xxxxxxx GPT_API_ENDPOINT=https://api.openai.com/v1/chat/completions GPT_MODEL=gpt-3.5-turbo MAX_TOKENS=4000 TOP_P=1.0 PRESENCE_PENALTY=0.0 FREQUENCY_PENALTY=0.0 REPLY_COUNT=1 TEMPERATURE=0.8
btw, with quotes it wasnt working, it had tried to connect to the homeserver with %22 in the url
Can you try config.json?
i have, with same results
leave your docker compose file here.
services:
app:
image: docker.io/hibobmaster/matrixchatgptbot:latest
container_name: matrix_chatgpt_bot
restart: unless-stopped
# build:
# context: .
# dockerfile: ./Dockerfile
env_file:
- .env
volumes:
# - ./config.json:/app/config.json
- ./sync_db:/app/sync_db
- ./manage_db:/app/manage_db
can i enable more debug somehow ?
I can't tell what wrong is it. This is my compose file.
services:
app:
image: hibobmaster/matrixchatgptbot:v1.3.1
container_name: matrix_chatgpt_bot
restart: unless-stopped
# build:
# context: .
# dockerfile: ./Dockerfile
#env_file:
# - .env
volumes:
# use env file or config.json
- ./config.json:/app/config.json
# use touch to create an empty file db, for persist database only
- ./sync_db:/app/sync_db
# - ./element-keys.txt:/app/element-keys.txt
networks:
- matrix_network
networks:
matrix_network:
This is my config file
{
"homeserver": "https://matrix.envs.net",
"user_id": "@lullap:envs.net",
"password": "xxxxxxxxxxxxxxxxxxx",
"device_id": "MatrixChatGPTBot",
"openai_api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
You can debug by mounting bot.py to see what's happen: https://github.com/hibobmaster/matrix_chatgpt_bot/blob/8788e113733a896484090aab2fa06ca098f35075/src/bot.py#L232 Add a line logger.info(prompt)
services:
app:
image: hibobmaster/matrixchatgptbot:latest
container_name: matrix_chatgpt_bot
restart: unless-stopped
# build:
# context: .
# dockerfile: ./Dockerfile
env_file:
- .env
volumes:
# use env file or config.json
# - ./config.json:/app/config.json
# use touch to create empty db file, for persist database only
# manage_db(can be ignored) is for langchain agent, sync_db is for matrix sync database
- ./sync_db:/app/sync_db
- ./bot.py:/app/src/bot.py
# - ./manage_db:/app/manage_db
# import_keys path
# - ./element-keys.txt:/app/element-keys.txt
networks:
- matrix_network
networks:
matrix_network:
You can contact me at matrix: @bobmaster:matrix.qqs.tw
strange, my matrix server tell he cant reach your (but must be different problem)
How about this room? https://matrix.to/#/#public:matrix.qqs.tw
M_UNKNOWN wurde während des Betretens zurückgegeben. Wenn du denkst, dass diese Meldung nicht korrekt ist, reiche bitte einen Fehlerbericht ein.
thats new, i use my matrix server mainly for my bots and bridge whatsapp,signal and co maybe my certs are broken or something like that
Can you try official matrix room? I can't invite you.
Even with official matrix account, i can't invite you too.
Something must be wrong in your instance.
yes after update ... xD iam underway to search problems
Problem solved in matrix room discussion.
Iam not sure what iam doing wrong. The bot itself runs, reacts to !help and other commands but when i send an !gpt !chat, nothing happens tested first just with matrix settings then with an api key then with full env settings but everytime same results