INNER CODE UNIT · Python
machine_info
adamyodinsky/TerminalGPT · terminalgpt/config.py:28
def machine_info():
"""Get the current machine info."""
return platform.platform()
def get_default_config() -> dict:
"""Get the default configuration from the config file."""
try:
with open(DEFAULTS_PATH, "r", encoding="utf-8") as file:
return json.load(file)
except FileNotFoundError:
return {"model": "gpt-4o-mini", "style": "plain", "models": MODELS}
INIT_SYSTEM_MESSAGE = {
"role": "system",
"content": f"""