readme

从 devtool import("https://cdn.jsdelivr.net/npm/openai@4.47.1/+esm") 观察加载了哪些js文件

1
2
3
4
5
https://cdn.jsdelivr.net/npm/openai@4.47.1/+esm
https://cdn.jsdelivr.net/npm/openai@4.47.1/_shims/auto/runtime/+esm
https://cdn.jsdelivr.net/npm/openai@4.47.1/error/+esm
https://cdn.jsdelivr.net/npm/openai@4.47.1/core/+esm
https://cdn.jsdelivr.net/npm/openai@4.47.1/streaming/+esm

下载 https://cdn.jsdelivr.net/npm/openai@4.47.1/+esmopenai.js 修改其中的模块地址

搜索当前目录并替代(排除 readme.md)

1
2
3
4
5
// /npm/openai@4.47.1/+esm -> openai.js
/npm/openai@4.47.1/_shims/auto/runtime/+esm -> /post/img/openai-4-47-1/runtime.js
/npm/openai@4.47.1/error/+esm -> /post/img/openai-4-47-1/error.js
/npm/openai@4.47.1/core/+esm -> /post/img/openai-4-47-1/core.js
/npm/openai@4.47.1/streaming/+esm -> /post/img/openai-4-47-1/streaming.js