""" ORBIT – Configuration Loads all settings from the .env file via python-dotenv. """ import os from dotenv import load_dotenv load_dotenv() class Config: # ── Flask ──────────────────────────────────────────────────────────── SECRET_KEY = os.environ.get("FLASK_SECRET_KEY", "change-me-in-production") DEBUG = os.environ.get("FLASK_DEBUG", "false").lower() == "true" SERVER_NAME = os.environ.get("SERVER_NAME", "127.0.0.1:5000") PREFERRED_URL_SCHEME = os.environ.get("PREFERRED_URL_SCHEME", "http") # ── Database ───────────────────────────────────────────────────────── raw_db_url = os.environ.get("DATABASE_URL", "sqlite:///orbit.db") if raw_db_url.startswith("postgres://"): raw_db_url = raw_db_url.replace("postgres://", "postgresql://", 1) SQLALCHEMY_DATABASE_URI = raw_db_url SQLALCHEMY_TRACK_MODIFICATIONS = False # ── Google OAuth ───────────────────────────────────────────────────── GOOGLE_CLIENT_ID = os.environ.get("GOOGLE_CLIENT_ID", "") GOOGLE_CLIENT_SECRET = os.environ.get("GOOGLE_CLIENT_SECRET", "") # ── Provider Defaults ──────────────────────────────────────────────── DEFAULT_PROVIDER = "OpenRouter" DEFAULT_BASE_URL = "https://openrouter.ai/api/v1/chat/completions" DEFAULT_MODEL = "baidu/cobuddy:free" DEFAULT_MODELS_OPENROUTER = [ "baidu/cobuddy:free", "inclusionai/ring-2.6-1t:free", "x-ai/grok-4.3", "mistralai/mistral-medium-3-5", "~anthropic/claude-haiku-latest", ] DEFAULT_MODELS_NVIDIA = [ "stepfun-ai/step-3.5-flash", "bytedance/seed-oss-36b-instruct", "qwen/qwen3-coder-480b-a35b-instruct", "mistralai/mistral-large-3-675b-instruct-2512", "minimaxai/minimax-m2.7", ] PROVIDER_URLS = { "OpenRouter": "https://openrouter.ai/api/v1/chat/completions", "Nvidia NIM": "https://integrate.api.nvidia.com/v1/chat/completions", "Google Gemini":"https://generativelanguage.googleapis.com/v1beta/models/", "AgentRouter": "https://agentrouter.org/v1/chat/completions", "Custom OpenAI":"https://api.openai.com/v1/chat/completions", }