Kaveen Kumarasinghe
614be4e2e0
Merge branch 'formatting-and-fixes' of https://github.com/Hikari-Haru/GPT3Discord into formatting-and-fixes
2 years ago
Kaveen Kumarasinghe
4df4096f02
speed up moderations and smoothen translations
2 years ago
Rene Teigen
b90a5b5756
Use user parameter for displayname if set in encapsulate send
2 years ago
Rene Teigen
bddc653763
Merge branch 'formatting-and-fixes' of https://github.com/Hikari-Haru/GPT3Discord into formatting-and-fixes
2 years ago
Rene Teigen
eafacb0dbc
One more quote removal
2 years ago
Kaveen Kumarasinghe
d683eafdfc
fix a long running unchecked error
2 years ago
Kaveen Kumarasinghe
ab43da3c61
fix user hallucinations
2 years ago
Kaveen Kumarasinghe
8c2f5f62aa
Merge pull request #113 from cooperlees/main
...
Handle SIGTERM exits Cleanly too
2 years ago
Cooper Ry Lees
d1b7bae943
Fix process terminate in cleanup function
2 years ago
Cooper Ry Lees
266fd7b953
Handle SIGTERM exits Cleanly too
...
- Docker sends SIGTERM on `docker restart` and `docker stop`
- We need to cleanup the PID_FILE when this occurs so that when the container starts again the PID_FILE is not there
- Move logic to a function to KeyboardInterupt / SIGINT exit flow uses same cleanup as SIGTERM
- I also added a function to check in Linux only that if the PID stored isn't actually running we'll remove the file and allow gpt3discord to start
Test:
- Build a docker container and run + restart locally
- `docker build -t gpt3discord .`
- `docker run --name gpt3discord -v /containers/gpt3discord/env:/opt/gpt3discord/etc/environment -v /containers/gpt3discord/data:/data gpt3discord:latest`
- `docker restart gpt3discord`
See logs do what we need:
```
Commands synced
Killed all subprocesses
Removing PID file bot.pid
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.
```
2 years ago
Rene Teigen
732fdd0e4b
Some changes to the full starter to reduce token usage from the starter
2 years ago
Rene Teigen
a33f0b12eb
Update docstring
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
Kaveen Kumarasinghe
9ae43909f9
upgrade pinecone
2 years ago
github-actions
f0860d1f66
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
b8dfa2efca
bump version
2 years ago
Kaveen Kumarasinghe
2ff7cb1a3b
add approve button to moderations, add reset
2 years ago
Kaveen Kumarasinghe
8b9d816f08
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago
Kaveen Kumarasinghe
841b5733b0
fix conversation summarizations
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
github-actions
648d038bc0
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
370f96c9c0
Merge pull request #111 from Kav-K/chat-bypass
...
Chat bypass
2 years ago
Kaveen Kumarasinghe
f07bec787c
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord into chat-bypass
2 years ago
Kaveen Kumarasinghe
918717a3a9
Make responses look nicer
2 years ago
github-actions
292b7f6acd
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
77e6167fc3
Merge pull request #110 from joryclements/chat-bypass
...
Add support for CHAT_BYPASS_ROLES in Env
2 years ago
Kaveen Kumarasinghe
6d1de40ab6
fix any
2 years ago
Kaveen Kumarasinghe
c7df9ce1a0
bump version
2 years ago
Kaveen Kumarasinghe
a27dd7caa7
use any()
2 years ago
Kaveen Kumarasinghe
951216fc49
fixes
2 years ago
Jory Clements
a20d8d2918
Add support for CHAT_BYPASS_ROLES in Env
2 years ago
Hikari Haru
eff4940d53
Bump version
...
Signed-off-by: Hikari Haru <rene9917@gmail.com>
2 years ago
github-actions
84bcb0545b
Format Python code with psf/black push
2 years ago
Hikari Haru
e1181871b3
Merge pull request #109 from Hikari-Haru/translation-view-fixes
...
Some fixes to the translation message command
2 years ago
Rene Teigen
5b396605f3
Some fixes to the translation message command
2 years ago
Kaveen Kumarasinghe
b9fa216c61
Update gpt3discord.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
github-actions
40a74d8a0b
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
0cd1e39367
Merge pull request #108 from Kav-K/api-key-fixes
...
Fix api key setup and custom api db path
2 years ago
Rene Teigen
13f15fca52
Fix api key setup and custom api db path
2 years ago
Kaveen Kumarasinghe
eeb70829b7
Update gpt3discord.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
Kaveen Kumarasinghe
34aeba54e5
Update health_service.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
Kaveen Kumarasinghe
f581914f52
Update health_service.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
github-actions
e707d18806
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
0b168553c3
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago
Kaveen Kumarasinghe
02762fd61c
Add formality param to translations
2 years ago
github-actions
f3b57c20a8
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
c1526b40fc
health check service
2 years ago
Kaveen Kumarasinghe
29fb90eb7f
Merge branch 'main' of https://github.com/Kav-K/GPT3Discord
2 years ago