หุ่นยนต์ 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-gptbot
pip install -r requirements.txt
config.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
}
เราต้องการเวอร์ชัน WeChat ที่เฉพาะเจาะจงและ DLL เพื่อให้ Windows Hook ทำงานได้
inject dll
คุณจะเห็น "การฉีดสำเร็จ: 3.2.1.121-lts.dll" python app.py
voilà! สนุกกับการสำรวจของคุณ ~
ขอบคุณมากสำหรับการสนับสนุนมันจะเป็นแรงจูงใจที่ยิ่งใหญ่ที่สุดของฉัน!
ยินดีต้อนรับการมีส่วนร่วมปัญหาและคำขอคุณสมบัติ!
อย่าลังเลที่จะตรวจสอบหน้าปัญหา
ให้️ถ้าคุณชอบโครงการนี้!
WeChatSetup มาจาก WeChat-Windows-Versions และ WeChat-Dll-injector จาก WeChat-Bot ดังนั้นคุณสามารถใช้งานได้โดยไม่ต้องกังวล ขอบคุณเจ้าของสองคนสำหรับการมีส่วนร่วมของพวกเขา
เป็นสปอนเซอร์เกี่ยวกับ Afdian ชื่อของคุณจะถูกระบุไว้โดยเฉพาะภายใต้ผู้สนับสนุนที่ใจกว้าง ~