روبوت WeChat يعتمد على chatgpt دون خطر ، مستقر للغاية!
الإنجليزية | 中文文档
عندما أستخدم الروبوتات استنادًا إلى
itchatوwechaty، غالبًا ما أواجه خطر قيود الحساب عند مسح الرموز لتسجيل الدخول. راجع #158. هل هناك طريقة آمنة لاستخدام روبوتات WeChat؟ هنا هو ~
2023.07.13 : تقديم
plugin systemلجعل GPTBOT لديه المزيد من الاحتمالات وسهلة توسيع رقم 46. إليك أول مكون إضافي مثير للاهتمام: Tiktok ، جربه واستمتع! ارجع أيضًا إلى مستندات لتعلم الاستخدام وكيفية المساهمة ~
دعم نظام Windows (ربما دعم Linux في المستقبل استنادًا إلى Sandbox) ويجب تثبيت Python في نفس الوقت
يوصى بأن يكون إصدار Python بين 3.8.x ~ 3.10.x ، الإصدار 3.10 مثالي
git clone https://github.com/iuiaoin/wechat-gptbot && cd wechat-gptbotpip install -r requirements.txt config.template.json في دليل الجذر يحتوي على قالب التكوينات ، تحتاج إلى نسخ القالب لإنشاء 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
}نحتاج إلى إصدار WeChat المحدد و DLL لجعل Windows Hook يعمل.
inject dll ، سترى "حقن بنجاح: 3.2.1.121-lts.dll" python app.pyVoilà! استمتع برحلتك الاستكشافية ~
شكرا جزيلا لدعمكم ، سيكون أكبر دافع لي!
المساهمات والقضايا وطلبات الميزات موضع ترحيب!
لا تتردد في التحقق من صفحة المشكلات.
إعطاء ️ إذا كنت تحب هذا المشروع!
يأتي WeChatsetup من WeChat-Windows-Versions و WeChat-dll injector من WeChat-Bot ، حتى تتمكن من استخدامه دون قلق. كما شكرا لأصحاب الريبو على مساهماتهما.
كن راعيا على afdian . سيتم إدراج اسمك على وجه التحديد تحت مؤيدي سخية ~