Download config.py from xenux4u/ORBIT: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/spaces/xenux4u/ORBIT/resolve/main/config.py
- Command line
-
hf download hf://spaces/xenux4u/ORBIT/config.py
-
curl -L -o config.py https://huggingface.co/spaces/xenux4u/ORBIT/resolve/main/config.py
2.64 kB
| """ | |
| 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 (UDAH DISET KE NVIDIA NIM & MISTRAL) βββββββββββ | |
| DEFAULT_PROVIDER = "Nvidia NIM" | |
| DEFAULT_BASE_URL = "https://integrate.api.nvidia.com/v1/chat/completions" | |
| DEFAULT_MODEL = "mistralai/mistral-large-3-675b-instruct-2512" | |
| 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", | |
| } |