forked from AntoniZap/IBM-Chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
23 lines (17 loc) · 705 Bytes
/
config.py
File metadata and controls
23 lines (17 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
if os.environ.get("LLM") is None:
os.environ['LLM'] = 'AI21'
LLM = os.getenv("LLM")
if os.environ.get("LLAMA_MODEL_PATH") is None:
os.environ['LLAMA_MODEL_PATH'] = ''
LLAMA_MODEL_PATH = os.getenv("LLAMA_MODEL_PATH")
if os.environ.get("OPENAI_API_KEY") is None:
os.environ['OPENAI_API_KEY'] = ''
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
if os.environ.get("AI21_API_KEY") is None:
os.environ['AI21_API_KEY'] = ''
AI21_API_KEY = os.getenv("AI21_API_KEY")
if os.environ.get("FEEDBOT_IGNORE_NEW_DOCUMENTS") is None:
os.environ['FEEDBOT_IGNORE_NEW_DOCUMENTS'] = ''
FEEDBOT_IGNORE_NEW_DOCUMENTS = bool(os.getenv('FEEDBOT_IGNORE_NEW_DOCUMENTS'))
options = { "language" : "English" }