DeL-TaiseiOzaki commited on
Commit
ba62a2d
·
verified ·
1 Parent(s): e50fc98

Delete config

Browse files
config/__init__.py DELETED
File without changes
config/__pycache__/__init__.cpython-310.pyc DELETED
Binary file (144 Bytes)
 
config/__pycache__/setting.cpython-310.pyc DELETED
Binary file (1.02 kB)
 
config/__pycache__/settings.cpython-310.pyc DELETED
Binary file (1.03 kB)
 
config/llm_settings.py DELETED
@@ -1,28 +0,0 @@
1
- import os
2
- from dotenv import load_dotenv
3
-
4
- class LLMSettings:
5
- def __init__(self):
6
- load_dotenv()
7
- # デバッグ用に表示
8
- print("ANTHROPIC_API_KEY:", bool(os.getenv("ANTHROPIC_API_KEY")))
9
-
10
- self.anthropic_api_key = os.getenv("ANTHROPIC_API_KEY")
11
- self.openai_api_key = os.getenv("OPENAI_API_KEY")
12
- self.default_llm = "claude"
13
-
14
- # 利用可能なモデルを確認
15
- available = []
16
- if self.anthropic_api_key:
17
- available.append("claude")
18
- if self.openai_api_key:
19
- available.append("openai")
20
- print("Available models:", available)
21
-
22
- def get_available_models(self):
23
- models = []
24
- if self.anthropic_api_key:
25
- models.append("claude")
26
- if self.openai_api_key:
27
- models.append("openai")
28
- return models
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config/settings.py DELETED
@@ -1,18 +0,0 @@
1
- from pathlib import Path
2
- from datetime import datetime
3
-
4
- class Settings:
5
- DEFAULT_OUTPUT_DIR = Path("output")
6
- TIMESTAMP_FORMAT = "%Y%m%d_%H%M%S"
7
-
8
- @classmethod
9
- def get_timestamp(cls) -> str:
10
- return datetime.now().strftime(cls.TIMESTAMP_FORMAT)
11
-
12
- @classmethod
13
- def get_clone_dir(cls, timestamp: str) -> Path:
14
- return cls.DEFAULT_OUTPUT_DIR / f"repo_clone_{timestamp}"
15
-
16
- @classmethod
17
- def get_output_file(cls, timestamp: str) -> Path:
18
- return cls.DEFAULT_OUTPUT_DIR / f"scan_result_{timestamp}.txt"