-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.env.example
56 lines (42 loc) · 1.05 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
43
44
45
46
47
48
49
50
51
52
53
54
55
# model type can be "openai" or "azure"
MODEL_TYPE="openai"
# Openai LLM api
OPENAI_API_KEY=
OPENAI_BASE_URL=https://api.openai.com/v1
# for azure openai api
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_API_VERSION=
AZURE_OPENAI_ENDPOINT=
# for ollama
OLLAMA_BASE_URL=
# for tongyi qwen
DASHSCOPE_API_KEY=""
DEEPSEEK_API_KEY=""
MOONSHOT_API_KEY=""
# for google search
SERPER_API_KEY=""
# for python code execution
E2B_API_KEY=""
# for web ui
DATA_DIR="~/.cache/chatpilot/data"
DEFAULT_MODELS="gpt-3.5-turbo"
MODEL_FILTER_ENABLED=true
# set available models
MODEL_FILTER_LIST="gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-4-turbo,gpt-4o,gpt-4-1106-preview"
# enable/disable tools
ENABLE_RUN_PYTHON_CODE_TOOL=true
ENABLE_SEARCH_TOOL=true
ENABLE_URL_CRAWLER_TOOL=true
ENV="dev"
DEFAULT_USER_ROLE="user"
# requests per day, -1 means no limit
RPD=-1
# requests per minute, -1 means no limit
RPM=-1
# rag settings
RAG_EMBEDDING_MODEL="text-embedding-ada-002"
CHUNK_SIZE=1000
CHUNK_OVERLAP=100
RAG_TOP_K=5
# Maximum length of document text. -1 means no limit.
DOC_TEXT_LENGTH_LIMIT=-1