mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: libraries and readme
This commit is contained in:
parent
16166924cd
commit
5effeed82a
5 changed files with 39 additions and 2 deletions
|
|
@ -34,9 +34,10 @@ Node.js >= 18 / Node.js >= 14(with node-fetch)
|
|||
|
||||
推荐使用 git 进行安装,以方便后续升级。在 Yunzai-Bot 根目录夹打开终端,运行下述指令进行安装
|
||||
|
||||
```sh
|
||||
```shell
|
||||
git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin/
|
||||
pnpm install -w undici chatgpt showdown mathjax-node delay uuid remark strip-markdown random puppeteer-extra-plugin-recaptcha puppeteer-extra puppeteer-extra-plugin-stealth @waylaidwanderer/chatgpt-api keyv-file
|
||||
cd plugins/chatgpt-plugin
|
||||
pnpm i
|
||||
```
|
||||
|
||||
如果是手工下载的 zip 压缩包,请将解压后的 chatgpt-plugin 文件夹(请删除压缩自带的-master后缀)放置在 Yunzai-Bot 目录下的 plugins 文件夹内
|
||||
|
|
|
|||
17
node_modules/.bin/chatgpt-api
generated
vendored
Executable file
17
node_modules/.bin/chatgpt-api
generated
vendored
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/Users/ikechan8370/Yunzai-Bot/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="$NODE_PATH:/Users/ikechan8370/Yunzai-Bot/node_modules/.pnpm/node_modules"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/@waylaidwanderer+chatgpt-api@1.20.2/node_modules/@waylaidwanderer/chatgpt-api/bin/server.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/@waylaidwanderer+chatgpt-api@1.20.2/node_modules/@waylaidwanderer/chatgpt-api/bin/server.js" "$@"
|
||||
fi
|
||||
17
node_modules/.bin/chatgpt-cli
generated
vendored
Executable file
17
node_modules/.bin/chatgpt-cli
generated
vendored
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/Users/ikechan8370/Yunzai-Bot/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="$NODE_PATH:/Users/ikechan8370/Yunzai-Bot/node_modules/.pnpm/node_modules"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/@waylaidwanderer+chatgpt-api@1.20.2/node_modules/@waylaidwanderer/chatgpt-api/bin/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/@waylaidwanderer+chatgpt-api@1.20.2/node_modules/@waylaidwanderer/chatgpt-api/bin/cli.js" "$@"
|
||||
fi
|
||||
1
node_modules/@waylaidwanderer/chatgpt-api
generated
vendored
Symbolic link
1
node_modules/@waylaidwanderer/chatgpt-api
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../../../../node_modules/.pnpm/@waylaidwanderer+chatgpt-api@1.20.2/node_modules/@waylaidwanderer/chatgpt-api
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
"type": "module",
|
||||
"author": "ikechan8370",
|
||||
"dependencies": {
|
||||
"@waylaidwanderer/chatgpt-api": "^1.20.2",
|
||||
"chatgpt": "^4.4.1",
|
||||
"delay": "^5.0.0",
|
||||
"keyv-file": "^0.2.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue