-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
21 lines (15 loc) · 901 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
OPENAI_API_BASE = os.getenv("OPENAI_API_BASE") or "https://api.openai.com/v1"
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") or ""
CHEAP_API_BASE = os.getenv("CHEAP_API_BASE") or OPENAI_API_BASE
CHEAP_API_KEY = os.getenv("CHEAP_API_KEY") or OPENAI_API_KEY
CHEAP_MODEL = os.getenv("CHEAP_MODEL") or "gpt-3.5-turbo-0613"
STRONG_API_BASE = os.getenv("STRONG_API_BASE") or OPENAI_API_BASE
STRONG_API_KEY = os.getenv("STRONG_API_KEY") or OPENAI_API_KEY
STRONG_MODEL = os.getenv("STRONG_MODEL") or "gpt-4o"
IS_SHARE = bool(os.getenv("IS_SHARE")) or False
IS_DEBUG = bool(os.getenv("IS_DEBUG")) or False
DEMO_TITLE = "CoverPilot: AI-Powered Cover Letter Generator"
DEMO_DESCRIPTION = "CoverPilot is an AI-powered cover letter generator that helps you write a cover letter in seconds."
CV_EXT = [".typ", ".tex", ".html", ".docx", ".rst", ".rtf", ".odt", ".txt", ".md"]
EXT_TXT = [".txt", ".md"]