Kaveen Kumarasinghe
3337753e9b
Merge pull request #112 from Hikari-Haru/formatting-and-fixes
...
Add stop in conversation, some formatting
2 years ago
Kaveen Kumarasinghe
80025a3e9c
bump version
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
Kaveen Kumarasinghe
b8dfa2efca
bump version
2 years ago
Kaveen Kumarasinghe
841b5733b0
fix conversation summarizations
2 years ago
Kaveen Kumarasinghe
918717a3a9
Make responses look nicer
2 years ago
Kaveen Kumarasinghe
c7df9ce1a0
bump version
2 years ago
Hikari Haru
eff4940d53
Bump version
...
Signed-off-by: Hikari Haru <rene9917@gmail.com>
2 years ago
Kaveen Kumarasinghe
b9fa216c61
Update gpt3discord.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
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
github-actions
f3b57c20a8
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
c1526b40fc
health check service
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
Rene Teigen
e76a13846e
Merge remote-tracking branch 'Remote_Origin/main' into fixes
2 years ago
Rene Teigen
ba3615f878
Bump version
2 years ago
Rene Teigen
207df295f0
Even more
2 years ago
Kaveen Kumarasinghe
2acc18c1a5
Update gpt3discord.py
...
Signed-off-by: Kaveen Kumarasinghe <k5kumara@uwaterloo.ca>
2 years ago
Kaveen Kumarasinghe
2fcb89ed5b
bump version
2 years ago
Kaveen Kumarasinghe
f4009e08f7
context menu buttons
2 years ago
github-actions
ab362b97cd
Format Python code with psf/black push
2 years ago
Hikari Haru
4249baf10b
Merge branch 'main' into embeds
...
Signed-off-by: Hikari Haru <rene9917@gmail.com>
2 years ago
Kaveen Kumarasinghe
c58d0f3f55
deploy test
2 years ago
Kaveen Kumarasinghe
a3c399ae36
bump version
2 years ago
Kaveen Kumarasinghe
6e3608fe8e
decompose moderations service
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
Kaveen Kumarasinghe
30172f8d3f
update readme, bump version
2 years ago
Rene Teigen
7104399e6b
Moved all commands into their own file
2 years ago
Hikari Haru
bec4e3c40a
Bump version
...
Signed-off-by: Hikari Haru <rene9917@gmail.com>
2 years ago
Kaveen Kumarasinghe
709382b8da
api backoff
2 years ago
Kaveen Kumarasinghe
87a89d40ca
add private convo thread opener
2 years ago
Kaveen Kumarasinghe
4f26f0c3b4
bump version
2 years ago
Kaveen Kumarasinghe
d34017bfb1
bump version
2 years ago
Kaveen Kumarasinghe
6bff3b2cb5
Stabilize pinecone conversations
2 years ago
Kaveen Kumarasinghe
cf2dcd84f0
housekeeping, bugfixes
2 years ago
Kaveen Kumarasinghe
571d65fd37
revert auto-terminate change, bump version
2 years ago
Kaveen Kumarasinghe
7de071dbfd
remove emoji before pinecone properly
2 years ago
Kaveen Kumarasinghe
ab4e01841d
update readme, update activity
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
cfb7eb0903
Multi tenancy api key support
2 years ago
github-actions
ead677d558
Format Python code with psf/black push
2 years ago
Kaveen Kumarasinghe
413c1ae921
bump version
2 years ago
Kaveen Kumarasinghe
0b2d4c95b7
fix bugs with conversations, some slight improvements
2 years ago
Kaveen Kumarasinghe
6069f334eb
bump version
2 years ago
Kaveen Kumarasinghe
7b42bc4afe
Upgrade moderations service, double thresholds, admin options
2 years ago
Kaveen Kumarasinghe
5c556c9952
bump version
2 years ago