File size: 701 Bytes
2a7f679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic_settings import BaseSettings
from pathlib import Path

class Settings(BaseSettings):
    croo_api_url: str = "https://api.croo.network"
    capscore_api_url: str = "http://localhost:8000"
    capscore_public_base_url: str = "http://localhost:8000"
    anthropic_api_key: str = ""
    anthropic_model: str = "claude-sonnet-4-6"
    openai_api_key: str = ""
    openai_model: str = "gpt-4o-mini"
    max_job_seconds: int = 300
    max_repo_mb: int = 250
    allow_network_repro: bool = False
    log_level: str = "info"
    runs_dir: Path = Path("/app/runs")
    frontend_dir: Path = Path("/app/frontend")

    model_config = {"env_file": ".env", "extra": "ignore"}

settings = Settings()