Spaces:
Sleeping
Sleeping
| import os | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # API Keys & Third-party integrations | |
| gemini_api_key: Optional[str] = None | |
| groq_api_key: Optional[str] = None | |
| openrouter_api_key: Optional[str] = None | |
| firecrawl_api_key: Optional[str] = None | |
| ollama_base_url: str = "http://localhost:11434" | |
| # Server configuration | |
| host: str = "0.0.0.0" | |
| port: int = 7860 | |
| reload: bool = False | |
| access_log: bool = False | |
| gemini_model: str = "gemini-2.5-flash" | |
| openrouter_model: str = "openrouter/free" | |
| # Environment config | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| extra="ignore" | |
| ) | |
| settings = Settings() | |