import os from dotenv import load_dotenv load_dotenv() BASE_URL = "https://www.blackbox.ai" headers = { 'accept': '*/*', 'accept-language': 'zh-CN,zh;q=0.9', 'origin': 'https://www.blackbox.ai', 'priority': 'u=1, i', 'sec-ch-ua': '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-origin', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36', } APP_SECRET = os.getenv("APP_SECRET") ALLOWED_MODELS = [ {"id": "gpt-4o", "name": "gpt-4o"}, {"id": "gemini-1.5-pro-latest", "name": "gemini-pro"}, {"id": "gemini-1.5-pro", "name": "gemini-pro"}, {"id": "gemini-pro", "name": "gemini-pro"}, {"id": "claude-3-5-sonnet-20240620", "name": "claude-sonnet-3.5"}, {"id": "claude-3-5-sonnet", "name": "claude-sonnet-3.5"}, ] MODEL_MAPPING = { "gpt-4o":"gpt-4o", "gemini-1.5-pro-latest": "gemini-pro", "gemini-1.5-pro":"gemini-1.5-pro", "gemini-pro":"gemini-pro", "claude-3-5-sonnet-20240620":"claude-sonnet-3.5", "claude-3-5-sonnet":"claude-sonnet-3.5", }