Kaveen Kumarasinghe
5d406b666b
remove .cleanup() for temp_path (it gets auto cleaned up its ok
2 years ago
Rene Teigen
842c7241a3
Removed some imports
2 years ago
Rene Teigen
c6a6245e00
Added server index backup and loading
2 years ago
Rene Teigen
dd9cb0ce4c
Add option for response mode on queries
2 years ago
Rene Teigen
37a20a7e37
Added discord channel and whole server indexing
...
A channel index does 1000 messages
Whole server index does 300 messages per channel
Might need to add more restrictions since all the index commands are expensive
2 years ago
Rene Teigen
f48deab320
Forgot to remove extra models
2 years ago
Rene Teigen
669e3f0191
Changed how max tokens are fetched
...
lowered from 4024 to 2024 if max tokens can't be gotten
2 years ago
Rene Teigen
71125ce65d
Add ephemeral option to ask and edit
2 years ago
Rene Teigen
95dd054f1c
Remove finetune stuff
2 years ago
Rene Teigen
02b2bb97d8
Change backoff handling to be more verbose
2 years ago
Rene Teigen
5de0fd37da
Conversation command now has a model option
...
Added model autocomplete
2 years ago
Rene Teigen
64ce627bb7
Update filetypes
2 years ago
Rene Teigen
0555cf8b33
Some async changes
2 years ago
Rene Teigen
9052bc2d80
Added gpt-index commands
2 years ago
github-actions
f8d797f3a8
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
f473342bff
move overrides into class
2 years ago
Kaveen Kumarasinghe
595feaf539
persistent settings
2 years ago
Kaveen Kumarasinghe
b4ddee81f7
welcome message off by default
2 years ago
Kaveen Kumarasinghe
32726ecba1
Merge pull request #119 from duckdoom4/main
...
Fix spelling mistakes
2 years ago
github-actions
774cf9423b
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
8d5dd77f2c
remove print
2 years ago
Kaveen Kumarasinghe
50e6f59ab5
change token limit when the text model changes
2 years ago
duckdoom4
8982df882e
Fix the default values set to temperature and top p
...
The documentation mentions it's recommended to not alter both
See https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature
2 years ago
duckdoom4
ac11d9f2a4
Remove hardcoded 'magic values'
2 years ago
duckdoom4
5de2e79b3b
Add missing models
2 years ago
duckdoom4
980f0f3dd4
Fix spelling mistakes
2 years ago
Kaveen Kumarasinghe
5841171106
slightly reduce pretext, improve minimal pretext, add support for >2 temperature
2 years ago
github-actions
7779e44a2c
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
11f563e16a
Add Paraphrase
2 years ago
github-actions
7e5d9266d5
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
4df4096f02
speed up moderations and smoothen translations
2 years ago
Rene Teigen
7260ab7b6b
Add stop in conversation, some formatting
...
Added ping on thread open
Removed extra newlines from ask formatting
2 years ago
github-actions
f0860d1f66
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
2ff7cb1a3b
add approve button to moderations, add reset
2 years ago
github-actions
4c08ab8820
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
7cb19039a1
custom bot name, beautify responses
2 years ago
Kaveen Kumarasinghe
50a9f7c469
custom bot name, beautify responses
2 years ago
Kaveen Kumarasinghe
02762fd61c
Add formality param to translations
2 years ago
Kaveen Kumarasinghe
8c1f492243
reorder language list
2 years ago
github-actions
d125668d25
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
3627d32e54
Translations with DeepL
2 years ago
github-actions
ea5f95800b
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
e947e030fb
more autocomplete
2 years ago
Kaveen Kumarasinghe
ca0fa419f9
change some defaults
2 years ago
Rene Teigen
207df295f0
Even more
2 years ago
Rene Teigen
7e5dace02b
Docs, fixes and linting
2 years ago
Kaveen Kumarasinghe
ba3ea3231b
a big refactor
2 years ago
Rene Teigen
1652c0be47
Merge remote-tracking branch 'Remote_Origin/main' into embeds
2 years ago
github-actions
99bb6200aa
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
2cf6f22d4f
Merge pull request #92 from Hikari-Haru/edit-endpoint
...
Add the edit endpoint
2 years ago
Rene Teigen
cf7f3f9ba4
Fix paginated edits, fix ask edit passing in redos prompt
2 years ago
Alessandro Bellia
91e84dddf6
Added the possibility to configure SQLITE db path
...
Now, the SQLITE db path for the user API keys can be configured through the USER_KEY_DB_PATH env variable
Signed-off-by: Alessandro Bellia <casildaserrano@yahoo.it>
2 years ago
Rene Teigen
deee0b328d
Codex redo
2 years ago
Rene Teigen
61a2a19191
Redo work
2 years ago
Rene Teigen
baa37f65fd
Merge remote-tracking branch 'Remote_Origin/main' into edit-endpoint
2 years ago
github-actions
5dcd493c67
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
709382b8da
api backoff
2 years ago
Kaveen Kumarasinghe
8ab7257cac
adjust warn thresholds..
2 years ago
Kaveen Kumarasinghe
8fe9772db3
add reaction to warned messages
2 years ago
Kaveen Kumarasinghe
c9359bb17a
update moderations delete thresholds
2 years ago
Kaveen Kumarasinghe
429ea37a44
Update moderations delete hate threshold
2 years ago
Rene Teigen
e401927dcd
Add support for permanent custom model in threads
...
No current way to set it yourself
2 years ago
Rene Teigen
b261aa6df4
Add codex to the edit command
2 years ago
Rene Teigen
4efb82a033
Add edit endpoint
2 years ago
github-actions
4aa20f832f
Format Python code with psf/black push
2 years ago
Rene Teigen
6b99f57fdf
Merge remote-tracking branch 'Remote_Origin/main' into override_threads
2 years ago
github-actions
585638c457
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
6bff3b2cb5
Stabilize pinecone conversations
2 years ago
Rene Teigen
7ecc56f0ae
Made the json parsin more robust and fixed bugs
2 years ago
Rene Teigen
fbdc03b8dd
Enable json openers with overrides
2 years ago
github-actions
b47d52f217
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
eda7e66f02
Merge branch 'main' into multi-tenancy
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
Kaveen Kumarasinghe
051fc3a2ff
remove api key prints
2 years ago
Kaveen Kumarasinghe
cfb7eb0903
Multi tenancy api key support
2 years ago
github-actions
ead677d558
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
0b2d4c95b7
fix bugs with conversations, some slight improvements
2 years ago
github-actions
2566eb2dc3
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
be18022dd8
merge
2 years ago
Kaveen Kumarasinghe
43fc228376
fix some moderation bugs
2 years ago
github-actions
2e0e96a205
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
4c11843fbc
fix weird merge error
2 years ago
Kaveen Kumarasinghe
0c6272d933
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago
Kaveen Kumarasinghe
893cf11e84
improve moderations service
2 years ago
github-actions
db5e13a9cd
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
7b42bc4afe
Upgrade moderations service, double thresholds, admin options
2 years ago
github-actions
99e1e3b11d
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
a6ded5ab81
fix opener file loading
2 years ago
Justin McPherson
1e7b5b97a3
change path constructor
2 years ago
Justin McPherson
d1d1b062f2
Merge branch 'main' into feat/docker-env
2 years ago
Justin McPherson
105afa0354
non docker case
2 years ago
github-actions
7f1a8e30f8
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
720fad0ee7
permanent memory with pinecone ready for alpha
2 years ago
Kaveen Kumarasinghe
a8b209c212
draft
2 years ago
Kaveen Kumarasinghe
fe54b250f6
fix img prompt optimizer redo bug
2 years ago
github-actions
f4f53cf3cf
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
79c44fb0a0
Merge branch 'main' into rekey-conversation
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
github-actions
903c91497d
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
9896051a7b
fine tune moderations a bit, fix Redo
2 years ago
Rene Teigen
55f0db7f8b
Changed more name handling
2 years ago
Rene Teigen
c0e0d8ba8b
Changed conversations to be keyed by thread
...
The one starting it is the thread owner
Can only own one thread but can converse in multiple
Added a check dmchannel for the message edit moderation
Gave an error when opening a conversation then ending it
2 years ago
github-actions
7fb849de88
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
369c836a72
AI Moderation!
2 years ago
github-actions
db7c400ca4
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
3775432aae
Merge pull request #58 from Hikari-Haru/autocomplete
...
Autocomplete and changed the way opener files are loaded to use a folder instead
2 years ago
Rene Teigen
92f902cb15
return message if no opener folder
2 years ago
github-actions
20bd3a970c
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
04d1a06a9e
Merge pull request #60 from Hikari-Haru/bigger-images
...
Changed the image resizing to go by the guild filesize limit
2 years ago
github-actions
4a39685e45
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
b31bfbe26d
Merge pull request #55 from Hikari-Haru/ask-parameters
...
Added passthrough of gpt3 parameters to /ask
2 years ago
Rene Teigen
0835d849fc
Add fallback if guild is None
2 years ago
Rene Teigen
68a20dcc50
Changed the image resizing to go by the guild filesize limit
...
Since boosted servers have higher limits, even for bots
2 years ago
Rene Teigen
f2033c0fcc
Set autocomplete to limit to 25 options, the max
2 years ago
Rene Teigen
6cfd2838a5
Added autocompleters to settings and opener files
...
Settings now gets current keys so manual updating of choices isn't required
Changed the way opener files are added to the conversation
Using an opener file also enables minimal starter
Added some example opener files
2 years ago
Kaveen Kumarasinghe
663fda421c
Make recurring file operations all async, add custom opener file feature
2 years ago
github-actions
9bbfa2de7a
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
6cea6da6fe
Proper error messages on an API error
2 years ago
Rene Teigen
ddc23e7c10
Added some print to send_request and fixed the top_p description
2 years ago
Rene Teigen
8fbfe952f8
Changed how the overrides are checked to allow "0" input
2 years ago
Hikari Haru
9e4460c009
Added basic passthrough to /ask
...
Update readme
2 years ago
github-actions
92f7632095
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
05a54e28d6
Allow for a way for all users to be granted command access
2 years ago
github-actions
ab3d0a6868
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
5218c445af
Merge branch 'main' into slashgroups-refactor
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
Kaveen Kumarasinghe
0adb5c0e38
fix welcome message
2 years ago
Kaveen Kumarasinghe
53235e4e1d
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago
Kaveen Kumarasinghe
7d116d2ef3
fix typos
2 years ago
github-actions
316dcbb023
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
db1191144d
fix minor typo
2 years ago
Karl
f13bd6ea3f
Merge branch 'Kav-K:main' into KarlKennerley-GPT3Discord-Issue#34
2 years ago
Justin McPherson
566c0ae278
fix error
2 years ago
Justin McPherson
ddbe356e2a
Changes to environment loading.
...
- Move Some environment loading code to EnvService.
- Attempt loading of env file from multiple locations & names
- Provide a path fetching + fallback function for reading
paths from environment vars.
- For Docker;
- Create /opt/gpt3discord/{etc,bin,shared}
- Copy .txt shared data into shared
- Copy main .py into bin
2 years ago
Karl
3a663c244f
Updated get_welcome_message function
...
Updated the get_welcome_message function to fall back on a string saved in a .env file and then to fall back on a simple default string.
2 years ago
Karl
357422414a
Added getter and setter for welcome msg setting.
...
Added getter and setter functions to allow for enabling and disabling of welcoming messages.
2 years ago
Rene Teigen
b48c68e868
A little cleanup and changed the "admin" slash group to "system"
...
So that it's hidden further down on the list
2 years ago
Rene Teigen
e5eeb035c1
Implemented slash command grouping and more ways to configure who can use what.
...
Refactored /g into /chat and /gpt-chat into /converse
Both have the grouping "gpt" so the full is /gpt chat, and /gpt converse
Added pycord-multicog to the project for easier slash grouping across cogs
Made the role check case insensitive and added some comments to the sample.env
Removed the rest of the discord.ext imports, it's not really used, ymmv
Removed another admin check i had missed in local-size
2 years ago
github-actions
72c5760479
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
bfdd8fc29f
black test
2 years ago
github-actions
17b71059b5
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
37f2c8c1b4
Make image operations completely async, fix the optimized text length, set best_of=2
2 years ago
Karl
49b652bdd3
Added getter for welcome message env variable.
...
Added a getter function for the welcome message environment variable. Fixes issue #34 .
2 years ago
Rene Teigen
e31df356a9
Changed send_followup to respond
2 years ago
Rene Teigen
3ddb1056c3
Change way that roles are checked and some formatting
2 years ago
github-actions
2fc67fc13b
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
fb5b1f1e93
SLASH COMMANDSgit status! Major Overhaul
2 years ago
Cooper Lees
57e863167d
Merge branch 'Kav-K:main' into main
2 years ago
Cooper Ry Lees
d6885b3c35
Add Dockerfile + concept of a DATA_DIR
...
- Add a Dockerfile so people can run this bot in a docker container
- Stuck with recommendation of running with python3.9 for now
- Will later test with 3.11 + supply fixes if I get this working ...
- Added a DATA_DIR env param to use to choose the directory to write data we want persistent across docker container restarts to be written to
- We default to CWD like the code does today - we just explicitly pass it to functions / classes
Test:
- `docker build -t gpt3discord .`
```
crl-m1:GPT3Discord cooper$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
gpt3discord latest 6d2832af2450 69 seconds ago 356MB
```
- Try run it ... I would guess if I had correct tokens things would work ...
- To do so I plan to bind mount over /bin/.env on my docker container when I run this ...
```
crl-m1:GPT3Discord cooper$ docker run gpt3discord
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Downloading: 100%|██████████| 1.04M/1.04M [00:02<00:00, 516kB/s]
Downloading: 100%|██████████| 456k/456k [00:01<00:00, 319kB/s]
Downloading: 100%|██████████| 1.36M/1.36M [00:03<00:00, 443kB/s]
Downloading: 100%|██████████| 665/665 [00:00<00:00, 740kB/s]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/discord/http.py", line 413, in static_login
data = await self.request(Route("GET", "/users/@me"))
File "/usr/local/lib/python3.9/site-packages/discord/http.py", line 366, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/bin/gpt3discord", line 79, in <module>
asyncio.get_event_loop().run_until_complete(main())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/bin/gpt3discord", line 63, in main
await bot.start(os.getenv("DISCORD_TOKEN"))
File "/usr/local/lib/python3.9/site-packages/discord/client.py", line 658, in start
await self.login(token)
File "/usr/local/lib/python3.9/site-packages/discord/client.py", line 514, in login
data = await self.http.static_login(token.strip())
File "/usr/local/lib/python3.9/site-packages/discord/http.py", line 417, in static_login
raise LoginFailure("Improper token has been passed.") from exc
discord.errors.LoginFailure: Improper token has been passed.
Wrote PID to file the file bot.pid
The debug channel and guild IDs are 755420092027633774 and 907974109084942396
Improper token has been passed.
Removing PID file
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0xffff721a2dc0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0xffff718fe0a0>, 170230.336548951)]']
connector: <aiohttp.connector.TCPConnector object at 0xffff721a2fd0>
```
2 years ago
Kaveen Kumarasinghe
51a7ed7239
API key oopsie ;)
2 years ago
github-actions
ec38feaa36
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
193a967d41
REVAMP ASYNC, fully working now, massively improve immage prompt optimizer
2 years ago
github-actions
46b4c5d685
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
cdc6e70adb
Fix tempfile giving PermissionError on windows
2 years ago
Kaveen Kumarasinghe
4de4ab3f6e
bug squash!
2 years ago
Kaveen Kumarasinghe
1f96dda52a
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago
Kaveen Kumarasinghe
510f294c76
make bot fully async!
2 years ago
github-actions
24dce18052
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
3ea5f544e8
Fix bugs and add end conversation button to convo messages
2 years ago
github-actions
ffa23155c0
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
96c69c417f
fix bugs
2 years ago
github-actions
0ed400a505
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
bb619e052c
Recursive message summarizationgit add *git add *! Infinite chatgit add *git add *
2 years ago
Kaveen Kumarasinghe
2c915ddcc3
update convo starter and add set_usage
2 years ago
Kaveen Kumarasinghe
6001e57c58
Finalize everything and initialize the ci pipeline
2 years ago
Kaveen Kumarasinghe
c54d2cc349
ironed out bugs
2 years ago
github-actions
1312a864df
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
0065f4918a
Add full DALL-E Integration
2 years ago
Kaveen Kumarasinghe
9e263dc57b
refactor, redo ability for image prompt optimization
2 years ago
Kaveen Kumarasinghe
165c62c978
Add a command to clear all conversation threads immediately across all servers the bot uses
2 years ago
Kaveen Kumarasinghe
741abc0555
Close threads when end
2 years ago
Kaveen Kumarasinghe
825b009aa8
Full refactor to pycord, and cogs
2 years ago