위험이없는 Chatgpt를 기반으로 한 Wechat 로봇.
영어 | 中文文档
itchat및wechaty기반으로 봇을 사용하면 로그인 할 코드를 스캔 할 때 계정 제한의 위험이 종종 발생합니다. #158을 참조하십시오. WeChat 봇을 사용하는 안전한 방법이 있습니까? 여기 ~ ~
2023.07.13 : GPTBOT가 더 많은 가능성을 갖고 확장하기 쉬운
plugin system소개합니다. 첫 번째 흥미로운 플러그인은 다음과 같습니다. Tiktok, 시도해보고 재미있게 보내십시오! 또한 사용법을 배우려면 문서를 참조하십시오.
지원 Windows 시스템 (샌드 박스를 기반으로 Linux를 지원할 수 있음) 및 동시에 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 루트 디렉토리의 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 Hook를 작동시키기 위해서는 특정 wechat 버전과 DLL이 필요합니다.
inject dll 하면 "성공적으로 주입 된 다음 : 3.2.1.121-lts.dll"이 표시됩니다. python app.py덕! 탐험 여행을 즐기십시오 ~
지원해 주셔서 대단히 감사합니다. 가장 큰 동기가 될 것입니다!
기부금, 문제 및 기능 요청을 환영합니다!
문제 페이지를 확인하십시오.
이 프로젝트가 마음에 들면 옆을주세요!
WeChatsetup은 Wechat-Windows-Versions와 Wechat-Bot의 Wechat-dll-injector에서 나옵니다. 걱정없이 사용할 수 있습니다. 또한 두 명의 Repo 소유자에게 기부금에 감사드립니다.
Afdian 의 후원자가 되십시오. 귀하의 이름은 관대 한 후원자 ~