Robot WeChat berdasarkan chatgpt tanpa risiko, sangat stabil!
Bahasa Inggris | 中文文档
Ketika saya menggunakan bot berdasarkan
itchatdanwechaty, saya sering menemukan risiko pembatasan akun ketika memindai kode untuk masuk. Lihat #158. Apakah ada cara yang aman untuk menggunakan bot WeChat? Ini dia ~
2023.07.13 : Perkenalkan
plugin systemuntuk membuat GPTBOT memiliki lebih banyak kemungkinan dan mudah untuk memperluas #46. Inilah plugin menarik pertama: Tiktok, cobalah dan bersenang -senang! Juga merujuk ke dokumen untuk mempelajari penggunaan dan cara berkontribusi ~
Sistem Windows mendukung (mungkin mendukung Linux di masa depan berdasarkan kotak pasir) dan Python perlu diinstal pada saat yang sama
Disarankan agar versi python antara 3.8.x ~ 3.10.x, versi 3.10 sempurna
git clone https://github.com/iuiaoin/wechat-gptbot && cd wechat-gptbotpip install -r requirements.txt config.template.json di direktori root berisi templat konfigurasi, Anda perlu menyalin template untuk membuat konfigurasi final config.json
cp config.template.json config.json Kemudian isi konfigurasi di config.json , berikut ini adalah deskripsi konfigurasi default, yang dapat disesuaikan sesuai dengan kebutuhan:
{
" 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
}Kami membutuhkan versi WeChat spesifik dan DLL untuk membuat Windows Hook berfungsi.
inject dll , Anda akan melihat "berhasil disuntikkan: 3.2.1.121-lts.dll" python app.pyVoila! Nikmati perjalanan penjelajahan Anda ~
Terima kasih banyak atas dukungan Anda, itu akan menjadi motivasi terbesar saya!
Kontribusi, masalah, dan permintaan fitur dipersilakan!
Jangan ragu untuk memeriksa halaman masalah.
Berikan ️ jika Anda menyukai proyek ini!
WeChatSetup berasal dari WeChat-Windows-Versions dan WeChat-Dll-Injector dari Wechat-Bot, sehingga Anda dapat menggunakannya tanpa khawatir. Juga terima kasih kedua pemilik repo atas kontribusi mereka.
Menjadi sponsor di Afdian . Nama Anda akan secara khusus terdaftar di bawah pendukung murah hati ~