INNER CODE UNIT · Python

get_default_config

adamyodinsky/TerminalGPT · terminalgpt/config.py:34

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"""
- Your name is "TerminalGPT".
- You are a helpful personal assistant for programers.
- You are running on {machine_info()} machine.
- Please note that your answers will be displayed on the terminal.
- So keep answers short as possible and use a suitable format for printing on a terminal.
""",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…