#924·localGPT

TypeError: crypto.randomUUID is not a function

Author: niutechCreated Sep 12, 2025Updated Sep 12, 2025

When running LocalGTP over HTTP on LAN, I get the TypeError: crypto.randomUUID is not a function, because crypto.randomUUID() requires HTTPS. An easy solution is to use generateUUID() function from lib/api.ts. Here is the patch:

generateUUID.patch