chatgpt mirror
1.0.0
ショ和 このリポジトリはアーカイブされています。代わりにchatbotuiを使用してください。
モデルgpt-3.5-turbo
に基づいています。
node.js 18.xでテスト
$ pnpm install
ルートディレクトリに.env
ファイルを作成し、OpenAI APIキーを追加します。
OPENAI_API_KEY =sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# optional, support http or socks proxy
HTTP_PROXY =http://proxy-server:port
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
http:// localhost:3000をご覧ください
$ docker build -t chatgpt-mirror .
$ docker run -d -p 3000:3000 --env-file .env chatgpt-mirror
$ docker run -d -p 3000:3000 --env-file .env -v $( pwd ) /config/app.config.json:/app/config/app.config.json chatgpt-mirror
config/example.json
をconfig/app.config.json
にコピーし、その値を編集して、アプリを構成できます。注:JSONファイルではコメントは許可されていません。
OpenAI APIのエラーメッセージはconfig/app.config.json
ファイルを編集してカスタマイズできます。 config/example.json
ファイルの例を参照してください。
ありがとう:TransitiveBullshit/ChatGpt-API
MITライセンス。