CoverPilot / app /config.py
cxumol's picture
move main program to ./app dir
d78d2a0
raw
history blame
No virus
908 Bytes
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"
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-4-0125-preview"
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"]