Commit Graph

75 Commits

Author SHA1 Message Date
gloomy-ghost
e65461c886 Allow threaded query without prefix, fixes #133 2023-11-09 00:53:15 +08:00
Max Kammler
2d437334a6 fix typo 2023-11-07 10:22:06 +01:00
Max Kammler
d8df41d101 add option to increase token size; closes #246 2023-11-07 10:08:54 +01:00
bertybuttface
1dca8d6659 Update index.ts 2023-10-27 17:20:57 +01:00
sg-qwt
d0d6c5d0b4
Add support for Azure OpenAI (#186)
Co-authored-by: 無名氏 <hello@edgerunners.eu.org>
2023-06-08 17:02:44 +02:00
Ludovic Dubost
d62e89965a
#177 Custom API URL is not working (#178) 2023-06-01 09:33:17 +02:00
Derek
8efd3f9491
Added chatgpt temperature environment variable (#162)
* added chatgpt temperature enviroment variable

* accidentally use float instead of number

* fixed inline

* Updated the readme

* Updated the env example

---------

Co-authored-by: D <>
2023-05-10 12:07:35 +02:00
Max Kammler
b11d566ecb
Feature/reverse proxy (#161)
* add CHATGPT_REVERSE_PROXY

---------

Co-authored-by: Max Kammler <max.kammler@icloud.com>
2023-05-09 10:33:22 +02:00
Max Kammler
6576fc3d84 add error code to response 2023-04-11 11:40:50 +02:00
Max Kammler
af954b7632 add new env for model, add warning about new version 2023-03-03 12:56:52 +01:00
Max Kammler
2d7d482fca rename env, bump chatgpt client version 2023-03-03 11:59:52 +01:00
Max Kammler
a6eed7954a set default to official ChatGPT model from OpenAI 2023-03-02 16:07:54 +01:00
bertybuttface
98803b98e2
Merge pull request #99 from matrixgpt/room-acl
Add basic room ACL.
2023-02-18 15:04:13 +00:00
bertybuttface
81530d2462 Update index.ts 2023-02-10 15:32:41 +00:00
bertybuttface
fb46f6d9c5 Add basic room ACL. 2023-02-08 17:34:10 +00:00
bertybuttface
c7a9556e18 Add MATRIX_WELCOME so notice can be turned off 2023-02-08 17:32:15 +00:00
bertybuttface
4fc1a3a4a6 Fix issue when encryption disabled 2023-02-08 16:55:31 +00:00
Max Kammler
acd5e2409a reduce anmount of detail for users 2023-02-08 15:09:33 +00:00
Max Kammler
2ea46ccf12 fix typo 2023-02-08 15:09:33 +00:00
Max Kammler
9cafc6f794 show error in newline 2023-02-08 15:09:33 +00:00
Max Kammler
11b042a8c3 pass OpenAI error directly to user 2023-02-08 15:09:33 +00:00
Max Kammler
904660929f reorder env import 2023-02-07 10:53:55 +01:00
Max Kammler
58ec2f7f10 fix typo 2023-02-07 10:36:08 +01:00
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