LLM utilities

Various utilities for working with large language models.