リスクのない、非常に安定したChatGptに基づくWeChatロボット!
英語| 中文文档
itchatとwechatyに基づいてボットを使用する場合、コードをスキャンしてログインすると、アカウントの制限のリスクがしばしば遭遇します。#158を参照してください。 WeChatボットを使用する安全な方法はありますか?ここにあります〜
2023.07.13:
plugin systemを導入して、GPTBOTに可能性が高くなり、#46を拡張しやすくします。これが最初の興味深いプラグインです:Tiktok、それを試して楽しんでください!また、使用法と貢献方法を学ぶためにドキュメントを参照してください〜
サポートWindowsシステム(おそらくサンドボックスに基づいて将来のLinuxをサポート)とPython同時にインストールする必要があります
Pythonバージョンは3.8.x〜3.10.x、バージョン3.10は完璧であることをお勧めします
git clone https://github.com/iuiaoin/wechat-gptbot && cd wechat-gptbotpip install -r requirements.txtconfig.template.jsonルートディレクトリにはconfigsテンプレートが含まれています。テンプレートをコピーして、最終的な効果的なconfig.jsonを作成する必要があります
cp config.template.json config.json次に、 config.jsonで構成を入力します。以下は、デフォルトの構成の説明です。ニーズに応じてカスタマイズできます。
{
" openai_api_key " : " YOUR API SECRET KEY " , # Fill in your OpenAI API Key
" model " : " gpt-3.5-turbo " , # ID of the model to use, support gpt-3.5-turbo, gpt-4, gpt-4-32k etc.
" use_azure_chatgpt " : false, # Whether use Azure OpenAI API
" azure_deployment_id " : " " , # Azure model deployment name
" role_desc " : " You are a helpful assistant. " , # Role description as system prompt
" session_expired_duration " : 3600, # Session memory kept duration
" max_tokens " : 1000, # Max tokens of characters for session memory
" temperature " : 0.9, # Between 0 and 2. Higher values make the output more random, while lower values more focused
" proxy " : " 127.0.0.1:3000 " , # Proxy client ip and port
" openai_api_base " : " " , # api url used by openai service
" create_image_size " : " 256x256 " , # Dall-E image size, support 256x256, 512x512, 1024x1024
" create_image_prefix " : [ " draw " , " paint " , " imagine " ], # Text prefix for image generation
" clear_current_session_command " : " #clear session " , # Clear current session
" clear_all_sessions_command " : " #clear all sessions " , # Clear all sessions
" chat_group_session_independent " : false, # Whether sessions of users are independent in chat group
" single_chat_prefix " : [ " bot " , " @bot " ], # Start conversation with "bot" or "@bot" in single chat to trigger the bot, leave it empty if you wanna make the bot active all the time
" group_chat_reply_prefix " : " " , # Reply prefix in group chat
" group_chat_reply_suffix " : " " , # Reply suffix in group chat
" single_chat_reply_prefix " : " " , # Reply prefix in single chat
" single_chat_reply_suffix " : " " , # Reply suffix in single chat
" query_key_command " : " #query key " # Querying the usage of the api key
" recent_days " : 5 # The usage in <recent_days> days
" plugins " : [{ " name " : < plugin name > , other configs }] # Add the your favorite plugins
}Windowsフックを機能させるには、特定のWeChatバージョンとDLLが必要です。
inject dllをクリックすると、「正常に注入:3.2.1.121-LTS.DLL」が表示されます。 python app.pyボイラ!探索の旅をお楽しみください〜
ご支援ありがとうございます、それは私の最大の動機になります!
貢献、問題、機能のリクエストは大歓迎です!
[問題]ページを自由に確認してください。
あなたがこのプロジェクトが好きなら§を贈りましょう!
WeChatsetupは、WeChat-Windows-versionsとWechat-dll-injectorからWeChat-Botから来ているため、懸念なく使用できます。また、2人のリポジトリの所有者の貢献に感謝します。
Afdianのスポンサーになります。あなたの名前は、寛大な支援者の下に特別にリストされます〜