mirror of
https://github.com/kou029w/daraz-llm.git
synced 2025-01-18 16:08:15 +00:00
49 lines
1.3 KiB
Markdown
49 lines
1.3 KiB
Markdown
|
# だらずさん GPT
|
||
|
|
||
|
GPT 版だらずさん
|
||
|
|
||
|
## インストール
|
||
|
|
||
|
Step 1
|
||
|
: Vercel へのデプロイ
|
||
|
|
||
|
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkou029w%2Fdaraz-gpt)
|
||
|
|
||
|
Step 2
|
||
|
: Slack アプリの作成
|
||
|
|
||
|
[Slack Applications](https://api.slack.com/apps) → Create New App → From an app manifest
|
||
|
|
||
|
下記の Manifest をコピペして、Slack アプリを作成します。
|
||
|
|
||
|
```yaml
|
||
|
display_information:
|
||
|
name: daraz-gpt
|
||
|
features:
|
||
|
bot_user:
|
||
|
display_name: daraz-gpt
|
||
|
oauth_config:
|
||
|
scopes:
|
||
|
bot:
|
||
|
- app_mentions:read
|
||
|
- chat:write
|
||
|
settings:
|
||
|
event_subscriptions:
|
||
|
request_url: https://daraz-gpt.vercel.app/api/slack/events
|
||
|
bot_events:
|
||
|
- app_mention
|
||
|
```
|
||
|
|
||
|
Step 3
|
||
|
: 環境変数の設定
|
||
|
|
||
|
[Vercel Dashboard](https://vercel.com/dashboard) → 対象のプロジェクト → Settings → Environment Variables
|
||
|
|
||
|
- `SLACK_BOT_TOKEN` ... [Slack Applications](https://api.slack.com/apps) → "daraz-gpt" → Permissions ページにある `xoxb-` から始まるボットトークン
|
||
|
- `SLACK_SIGNING_SECRET` ... [Slack Applications](https://api.slack.com/apps) → "daraz-gpt" → Basic Information ページにある Signing Secret
|
||
|
- `OPENAI_API_KEY` … [OpenAI API Key](https://beta.openai.com/account/api-keys)
|
||
|
|
||
|
## ライセンス
|
||
|
|
||
|
WTFPL
|