Spaces:
Sleeping
Sleeping
File size: 799 Bytes
3ae68d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 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()
|