parent
88f472e5d2
commit
0db0704e2c
@ -0,0 +1,11 @@ |
||||
SLACK_APP_TOKEN=xapp-1-... |
||||
SLACK_BOT_TOKEN=xoxb-... |
||||
OPENAI_API_KEY=sk-... |
||||
OPENAI_API_BASE=http://api:8080 |
||||
OPENAI_MODEL=gpt-3.5-turbo |
||||
OPENAI_TIMEOUT_SECONDS=60 |
||||
#OPENAI_SYSTEM_TEXT="You proofread text. When you receive a message, you will check |
||||
#for mistakes and make suggestion to improve the language of the given text" |
||||
USE_SLACK_LANGUAGE=true |
||||
SLACK_APP_LOG_LEVEL=INFO |
||||
TRANSLATE_MARKDOWN=true |
@ -0,0 +1,27 @@ |
||||
# Slack bot |
||||
|
||||
Slackbot using: https://github.com/seratch/ChatGPT-in-Slack |
||||
|
||||
## Setup |
||||
|
||||
```bash |
||||
# Clone LocalAI |
||||
git clone https://github.com/go-skynet/LocalAI |
||||
|
||||
cd LocalAI/examples/slack-bot |
||||
|
||||
git clone https://github.com/seratch/ChatGPT-in-Slack |
||||
|
||||
# (optional) Checkout a specific LocalAI tag |
||||
# git checkout -b build <TAG> |
||||
|
||||
# Download gpt4all-j to models/ |
||||
wget https://gpt4all.io/models/ggml-gpt4all-j.bin -O models/ggml-gpt4all-j |
||||
|
||||
# Set the discord bot options (see: https://github.com/seratch/ChatGPT-in-Slack) |
||||
cp -rfv .env.example .env |
||||
vim .env |
||||
|
||||
# start with docker-compose |
||||
docker-compose up -d --build |
||||
``` |
@ -0,0 +1,23 @@ |
||||
version: '3.6' |
||||
|
||||
services: |
||||
api: |
||||
image: quay.io/go-skynet/local-ai:latest |
||||
build: |
||||
context: ../../ |
||||
dockerfile: Dockerfile.dev |
||||
ports: |
||||
- 8080:8080 |
||||
environment: |
||||
- DEBUG=true |
||||
- MODELS_PATH=/models |
||||
volumes: |
||||
- ./models:/models:cached |
||||
command: ["/usr/bin/local-ai" ] |
||||
|
||||
bot: |
||||
build: |
||||
context: ./ChatGPT-in-Slack |
||||
dockerfile: Dockerfile |
||||
env_file: |
||||
- .env |
@ -0,0 +1 @@ |
||||
../chatbot-ui/models |
Loading…
Reference in new issue