amine-yagoub commited on
Commit
6806846
·
1 Parent(s): ca2b985

refactor: remove section comment headers from TribunalConfig class

Browse files
Files changed (1) hide show
  1. src/code_tribunal/config.py +0 -4
src/code_tribunal/config.py CHANGED
@@ -13,25 +13,21 @@ load_dotenv(Path(__file__).resolve().parent.parent.parent / ".env")
13
  class TribunalConfig:
14
  """Immutable runtime configuration loaded from environment variables."""
15
 
16
- # LLM
17
  model_name: str = os.getenv("MODEL_NAME", "zai/glm-5.1")
18
  api_key: str = os.getenv("ZAI_API_KEY", "")
19
  api_base: str = os.getenv("ZAI_API_BASE", "https://api.z.ai/api/coding/paas/v4")
20
  temperature: float = float(os.getenv("TEMPERATURE", "0.3"))
21
  max_tokens: int = int(os.getenv("MAX_TOKENS", "4096"))
22
 
23
- # Evidence
24
  grit_timeout: int = int(os.getenv("GRIT_TIMEOUT", "60"))
25
  max_file_size_mb: int = int(os.getenv("MAX_FILE_SIZE_MB", "50"))
26
  max_files: int = int(os.getenv("MAX_FILES", "500"))
27
  evidence_chunk_size: int = int(os.getenv("EVIDENCE_CHUNK_SIZE", "3000"))
28
  max_scan_workers: int = int(os.getenv("MAX_SCAN_WORKERS", "4"))
29
 
30
- # Server
31
  server_host: str = os.getenv("SERVER_HOST", "0.0.0.0")
32
  server_port: int = int(os.getenv("SERVER_PORT", "7860"))
33
 
34
- # Storage
35
  storage_dir: str = os.getenv("STORAGE_DIR", ".tribunal_data")
36
 
37
  @property
 
13
  class TribunalConfig:
14
  """Immutable runtime configuration loaded from environment variables."""
15
 
 
16
  model_name: str = os.getenv("MODEL_NAME", "zai/glm-5.1")
17
  api_key: str = os.getenv("ZAI_API_KEY", "")
18
  api_base: str = os.getenv("ZAI_API_BASE", "https://api.z.ai/api/coding/paas/v4")
19
  temperature: float = float(os.getenv("TEMPERATURE", "0.3"))
20
  max_tokens: int = int(os.getenv("MAX_TOKENS", "4096"))
21
 
 
22
  grit_timeout: int = int(os.getenv("GRIT_TIMEOUT", "60"))
23
  max_file_size_mb: int = int(os.getenv("MAX_FILE_SIZE_MB", "50"))
24
  max_files: int = int(os.getenv("MAX_FILES", "500"))
25
  evidence_chunk_size: int = int(os.getenv("EVIDENCE_CHUNK_SIZE", "3000"))
26
  max_scan_workers: int = int(os.getenv("MAX_SCAN_WORKERS", "4"))
27
 
 
28
  server_host: str = os.getenv("SERVER_HOST", "0.0.0.0")
29
  server_port: int = int(os.getenv("SERVER_PORT", "7860"))
30
 
 
31
  storage_dir: str = os.getenv("STORAGE_DIR", ".tribunal_data")
32
 
33
  @property