|
import os |
|
from dotenv import load_dotenv |
|
|
|
load_dotenv() |
|
|
|
|
|
BASE_URL = "https://editee.com" |
|
EDITEA_API_ENDPOINT = "https://editee.com/submit/chatgptfree" |
|
|
|
|
|
EDITEA_HEADERS = { |
|
"Accept": "application/json, text/plain, */*", |
|
"Accept-Language": "en-US,en;q=0.9", |
|
"Cache-Control": "no-cache", |
|
"Content-Type": "application/json", |
|
"Origin": BASE_URL, |
|
"Pragma": "no-cache", |
|
"Priority": "u=1, i", |
|
"Referer": f"{BASE_URL}/chat-gpt", |
|
"Sec-CH-UA": '"Chromium";v="129", "Not=A?Brand";v="8"', |
|
"Sec-CH-UA-Mobile": '?0', |
|
"Sec-CH-UA-Platform": '"Linux"', |
|
"Sec-Fetch-Dest": 'empty', |
|
"Sec-Fetch-Mode": 'cors', |
|
"Sec-Fetch-Site": 'same-origin', |
|
"User-Agent": 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36', |
|
"X-Requested-With": 'XMLHttpRequest', |
|
} |
|
|
|
APP_SECRET = os.getenv("APP_SECRET") |
|
|
|
ALLOWED_MODELS = [ |
|
{"id": "claude", "name": "Claude"}, |
|
{"id": "gpt4", "name": "GPT-4"}, |
|
{"id": "gemini", "name": "Gemini"}, |
|
{"id": "mistrallarge", "name": "Mistral Large"}, |
|
] |
|
|
|
MODEL_MAPPING = { |
|
"claude-3.5-sonnet": "claude", |
|
"gpt-4o": "gpt4", |
|
"gemini-pro": "gemini", |
|
"mistral-large": "mistrallarge", |
|
} |
|
|