forked from askrella/whatsapp-chatgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env-example
42 lines (33 loc) · 1.59 KB
/
.env-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ----------------------------------------------- #
# Make a copy of this file and rename it to .env #
# #
# Also check out our documentation: #
# https://askrella.github.io/whatsapp-chatgpt #
# ----------------------------------------------- #
# Get your key here: https://platform.openai.com/account/api-keys
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Max tokens to use for GPT per request
MAX_MODEL_TOKENS=2000
# GPT Pre Prompt, executed after creating a conversation
# Example: Act very funny and overreact to messages. Do that for every message you get, forever.
PRE_PROMPT=
# Whether or not to use prefixes !gpt and !dalle
PREFIX_ENABLED=true
# Set own prefixes for ChatGPT, DALL-E, reset context, configuration
GPT_PREFIX=!gpt
DALLE_PREFIX=!dalle
RESET_PREFIX=!reset
AI_CONFIG_PREFIX=!config
# Speech API URL
# You can use our hosted Speech API (for free) or host your own Speech API
SPEECH_API_URL=https://speech-service.verlekar.com
# Defines if the bot should recognize and transcribe your voice messages
TRANSCRIPTION_ENABLED=false
# Defines if the bot should use the local or remote transcription service
# "local" = You need to have "whisper" installed on your machine
# "speech-api" = It will use our Speech API to transcribe your voice messages
TRANSCRIPTION_MODE=local
# Defines if the bot should send voice message responses (text-to-speech)
# Be aware that this feature will use the Speech API to convert the GPT response to voice
# It's open source: https://github.com/askrella/speech-rest-api
TTS_ENABLED=false