TypeError: crypto.randomUUID 不是一个函数
作者: niutech创建于 2025年9月12日更新于 2025年9月12日
当在局域网上的HTTP上运行本地GTP时,我得到TypeError: crypto.randomUID不是一个函数',因为crypto.randomUID ()'需要HTTPS. 一个简单的解决办法是从 “lib/api.ts” 使用“generateUID()”函数。 这是补丁 :
[基因UID.patch] (https://GitHub.com/user-attachments/ files/22296191/基因UID.patch)
内容来源: PromtEngineer/localGPT