def load_config_defaults(config: Dict[str, Any]):
    """Set configuration defaults if these are not yet set."""
    config.setdefault('carimage', "registry.access.redhat.com/ubi9-micro:latest")
    config.setdefault('container', use_container())
    config.setdefault('ctx_size', 2048)
    config.setdefault('engine', container_manager())
    config.setdefault('env', [])
    config.setdefault('host', "0.0.0.0")
    config.setdefault('image', default_image())
    config.setdefault(
        'images',
        {
            "ASAHI_VISIBLE_DEVICES": "quay.io/ramalama/asahi",
            "ASCEND_VISIBLE_DEVICES": "quay.io/ramalama/cann",
            "CUDA_VISIBLE_DEVICES": "quay.io/ramalama/cuda",
            "HIP_VISIBLE_DEVICES": "quay.io/ramalama/rocm",
            "INTEL_VISIBLE_DEVICES": "quay.io/ramalama/intel-gpu",
            "MUSA_VISIBLE_DEVICES": "quay.io/ramalama/musa",
        },
    )
    config.setdefault('api', 'none')
    config.setdefault('keep_groups', False)
    config.setdefault('ngl', -1)
    config.setdefault('threads', -1)
    config.setdefault('nocontainer', False)
    config.setdefault('port', str(DEFAULT_PORT))
    config.setdefault('pull', "newer")
    config.setdefault('runtime', 'llama.cpp')
    config.setdefault('store', get_store())
    config.setdefault('temp', "0.8")
    config.setdefault('transport', "ollama")
    config.setdefault('use_model_store', True)
    config.setdefault('ocr', False)
Set configuration defaults if these are not yet set.
ramalama/config.py