mirror repo from original : https://github.com/xiangsx/gpt4free-ts.git
ファイルへ移動
Xiang 50a200cde6
Merge pull request #110 from Abobo7/master
fix: fix several bugs of merlin
2024-04-09 18:29:42 +08:00
.github/workflows feat: update docker-image.yml 2023-06-23 19:23:44 +08:00
model fix: fix several bugs of merlin 2024-04-09 17:59:43 +08:00
utils feat: sync private code 2024-02-27 21:52:08 +08:00
.dockerignore feat: update 2023-06-23 19:19:38 +08:00
.gitignore feat: update 2023-06-23 19:19:38 +08:00
.prettierrc feat(base): 开源绝大部分站点 2023-09-10 22:26:06 +08:00
Dockerfile feat: sync private code 2024-02-27 21:52:08 +08:00
HowToUse.md feat: Update HowToUse.md 2023-08-09 16:32:12 +08:00
LICENSE.txt
README.md feat: Update README.md 2024-02-29 09:03:51 +08:00
README_ja.md Add Japanese README 2023-06-11 12:33:31 +09:00
README_zh.md feat: Update README_zh.md 2024-02-29 09:04:18 +08:00
docker-compose.yaml feat(forefront): volume run dir 2023-06-06 13:14:41 +08:00
index.ts feat: sync private code 2024-02-27 21:52:08 +08:00
koa.d.ts feat: sync private code 2024-02-27 21:52:08 +08:00
package.json feat: sync private code 2024-02-27 21:52:08 +08:00
router.ts feat: sync private code 2024-02-27 21:52:08 +08:00
tsconfig.json feat: update docekr 2023-07-06 23:48:14 +08:00
yarn.lock feat: sync private code 2024-02-27 21:52:08 +08:00

README_ja.md

GPT4Free の TypeScript バージョン 🆓

OpenAI GPT-4 API を無償で提供!

English | 中文 | 日本語

Discord Server

私達の discord: discord.gg/gptgod で続報を確認してください。 gpt4free Discord

👍 GPT4 ウェブサイト 本企画のベース GPTGOD

ウェブサイトの特徴(クリックすると拡大します)

GPTGOD サポート

  • Midjourney 史上最強の AI 描画システム。
  • Stable Diffusion
  • Claude
  • ChatGPT
  • インターネット接続可能な ChatGPT
  • wechat の AI ロボットを自分で作ろう

今後 2 週間で、GPTGOD の全コードをオープンソース化する予定です。もし必要であれば、このプロジェクトを見るか、私をフォローして通知を受け取ってください。 をフォローしてください。

なぜ今なのかというと、このプロジェクトにはまだいくつかの秘密設定が残っていて、それを削除する必要があるからです。

🚩 リバースターゲット

今も更新を続けている。

ここにモデルを実装しています: もし、あなたのウェブサイトがここに表示されることを望まないなら、問題を提起してください、私はすぐにそれを削除します。

モデル サポート ステータス アクティブタイム
ai.mcbbs.gq gpt3.5 Active after 2023-06-03
forefront.ai 👍GPT-4/gpt3.5 Active after 2023-06-03
aidream GPT-3.5 Active after 2023-05-12
you.com GPT-3.5 Active after 2023-05-12
phind.com GPT-4 / Internet / good search Active
bing.com/chat GPT-4/3.5
poe.com GPT-4/3.5
writesonic.com GPT-3.5 / Internet
t3nsor.com GPT-3.5

🏃‍♂️ 実行

まず、.env というファイルを作成する必要があります。

すべての操作方法において、このステップが必要です。

http_proxy=http://host:port
rapid_api_key=xxxxxxxxxx
EMAIL_TYPE=temp-email44
DEBUG=0
POOL_SIZE=3
  • http_proxy: 直接アクセスできない場合は、プロキシを設定してください
  • rapid_api_key: forefront の api を使用する場合、この設定を行う必要があります。この api キーは登録メールの受信に使用されます
  • EMAIL_TYPE: temp email type には temp-email temp-email44 tempmail-lol があります
    • temp-email: soft limit 100 req/日、使い過ぎるとクレジットカードの縛りが必要です!非常に安定しています!
    • temp-email44: hard limit 100 req/days安定している
    • tempmail-lol: 25 req/5 分まで。安定しない。
  • DEBUG: forefront 使用時に有効 local 実行時に =1 が設定できます。リバースプロセスを表示します。
  • POOL_SIZE: forefront の同時実行サイズです。同時に {POOL_SIZE} の会話をすることができます。プールサイズを大きくすると、より多くの会話を同時に行うことができますが、より多くの RAM を使用します

ローカル実行 🖥️

# install module
yarn
# start server
yarn start

docker で実行する 🐳

docker run -p 3000:3000 --env-file .env xiangsx/gpt4free-ts:latest

docker-compose でデプロイする 🎭

まず、.env ファイルを作成します; "docker で実行する"の手順に従ってください

デプロイ

docker-compose up --build -d

🚀 GPT4 を使ってみよう

チャットが完了したらリターン http://127.0.0.1:3000/ask?prompt=&model=

イベントストリームで返す http://127.0.0.1:3000/ask/stream?prompt=&model=

共通パラメータ📝

  • prompt: あなたの質問
  • model: ターゲット Web サイト:forefront you mcbbs

WebSite Unique パラメータ🔒

  • mcbbs
    • messages: 例えば [{"role":"system","content":"IMPORTANT: You are a virtual assistant powered by the gpt-3.5-turbo model, now time is 2023/6/3 13:42:27}"},{"role":"user","content":"你好\n"},{"role":"assistant","content":"你好!有什么我可以帮助你的吗?"},{"role":"user","content":"写个冒泡排序\n"}]
    • temperature: 0~1

🌟 Star History

Star History Chart

You may join our discord: discord.gg/gpt4free for further updates. gpt4free Discord

This is a replication project for the typescript version of gpt4free

gpt4free logo

This repository is not associated with or endorsed by providers of the APIs contained in this GitHub repository. This project is intended for educational purposes only. This is just a little personal project. Sites may contact me to improve their security or request the removal of their site from this repository.

Please note the following:

  1. Disclaimer: The APIs, services, and trademarks mentioned in this repository belong to their respective owners. This project is not claiming any right over them nor is it affiliated with or endorsed by any of the providers mentioned.

  2. Responsibility: The author of this repository is not responsible for any consequences, damages, or losses arising from the use or misuse of this repository or the content provided by the third-party APIs. Users are solely responsible for their actions and any repercussions that may follow. We strongly recommend the users to follow the TOS of the each Website.

  3. Educational Purposes Only: This repository and its content are provided strictly for educational purposes. By using the information and code provided, users acknowledge that they are using the APIs and models at their own risk and agree to comply with any applicable laws and regulations.

  4. Copyright: All content in this repository, including but not limited to code, images, and documentation, is the intellectual property of the repository author, unless otherwise stated. Unauthorized copying, distribution, or use of any content in this repository is strictly prohibited without the express written consent of the repository author.

  5. Indemnification: Users agree to indemnify, defend, and hold harmless the author of this repository from and against any and all claims, liabilities, damages, losses, or expenses, including legal fees and costs, arising out of or in any way connected with their use or misuse of this repository, its content, or related third-party APIs.

  6. Updates and Changes: The author reserves the right to modify, update, or remove any content, information, or features in this repository at any time without prior notice. Users are responsible for regularly reviewing the content and any changes made to this repository.

By using this repository or any code related to it, you agree to these terms. The author is not responsible for any copies, forks, or reuploads made by other users. This is the author's only account and repository. To prevent impersonation or irresponsible actions, you may comply with the GNU GPL license this Repository uses.