AiASSi-Gen / modules /config_loader.py
Alibrown's picture
Create modules/config_loader.py
d112861 verified
raw
history blame contribute delete
372 Bytes
import json
from pathlib import Path
def load_config():
config_path = Path(__file__).parent.parent / 'config.json'
try:
with open(config_path) as f:
return json.load(f)
except FileNotFoundError:
return {
"default_model": "gpt-3.5-turbo",
"max_file_size": 100000,
"enable_logging": True
}