File size: 1,607 Bytes
b22f922
 
 
 
 
 
 
02fdb50
b22f922
 
 
 
 
 
 
 
 
 
 
 
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-4"

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 "mixtral-8x7b"

IS_SHARE = bool(os.getenv("IS_SHARE")) or False

DEMO_TITLE = "Cover Letter Generator"
DEMO_DESCRIPTION = "This is a demo of the OpenAI API for generating cover letters. The model is trained on a dataset of cover letters and job descriptions, and generates a cover letter based on the job description and the applicant's CV. The model is fine-tuned on the OpenAI API, and is able to generate cover letters that are tailored to the job description and the applicant's CV. The model is able to generate cover letters for a wide range of jobs, and is able to generate cover letters that are tailored to the job description and the applicant's CV. The model is able to generate cover letters for a wide range of jobs, and is able to generate cover letters that are tailored to the job description and the applicant's CV. The model is able to generate cover letters for a wide range of jobs, and is able to generate cover letters that are tailored to the job description and the applicant's CV."

CV_EXT = [".typ", ".tex", ".html", ".docx", ".rst", ".rtf", ".odt", ".txt", ".md"]
EXT_TXT = [".txt", ".md"]