This post has a WL-version:
(The WL-version has more elaborated "LLM functions" section, at this point.)