Commit Graph

52 Commits

Author SHA1 Message Date
Max Kammler
d72b0ba772 add CHATGPT_IGNORE_MEDIA 2023-02-07 10:34:43 +01:00
Max Kammler
3af7b88825 ignore non-text messages 2023-02-07 10:05:32 +01:00
bertybuttface
fba56ab5fd Add example CHATGPT_PROMPT_PREFIX 2023-02-06 15:13:32 +00:00
bertybuttface
8ace02896e Add CHATGPT_PROMPT_PREFIX setting 2023-02-06 15:00:29 +00:00
bertybuttface
e39f3fdeee Switch to waylaidwanderer 2023-02-06 14:08:45 +00:00
bertybuttface
205d87ffcf Small tidy up 2023-02-06 13:47:09 +00:00
bertybuttface
a3184aa43a Respect disabled MATRIX_ENCRYPTION 2023-02-06 13:42:17 +00:00
bertybuttface
89ec060bc1 Remove KEYV_BOT_ENCRYPTION 2023-02-06 00:38:54 +00:00
bertybuttface
35beb205b0 Add persistence 2023-02-04 16:58:43 +00:00
Max Kammler
f24ca35c74 removed openai pro setting in env 2023-02-03 15:57:24 +01:00
Max Kammler
dcf038df1f add CHATGPT_MODEL environment variable 2023-02-03 11:35:49 +01:00
Max Kammler
e45ac29a8e Change bot to use official API keys 2023-02-02 13:44:14 +01:00
bertybuttface
5f9547a556
Hotfix master 2023-01-28 13:04:56 +00:00
bertybuttface
6bf0a56560 Add support for refreshing ChatGPT sessions regularly
Call `api.refreshSession()` every hour to refresh the ChatGPT session

Call `api.resetSession()` every 24 hours to reset the ChatGPT session
2023-01-27 18:49:36 +00:00
bertybuttface
060dd562ea Error if incorrect combination of MATRIX_THREADS and CHATGPT_CONTEXT 2023-01-27 18:01:52 +00:00
bertybuttface
177fe3c60e Add basic support for optional threads. 2023-01-27 17:45:41 +00:00
bertybuttface
e1d7b99706 Revert "Remove MATRIX_THREADS as it is not currently used"
This reverts commit 0865962e87.
2023-01-27 17:26:24 +00:00
bertybuttface
08f3c64e1a Add support for configurable context levels. 2023-01-27 17:09:54 +00:00
bertybuttface
0865962e87 Remove MATRIX_THREADS as it is not currently used 2023-01-25 00:35:32 +00:00
bertybuttface
f1bc898acb Update handlers.ts
Use CHATGPT_TIMEOUT instead of arbitrary value for setTyping timeout.
2023-01-24 16:18:22 +00:00
bertybuttface
e8efc4d405 Add support for pro account 2023-01-24 15:56:31 +00:00
bertybuttface
953a3dcb43
Merge pull request #56 from matrixgpt/code-refactor
Code refactor
2023-01-19 19:21:28 +00:00
bertybuttface
c1ef71817a Cleanup code 2023-01-19 17:43:55 +00:00
Juan Carlos Romero
6dc08024d2 Better MATRIX_DEFAULT_PREFIX description 2023-01-14 11:53:48 +01:00
Juan Carlos Romero
cb477613da Fix spaces 2023-01-13 08:12:29 +01:00
Juan Carlos Romero
30e6a0af9b Descriptions added for all the env variables 2023-01-12 23:52:55 +01:00
bertybuttface
c97901e0cd Add MATRIX_PREFIX_DM feature 2023-01-12 00:16:43 +00:00
bertybuttface
a5d715ee1f Make rich text configurable 2023-01-08 21:00:32 +00:00
bertybuttface
6713b66da4 Add Markdown support for ChatGPT 2023-01-08 20:19:43 +00:00
bertybuttface
0d6120c1bb Allow blank MATRIX_BLACKLIST and MATRIX_WHITELIST 2023-01-08 00:15:03 +00:00
bertybuttface
c7b9cbf962 Add MATRIX_BLACKLIST and MATRIX_WHITELIST 2023-01-07 21:58:30 +00:00
bertybuttface
1770e1f1db Tidy up env settings
Only leave what we are currently using.
2023-01-07 19:09:59 +00:00
bertybuttface
a3c828c9fa Lookup rootEvent to check prefix in thread. 2023-01-07 18:17:13 +00:00
bertybuttface
49d0ae0d60 Hotfix last PR
We still need that util function for now, can remove later. Also we don't need MATRIX_BOT_USERNAME any more if we have MATRIX_ACCESS_TOKEN set.
2023-01-07 00:30:09 +00:00
bertybuttface
19a8dfb0e4 Cache details for mentions. 2023-01-06 23:59:52 +00:00
bertybuttface
2f6c0379ab Update handlers.ts so we ignore edit messages 2023-01-06 23:15:28 +00:00
bertybuttface
0c4f3303a9 Make MATRIX_PREFIX configurable at conversation level
At the conversation level.
2023-01-05 22:24:19 +00:00
bertybuttface
65b9b28435 Add types to variable and tidy code 2023-01-03 02:49:59 +00:00
bertybuttface
f7f55412a6 Fix MATRIX_PREFIX_REPLY 2023-01-03 02:38:46 +00:00
bertybuttface
4946ac5fc1 Various fixes 2022-12-31 22:09:14 +00:00
bertybuttface
c1b78d8d0e Add support for ChatGPT conversations via Matrix threads 2022-12-29 03:30:56 +00:00
bertybuttface
b3af083b80 Fix isGoogleLogin after merge. 2022-12-29 03:29:59 +00:00
bertybuttface
72fe67312d Fix missing cryptoStore after merge 2022-12-29 03:29:10 +00:00
Juan Carlos Romero
42c8ce02f1 Add a prefix to make the bot reply 2022-12-29 03:12:18 +00:00
bertybuttface
d92ba25c18
Merge branch 'main' into storage-fixes 2022-12-29 02:48:50 +00:00
bertybuttface
159f14b807
Merge pull request #3 from bertybuttface/matrix-login-fix
Use matrix access token if we have it, print one if we don't.
2022-12-29 02:46:12 +00:00
bertybuttface
f33d01e531 Fix storage, e2e and add feature flags 2022-12-29 02:38:29 +00:00
bertybuttface
c5793ec12b Use matrix access token if we have it, print one if we don't. 2022-12-29 01:34:51 +00:00
bertybuttface
0b55624710
Fix for when isGoogleLogin undefined 2022-12-26 00:40:56 +00:00
bertybuttface
9a4bed608a
Fix isGoogleLogin ignoring setting and defaulting to true 2022-12-24 15:13:56 +00:00