{"id":16197,"date":"2024-07-23T12:15:05","date_gmt":"2024-07-23T04:15:05","guid":{"rendered":"https:\/\/www.1ai.net\/?p=16197"},"modified":"2024-07-23T12:15:48","modified_gmt":"2024-07-23T04:15:48","slug":"%e4%bf%9d%e5%a7%86%e7%ba%a7%e5%be%ae%e4%bf%a1ai%e8%81%8a%e5%a4%a9%e6%9c%ba%e5%99%a8%e4%ba%ba%e6%95%99%e7%a8%8b%ef%bc%8c%e7%94%a8coze%e6%89%93%e9%80%a0%e7%a7%81%e4%ba%ba%e5%92%8c%e7%be%a4%e8%81%8a","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/16197.html","title":{"rendered":"Nanny-level WeChat AI chatbot tutorial, using COZE to create private and group chat assistants"},"content":{"rendered":"<p data-pm-slice=\"0 0 []\">\u524d\u9635\u5b50\uff0c\u6211\u5206\u4eab\u4e86\u628a\u5927\u6a21\u578b\u63a5\u5165<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e5%be%ae%e4%bf%a1\" title=\"\u3010\u67e5\u770b\u542b\u6709[\u5fae\u4fe1]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">\u5fae\u4fe1<\/a>\u673a\u5668\u4eba\u7684\u6559\u7a0b\uff0c\u8be5\u6559\u7a0b\u57fa\u4e8e chatgpt-on-wechat\u9879\u76ee\uff0c\u5176\u4e2d\u7528\u5230\u4e86 LinkAI\u3001\u667a\u8c31 AI \u8fd9\u4e24\u4e2a\u5e73\u53f0\u7684\u6a21\u578b\u3002\u5728\u540e\u7eed\u7684\u6d4b\u8bd5\u4e2d\uff0c\u53d1\u73b0\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u667a\u8c31 AI \u77e5\u8bc6\u5e93\u7684\u8c03\u7528\u5b58\u5728\u95ee\u9898\uff0c\u6709\u65f6\u51fb\u4e2d\u7387\u5f88\u4f4e\u3002<\/p>\n<p data-track=\"12\">\u4e8e\u662f\u6211\u505c\u7528\u4e86\u8fd9\u4e2a\u673a\u5668\u4eba\uff0c\u5e76\u5bfb\u627e\u65b0\u7684\u89e3\u51b3\u529e\u6cd5\u3002\u76f4\u5230\u53d1\u73b0\u4e86 coze\uff08\u5b57\u8282\u63a8\u51fa\u7684 AI \u673a\u5668\u4eba\u548c\u667a\u80fd\u4f53\u521b\u5efa\u5e73\u53f0\uff09\uff0c\u7ed3\u679c\u53d1\u73b0 coze \u975e\u5e38\u597d\u7528\uff0c\u4e5f\u5f88\u7b26\u5408\u6211\u7684\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<p data-track=\"13\">\u56e0\u6b64\uff0c\u5199\u4e0b\u8fd9\u7bc7\u6587\u7ae0\u6765\u8bb0\u5f55\u4ece 0 \u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684\u5fae\u4fe1\u7fa4\u804a AI \u673a\u5668\u4eba\u7684\u90e8\u7f72\u8fc7\u7a0b\uff0c\u5305\u62ec\u670d\u52a1\u5668\u8d2d\u4e70\u4e0e\u914d\u7f6e\u3001\u9879\u76ee\u90e8\u7f72\u3001\u63a5\u5165 coze\u3001\u4fee\u6539 coze \u914d\u7f6e\u3001\u63a5\u5165\u77e5\u8bc6\u5e93\u3001\u63d2\u4ef6\u5b89\u88c5\u7b49\u3002<\/p>\n<p data-track=\"14\">\u539f\u672c\u8ba1\u5212\u5c06\u6b64\u7bc7\u6587\u7ae0\u5206\u4e3a\u4e0a\u4e0b\u4e24\u7bc7\uff0c\u6700\u540e\u8fd8\u662f\u51b3\u5b9a\u76f4\u63a5\u5b8c\u6210\u6574\u7bc7\uff0c\u7bc7\u5e45\u867d\u957f\uff0c\u4f46\u64cd\u4f5c\u76f8\u5bf9\u7b80\u5355\uff0c\u8ddf\u7740\u64cd\u4f5c\u57fa\u672c\u6ca1\u95ee\u9898\u3002<\/p>\n<p data-track=\"15\">\u672c\u7bc7\u603b\u4f53\u5206\u4e24\u5927\u5757\uff1a<\/p>\n<ul>\n<li data-track=\"16\">chatgpt-on-wechat\u9879\u76ee\u7684\u90e8\u7f72<\/li>\n<li data-track=\"17\"><a href=\"https:\/\/www.1ai.net\/en\/tag\/coze\" title=\"\u3010\u67e5\u770b\u542b\u6709[Coze]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">Coze<\/a>\u673a\u5668\u4eba\u914d\u7f6e<\/li>\n<\/ul>\n<p data-track=\"18\">chatgpt-on-wechat \u9879\u76ee\u7684\u90e8\u7f72\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a<\/p>\n<ol start=\"1\">\n<li data-track=\"19\">\u6e90\u7801\u90e8\u7f72\u3002<\/li>\n<li data-track=\"20\">\u6211\u5df2\u5236\u4f5c\u4e86docker\u955c\u50cf\uff0c\u53ef\u4e00\u952e\u90e8\u7f72\u3002<\/li>\n<\/ol>\n<p data-track=\"21\">Docker\u955c\u50cf\u83b7\u53d6\uff1a<\/p>\n<p data-track=\"22\">\u516c\u4f17\u53f7\u56de\u590d(\u6ce8\u610f\u5927\u5c0f\u5199)ChatonWeChat<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"23\">\u4ec0\u4e48\u662fCoze\uff1f<\/h1>\n<p data-track=\"24\">Coze \u662f\u4e00\u4e2a\u9762\u5411\u6240\u6709\u4eba\u7684\u4e0b\u4e00\u4ee3 AI \u5e94\u7528\u7a0b\u5e8f\u548c\u804a\u5929\u673a\u5668\u4eba\u5f00\u53d1\u5e73\u53f0\u3002\u5b83\u5141\u8bb8\u7528\u6237\u8f7b\u677e\u521b\u5efa\u5404\u79cd\u804a\u5929\u673a\u5668\u4eba\uff0c\u65e0\u8bba\u7528\u6237\u662f\u5426\u5177\u6709\u7f16\u7a0b\u7ecf\u9a8c\u3002\u7528\u6237\u53ef\u4ee5\u5c06\u81ea\u5df1\u7684\u804a\u5929\u673a\u5668\u4eba\u90e8\u7f72\u548c\u53d1\u5e03\u5230\u4e0d\u540c\u7684\u793e\u4ea4\u5e73\u53f0\uff0c\u4f8b\u5982\u8c46\u5305\u3001\u98de\u4e66\u3001\u5fae\u4fe1\u7b49\u3002Coze \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u89d2\u8272\u548c\u63d0\u793a\u3001\u63d2\u4ef6\u3001\u77e5\u8bc6\u5e93\u3001\u5f00\u573a\u5bf9\u8bdd\u3001\u9884\u89c8\u548c\u8c03\u8bd5\u3001\u5de5\u4f5c\u6d41\u7b49\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u63d2\u4ef6\u3002\u6b64\u5916\uff0cCoze \u8fd8\u6709\u4e00\u4e2a Bot \u5546\u5e97\uff0c\u5c55\u793a\u5404\u79cd\u529f\u80fd\u7684\u5f00\u6e90\u673a\u5668\u4eba\uff0c\u4f9b\u7528\u6237\u6d4f\u89c8\u548c\u5b66\u4e60\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"25\">\u6ce8\u518ccoze<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"26\">\u8fdb\u5165\u5b98\u7f51<\/h1>\n<p data-track=\"27\">\u6765\u5230coze\u5b98\u7f51<\/p>\n<ul>\n<li data-track=\"28\">\u56fd\u5185\uff1ahttps:\/\/www.coze.cn\/<\/li>\n<li data-track=\"29\">\u56fd\u5916\uff1ahttps:\/\/www.coze.com\/<\/li>\n<\/ul>\n<p data-track=\"30\">\u8fd9\u91cc\u6211\u7528\u7684\u662f\u56fd\u5185\u7684coze\u3002<\/p>\n<p data-track=\"31\">\u5982\u679c\u4f60\u7684\u4e1a\u52a1\u662f\u6d77\u5916\u7684\uff0c\u5efa\u8bae\u7528\u56fd\u5916\u7684coze\uff0c\u8fd9\u91cc\u4e0d\u8fc7\u591a\u8bb2\u8ff0\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"32\">\u6ce8\u518c<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16198\" title=\"get-663\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-663.jpg\" alt=\"get-663\" width=\"1004\" height=\"1310\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"34\">\u83b7\u53d6APIkey<\/h1>\n<p data-track=\"35\">\u6211\u4eec\u9700\u8981\u83b7\u53d6APIKey\u8c03\u7528coze\u5927\u6a21\u578b\u63a5\u53e3\u3002<\/p>\n<p data-track=\"36\">\u6ce8\u518c\u597d\u540e\u70b9\u51fb\u4e3b\u9875\u4e0b\u65b9\u7684\u6263\u5b50API<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16199\" title=\"get-664\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-664.jpg\" alt=\"get-664\" width=\"434\" height=\"304\" \/><\/div>\n<p data-track=\"37\">\u70b9\u51fbAPI\u4ee4\u724c\u9009\u9879<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16200\" title=\"get-665\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-665.jpg\" alt=\"get-665\" width=\"1052\" height=\"1209\" \/><\/div>\n<p data-track=\"38\">\u6dfb\u52a0\u65b0\u4ee4\u724c<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16201\" title=\"get-666\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-666.jpg\" alt=\"get-666\" width=\"790\" height=\"694\" \/><\/div>\n<p data-track=\"40\">\u914d\u7f6e\u4e2a\u4eba\u4ee4\u724c\u3002<\/p>\n<ul>\n<li data-track=\"41\">\u540d\u79f0\uff1a\u968f\u4fbf\u8d77\uff0c\u8fd9\u91cc\u6211\u4fdd\u6301\u9ed8\u8ba4\u7684\u540d\u79f0\u3002<\/li>\n<li data-track=\"42\">\u8fc7\u671f\u65f6\u95f4\uff1a\u6c38\u4e45\u6709\u6548\u3002<\/li>\n<li data-track=\"43\">\u9009\u62e9\u6307\u5b9a\u56e2\u961f\u7a7a\u95f4\uff1aPersonal<\/li>\n<li data-track=\"44\">\u6743\u9650\uff1a\u5168\u90e8\u52fe\u9009\u4e0a\u3002<\/li>\n<\/ul>\n<p data-track=\"45\">\u6700\u540e\u70b9\u51fb\u786e\u8ba4\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16202\" title=\"get-667\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-667.jpg\" alt=\"get-667\" width=\"558\" height=\"840\" \/><\/div>\n<p data-track=\"47\">\u521b\u5efa\u6210\u529f\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u4ee4\u724c\u9700\u8981\u4fdd\u5b58\u597d\uff01\u540e\u9762\u4f1a\u7528\u5230\uff0c\u70b9\u51fb\u590d\u5236\u6309\u94ae\u590d\u5236\u4ee4\u724c\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16203\" title=\"get-668\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-668.jpg\" alt=\"get-668\" width=\"1120\" height=\"830\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"49\">\u521b\u5efaBot<\/h1>\n<p data-track=\"50\">\u56de\u5230\u4e3b\u9875\u70b9\u51fb\u5de6\u8fb9\u521b\u5efaBot<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16204\" title=\"get-669\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-669.jpg\" alt=\"get-669\" width=\"448\" height=\"964\" \/><\/div>\n<ul>\n<li data-track=\"52\">\u5de5\u4f5c\u7a7a\u95f4\u9009\u62e9\u9ed8\u8ba4\u7684Personal<\/li>\n<li data-track=\"53\">Bot\u540d\u79f0\u586b\u5199\u4f60\u81ea\u5df1\u5b9a\u4e49\u7684<\/li>\n<li data-track=\"54\">Bot\u529f\u80fd\u4ecb\u7ecd\u968f\u4fbf\u586b<\/li>\n<\/ul>\n<p data-track=\"55\">\u586b\u5199\u5b8c\u6210\u540e\u70b9\u51fb\u786e\u8ba4<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16206\" title=\"get-671\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-671.jpg\" alt=\"get-671\" width=\"1120\" height=\"1328\" \/><\/div>\n<p data-track=\"57\">\u521b\u5efa\u6210\u529f\uff0c\u8fdb\u5165\u914d\u7f6e\u754c\u9762\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16205\" title=\"get-670\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-670.jpg\" alt=\"get-670\" width=\"1080\" height=\"651\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"59\">\u83b7\u53d6BotID<\/h1>\n<p data-track=\"60\">\u5148\u4e0d\u505a\u8be6\u7ec6\u914d\u7f6e\uff0c\u76f4\u63a5\u70b9\u51fb\u53d1\u5e03\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16207\" title=\"get-672\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-672.jpg\" alt=\"get-672\" width=\"1080\" height=\"651\" \/><\/div>\n<p data-track=\"62\">\u5f00\u573a\u767d\u8bbe\u7f6e\u76f4\u63a5\u8df3\u8fc7\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16208\" title=\"get-673\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-673.jpg\" alt=\"get-673\" width=\"1120\" height=\"1136\" \/><\/div>\n<p data-track=\"64\">\u53d1\u5e03\u8bb0\u5f55\u8fd9\u91cc\u968f\u610f\u586b\uff0c\u6211\u586b\u5199\u7684\u662f\u7248\u672c\u53f7\u3002<\/p>\n<p data-track=\"65\">\u9009\u62e9\u53d1\u5e03\u5e73\u53f0\uff1a\u8fd9\u91cc\u52fe\u9009\u6263\u5b50Bot\u5546\u5e97\u3001Bot as API\u3002\uff08\u5982\u679c\u4f60\u83b7\u53d6APIkey\u8fd9\u4e00\u6b65\u6ca1\u505a\u7684\u8bdd\uff0c\u8fd9\u91cc\u662f\u770b\u4e0d\u5230Bot as API\u8fd9\u4e2a\u9009\u9879\u7684\uff09<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16209\" title=\"get-674\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-674.jpg\" alt=\"get-674\" width=\"832\" height=\"952\" \/><\/div>\n<p data-track=\"67\">\u7136\u540e\u70b9\u51fb\u53d1\u5e03\uff0c\u53ef\u4ee5\u770b\u5230\u6210\u529f\u53d1\u5e03\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16210\" title=\"get-675\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-675.jpg\" alt=\"get-675\" width=\"898\" height=\"353\" \/><\/div>\n<p data-track=\"69\">\u70b9\u51fb\u590d\u5236Bot\u94fe\u63a5<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16211\" title=\"get-676\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-676.jpg\" alt=\"get-676\" width=\"830\" height=\"325\" \/><\/div>\n<p data-track=\"71\">\u94fe\u63a5\u5982\u4e0b\uff1ahttps:\/\/www.coze.cn\/store\/bot\/7388292182391930906?bot_id=true<\/p>\n<p data-track=\"72\">\u5176\u4e2d7388292182391930906\u5c31\u662fBotID\uff0c\u5c06BotID\u4fdd\u5b58\u597d\uff0c\u540e\u9762\u6211\u4eec\u4f1a\u7528\u5230\u3002<\/p>\n<p data-track=\"73\">\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u70b9\uff1a<\/p>\n<p data-track=\"74\">\u6bcf\u6b21\u5bf9Bot\u8fdb\u884c\u4fee\u6539\uff0c\u53d1\u5e03\u540e\u7684BotID\u90fd\u4f1a\u53d8\u5316\uff01<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"75\">\u6ce8\u518c\u4e91\u670d\u52a1\u5668<\/h1>\n<p data-track=\"76\">\u4e91\u670d\u52a1\u5668\u5546\u6709\u5f88\u591a\uff0c\u8fd9\u91cc\u6211\u9009\u62e9\u963f\u91cc\u4e91\u8fdb\u884c\u90e8\u7f72\uff0c\u53ef\u80fd\u4ef7\u683c\u4e0d\u662f\u6700\u4fbf\u5b9c\u7684\uff0c\u8fd9\u4e2a\u9700\u81ea\u884c\u6bd4\u5bf9\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16212\" title=\"get-677\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-677.jpg\" alt=\"get-677\" width=\"957\" height=\"266\" \/><\/div>\n<p data-track=\"80\">\u914d\u7f6e\u53c2\u8003<\/p>\n<p data-track=\"81\">\u8fd9\u91cc\u7b80\u5355\u7684\u8bf4\u4e0b\u8d2d\u4e70\u754c\u9762\u7684\u914d\u7f6e\uff0c\u65b9\u4fbf\u5927\u5bb6\u7406\u89e3\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16213\" title=\"get-678\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-678.jpg\" alt=\"get-678\" width=\"1080\" height=\"637\" \/><\/div>\n<p data-track=\"83\">\u955c\u50cf\u9009\u62e9CentOS 7.9 64\u4f4d<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16214\" title=\"get-679\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-679.jpg\" alt=\"get-679\" width=\"1080\" height=\"270\" \/><\/div>\n<p data-track=\"85\">\u4e91\u76d840G<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16215\" title=\"get-680\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-680.jpg\" alt=\"get-680\" width=\"1080\" height=\"503\" \/><\/div>\n<p data-track=\"87\">\u516c\u7f51IP\u52fe\u9009\uff0c\u6309\u7167\u56fa\u5b9a\u5e26\u5bbd\u8ba1\u8d39\uff0c\u6700\u4f4e\u5e26\u5bbd1Mbps\u3002<\/p>\n<p data-track=\"88\">\u5f00\u901aIPV4\u7aef\u53e3\/\u534f\u8bae\u8fd9\u91cc\u90fd\u52fe\u9009<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16216\" title=\"get-681\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-681.jpg\" alt=\"get-681\" width=\"1080\" height=\"615\" \/><\/div>\n<p data-track=\"90\">\u767b\u5f55\u51ed\u8bc1\u8fd9\u91cc\u9009\u62e9\u81ea\u5b9a\u4e49\u5bc6\u7801\uff0c\u767b\u5f55\u5bc6\u7801\u4fdd\u5b58\u597d\uff0c\u7528\u4e8e\u540e\u9762\u8fde\u63a5\u670d\u52a1\u5668\u7528\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16217\" title=\"get-682\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-682.jpg\" alt=\"get-682\" width=\"1080\" height=\"426\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"92\">\u4e91\u670d\u52a1\u5668\u914d\u7f6e<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"93\">\u5b89\u88c5\u5b9d\u5854\u9762\u677f<\/h1>\n<p data-track=\"94\">\u9996\u5148\u9700\u8981\u5b89\u88c5\u670d\u52a1\u5668\u7684\u7ba1\u7406\u754c\u9762\uff0c\u8fd9\u91cc\u9009\u62e9\u5b89\u88c5\u5b9d\u5854<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16218\" title=\"get-683\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-683.jpg\" alt=\"get-683\" width=\"1080\" height=\"407\" \/><\/div>\n<p data-track=\"96\">\u8fde\u63a5\u65f6\u63d0\u793a\u9700\u8981\u767b\u5f55\u5b9e\u4f8b\uff0c\u8f93\u5165\u5bc6\u7801(\u521b\u5efa\u5b9e\u4f8b\u65f6\u8bbe\u7f6e\u7684\u5bc6\u7801)<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16219\" title=\"get-684\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-684.jpg\" alt=\"get-684\" width=\"1080\" height=\"629\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16220\" title=\"get-685\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-685.jpg\" alt=\"get-685\" width=\"1032\" height=\"226\" \/><\/div>\n<p data-track=\"99\">\u5b9d\u5854\u5b89\u88c5\u547d\u4ee4<\/p>\n<pre><code>yum install -y wget &amp;&amp; wget -O install.sh https:\/\/download.bt.cn\/install\/install_6.0.sh &amp;&amp; sh install.sh ed8484bec\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16221\" title=\"get-686\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-686.jpg\" alt=\"get-686\" width=\"1080\" height=\"188\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16222\" title=\"get-687\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-687.jpg\" alt=\"get-687\" width=\"1080\" height=\"319\" \/><\/div>\n<p data-track=\"103\">\u5b89\u88c5\u5b8c\u6210\uff0c\u5c06\u7ea2\u6846\u91cc\u7684\u94fe\u63a5\u4ee5\u53ca\u8d26\u53f7\u5bc6\u7801\u4fdd\u5b58\u4e0b\u6765\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16223\" title=\"get-688\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-688.jpg\" alt=\"get-688\" width=\"582\" height=\"44\" \/><\/div>\n<p data-track=\"105\">\u6ce8\u610f\u770b\uff01\u8fd9\u91cc\u63d0\u793a\u9700\u8981\u5f00\u653e\u5bf9\u5e94\u7684\u7aef\u53e3\u53f7\u3002\u6211\u4eec\u9700\u8981\u53bb\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u91cc\u914d\u7f6e\u5bf9\u5e94\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16224\" title=\"get-688\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-688.jpg\" alt=\"get-688\" width=\"582\" height=\"44\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"107\">\u914d\u7f6e\u5b89\u5168\u7ec4\u89c4\u5219<\/h1>\n<p data-track=\"108\">\u70b9\u51fb\u7ba1\u7406\u89c4\u5219<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16225\" title=\"get-689\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-689.jpg\" alt=\"get-689\" width=\"1080\" height=\"290\" \/><\/div>\n<p data-track=\"109\">\u70b9\u51fb\u624b\u52a8\u6dfb\u52a0(\u8fd9\u91cc\u5165\u65b9\u5411\u6709\u5f88\u591a\u7684\u7aef\u53e3\u53f7\u662f\u56e0\u4e3a\u6211\u8fd9\u4e2a\u670d\u52a1\u5668\u662f\u4e4b\u524d\u5c31\u4e70\u7684\uff0c\u7136\u540e\u95f2\u7f6e\u4e0b\u6765\u7684\uff0c\u5165\u65b9\u5411\u7684\u7aef\u53e3\u53f7\u662f\u4e4b\u524d\u52a0\u4e0a\u7684\uff0c\u8fd9\u91cc\u65e0\u9700\u8ddf\u6211\u4e00\u6837\u6dfb\u52a0)<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16226\" title=\"get-690\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-690.jpg\" alt=\"get-690\" width=\"1080\" height=\"492\" \/><\/div>\n<p data-track=\"111\">\u8fd9\u91cc\u6dfb\u52a08080\u300113695\u7aef\u53e3\u30028080\u7aef\u53e3\u662f\u6211\u4eec\u540e\u9762\u8981\u90e8\u7f72\u9879\u76ee\u6240\u7528\u5230\u7684\u7aef\u53e3\u53f7\uff0c\u662f\u56fa\u5b9a\u7684\u300213695\u662f\u5b9d\u5854\u9762\u677f\u8bbf\u95ee\u9700\u8981\u5f00\u901a\u7684\u7aef\u53e3\u53f7\uff0c\u8fd9\u91cc\u6bcf\u4e2a\u4eba\u751f\u6210\u7684\u7aef\u53e3\u53f7\u4e0d\u4e00\u6837\u3002\u6ce8\u610f\u4f60\u7684\u7aef\u53e3\u53f7\uff01<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16227\" title=\"get-691\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-691.jpg\" alt=\"get-691\" width=\"1080\" height=\"110\" \/><\/div>\n<p data-track=\"113\">\u4fdd\u5b58\u6210\u529f<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16228\" title=\"get-692\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-692.jpg\" alt=\"get-692\" width=\"1080\" height=\"103\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"115\">\u5b9d\u5854\u914d\u7f6e<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"116\">\u8fdb\u5165\u5b9d\u5854<\/h1>\n<p data-track=\"117\">\u5b89\u5168\u7ec4\u8bbe\u7f6e\u5b8c\u6bd5\u540e\uff0c\u8fdb\u5165\u5230\u521a\u624d\u4fdd\u5b58\u7684\u5b9d\u5854\u94fe\u63a5\uff0c\u9009\u62e9\u5916\u7f51\u9762\u677f\u5730\u5740\uff0c\u590d\u5236\u5230\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16229\" title=\"get-693\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-693.jpg\" alt=\"get-693\" width=\"1080\" height=\"224\" \/><\/div>\n<p data-track=\"119\">\u8fdb\u5165\u540e\u9700\u8981\u767b\u5f55\uff0c\u586b\u5165\u521a\u624d\u751f\u6210\u7684username\u548cpassword<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"123\">\u5b89\u88c5\u5957\u4ef6<\/h1>\n<p data-track=\"124\">\u9996\u6b21\u8fdb\u5165\u540e\u4f1a\u63a8\u8350\u5b89\u88c5\u5957\u4ef6\uff0c\u8fd9\u91cc\u9009\u62e9LNMP<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16230\" title=\"get-694\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-694.jpg\" alt=\"get-694\" width=\"1080\" height=\"644\" \/><\/div>\n<p data-track=\"126\">\u7136\u540e\u8010\u5fc3\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"128\">\u5b89\u88c5python<\/h1>\n<p data-track=\"129\">\u70b9\u51fb\u7f51\u7ad9&#8211;python\u9879\u76ee&#8211;python\u7248\u672c\u7ba1\u7406<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16231\" title=\"get-695\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-695.jpg\" alt=\"get-695\" width=\"1080\" height=\"260\" \/><\/div>\n<p data-track=\"131\">python\u7248\u672c\u9009\u62e93.9.7(\u8fd9\u91cc\u6700\u597d\u5728python3.10\u4ee5\u4e0b\uff0cchatgpt-on-wechat\u8fd9\u4e2a\u9879\u76eepython3.10\u4ee5\u4e0a\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u95ee\u9898)<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16232\" title=\"get-696\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-696.jpg\" alt=\"get-696\" width=\"920\" height=\"946\" \/><\/div>\n<p data-track=\"133\">\u7b49\u5f85\u5b89\u88c5\u5b8c\u6bd5<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16233\" title=\"get-697\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-697.jpg\" alt=\"get-697\" width=\"998\" height=\"1078\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"135\">\u9879\u76ee\u90e8\u7f72<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"136\">\u6e90\u7801\u90e8\u7f72<\/h1>\n<p data-track=\"137\">github\u4e0b\u8f7d\u9879\u76ee\u6e90\u4ee3\u7801https:\/\/github.com\/zhayujie\/chatgpt-on-wechat\u622a\u81f3\u6587\u7ae0\u5199\u7684\u65f6\u5019\uff0c\u7248\u672c\u662f1.6.8<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16234\" title=\"get-698\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-698.jpg\" alt=\"get-698\" width=\"896\" height=\"252\" \/><\/div>\n<p data-track=\"138\">\u6765\u5230\u5b9d\u5854\u9762\u677f&#8211;\u6587\u4ef6&#8211;\u8def\u5f84\/www\/wwwroot<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16235\" title=\"get-699\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-699.jpg\" alt=\"get-699\" width=\"1080\" height=\"651\" \/><\/div>\n<p data-track=\"140\">\u5c06\u4e0b\u8f7d\u7684\u538b\u7f29\u5305\u4e0a\u4f20<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16236\" title=\"get-700\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-700.jpg\" alt=\"get-700\" width=\"1280\" height=\"1240\" \/><\/div>\n<p data-track=\"142\">\u53f3\u952e\u89e3\u538b<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16237\" title=\"get-701\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-701.jpg\" alt=\"get-701\" width=\"860\" height=\"876\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16238\" title=\"get-702\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-702.jpg\" alt=\"get-702\" width=\"1080\" height=\"262\" \/><\/div>\n<p data-track=\"144\">\u7136\u540e\u6765\u5230\u7f51\u7ad9&#8211;python\u9879\u76ee&#8211;\u6dfb\u52a0python\u9879\u76ee<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16239\" title=\"get-703\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-703.jpg\" alt=\"get-703\" width=\"1080\" height=\"212\" \/><\/div>\n<p data-track=\"145\">\u9879\u76ee\u8def\u5f84\uff1a\u9009\u62e9\u521a\u624d\u89e3\u538b\u540e\u7684\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/p>\n<p data-track=\"146\">\u9879\u76ee\u540d\u79f0\uff1a\u4fdd\u6301\u9ed8\u8ba4\u3002<\/p>\n<p data-track=\"147\">\u8fd0\u884c\u6587\u4ef6\uff1a\u9009\u62e9\u9879\u76ee\u6587\u4ef6\u5939\u5185\u7684app.py\u811a\u672c<\/p>\n<p data-track=\"148\">\u9879\u76ee\u7aef\u53e3\uff1a8080(\u52fe\u9009\u540e\u9762\u7684\u653e\u884c\u7aef\u53e3)<\/p>\n<p data-track=\"149\">Python\u7248\u672c:\u521a\u624d\u5df2\u5b89\u88c5\u76843.9.7<\/p>\n<p data-track=\"150\">\u6846\u67b6\uff1a\u9009\u62e9python<\/p>\n<p data-track=\"151\">\u8fd0\u884c\u65b9\u5f0f\uff1apython<\/p>\n<p data-track=\"152\">\u5b89\u88c5\u4f9d\u8d56\u5305\uff1a\u8fd9\u91cc\u81ea\u52a8\u4f1a\u9009\u62e9\u9879\u76ee\u6587\u4ef6\u5939\u5185\u7684requirements.txt\u6587\u4ef6<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16240\" title=\"get-704\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-704.jpg\" alt=\"get-704\" width=\"1080\" height=\"945\" \/><\/div>\n<p data-track=\"154\">\u70b9\u51fb\u63d0\u4ea4\u3002<\/p>\n<p data-track=\"156\">\u8010\u5fc3\u7b49\u5f85\uff0c\u4f1a\u770b\u5230\u521b\u5efa\u5b8c\u6bd5\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16241\" title=\"get-705\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-705.jpg\" alt=\"get-705\" width=\"1080\" height=\"112\" \/><\/div>\n<p data-track=\"158\">\u8bb0\u5f97\u6765\u5230\u963f\u91cc\u4e91\u5b9e\u4f8b\u8fd9\u91cc\u4fee\u6539\u5b89\u5168\u7ec4<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16242\" title=\"get-706\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-706.jpg\" alt=\"get-706\" width=\"1080\" height=\"573\" \/><\/div>\n<p data-track=\"160\">\u7ba1\u7406\u89c4\u5219<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16243\" title=\"get-707\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-707.jpg\" alt=\"get-707\" width=\"1080\" height=\"200\" \/><\/div>\n<p data-track=\"161\">\u5165\u65b9\u5411\u8fd9\u91cc\u9009\u62e9\u624b\u52a8\u6dfb\u52a0<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16244\" title=\"get-708\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-708.jpg\" alt=\"get-708\" width=\"1080\" height=\"635\" \/><\/div>\n<p data-track=\"162\">\u7aef\u53e3\u8303\u56f4\u8bbe\u7f6e8080 \u6e90\u8bbe\u7f6e0.0.0.0 \u7136\u540e\u70b9\u51fb\u4fdd\u5b58<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16245\" title=\"get-709\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-709.jpg\" alt=\"get-709\" width=\"1080\" height=\"122\" \/><\/div>\n<p data-track=\"164\">\u6253\u5f00\u7ec8\u7aef\u3002\u5982\u679c\u5f39\u51fa\u8f93\u5165ssh\u5bc6\u94a5\uff0c\u5c31\u8f93\u5165\u521b\u5efa\u670d\u52a1\u5668\u65f6\u7684\u5bc6\u7801\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16246\" title=\"get-710\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-710.jpg\" alt=\"get-710\" width=\"1080\" height=\"228\" \/><\/div>\n<p data-track=\"166\">\u7ec8\u7aef\u754c\u9762\u8f93\u5165<\/p>\n<pre><code>pip3 install -r requirements.txt<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16247\" title=\"get-711\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-711.jpg\" alt=\"get-711\" width=\"918\" height=\"640\" \/><\/div>\n<p data-track=\"169\">\u5b89\u88c5\u5b8c\u6bd5<\/p>\n<p data-track=\"170\">\u63a5\u7740\u5b89\u88c5\u53ef\u9009\u7ec4\u4ef6<\/p>\n<pre><code>pip3 install -r requirements-optional.txt<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16248\" title=\"get-712\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-712.jpg\" alt=\"get-712\" width=\"1080\" height=\"546\" \/><\/div>\n<p data-track=\"174\">\u5b89\u88c5\u5b8c\u6bd5<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"175\">Docker\u955c\u50cf\u90e8\u7f72<\/h1>\n<p data-track=\"176\">\u6765\u5230\u5b9d\u5854\u7684Docker\u754c\u9762\uff0c\u5982\u679c\u662f\u65b0\u5efa\u7684\u670d\u52a1\u5668\u662f\u6ca1\u6709\u5b89\u88c5docker\u670d\u52a1\u7684\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16249\" title=\"get-713\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-713.jpg\" alt=\"get-713\" width=\"1080\" height=\"626\" \/><\/div>\n<p data-track=\"177\">\u70b9\u51fb\u5b89\u88c5\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16250\" title=\"get-714\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-714.jpg\" alt=\"get-714\" width=\"1080\" height=\"1028\" \/><\/div>\n<p data-track=\"179\">\u5b89\u88c5\u5b8c\u6bd5\uff0c\u6765\u5230\u5b9d\u5854\u7684\/www\/wwwroot\u6839\u76ee\u5f55\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16251\" title=\"get-715\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-715.jpg\" alt=\"get-715\" width=\"840\" height=\"112\" \/><\/div>\n<p data-track=\"181\">\u5c06\u955c\u50cf\u4e0a\u4f20<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16252\" title=\"get-716\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-716.jpg\" alt=\"get-716\" width=\"1080\" height=\"672\" \/><\/div>\n<p data-track=\"183\">\u5bfc\u5165\u955c\u50cf\uff0c\u8def\u5f84\u9009\u62e9\u521a\u624d\u4e0a\u4f20\u7684\u8def\u5f84\/www\/wwwroot\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16253\" title=\"get-717\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-717.jpg\" alt=\"get-717\" width=\"1080\" height=\"436\" \/><\/div>\n<p data-track=\"185\">\u5bfc\u5165\u6210\u529f<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16254\" title=\"get-718\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-718.jpg\" alt=\"get-718\" width=\"1080\" height=\"214\" \/><\/div>\n<p data-track=\"186\">\u6765\u5230\u5bb9\u5668&#8211;\u6dfb\u52a0\u5bb9\u5668<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16255\" title=\"get-719\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-719.jpg\" alt=\"get-719\" width=\"1080\" height=\"276\" \/><\/div>\n<p data-track=\"187\">\u5bb9\u5668\u540d\u79f0\uff1a\u968f\u610f\u586b<\/p>\n<p data-track=\"188\">\u955c\u50cf\uff1a\u9009\u62e9\u521a\u624d\u5bfc\u5165\u7684\u955c\u50cf<\/p>\n<p data-track=\"189\">\u7aef\u53e3:8080(\u8bb0\u5f97\u68c0\u67e5\u670d\u52a1\u5668\u7684\u5b89\u5168\u7ec4\u89c4\u5219)<\/p>\n<p data-track=\"190\">\u76f4\u63a5\u9009\u62e9\u521b\u5efa\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16256\" title=\"get-720\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-720.jpg\" alt=\"get-720\" width=\"1080\" height=\"890\" \/><\/div>\n<p data-track=\"192\">\u521b\u5efa\u6210\u529f<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16257\" title=\"get-721\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-721.jpg\" alt=\"get-721\" width=\"1080\" height=\"148\" \/><\/div>\n<p data-track=\"194\">\u70b9\u51fb\u65e5\u5fd7<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16258\" title=\"get-722\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-722.jpg\" alt=\"get-722\" width=\"1068\" height=\"780\" \/><\/div>\n<p data-track=\"196\">\u53ef\u4ee5\u770b\u5230\u9879\u76ee\u5df2\u7ecf\u6b63\u5e38\u8fd0\u884c\u5e76\u751f\u6210\u4e86\u5fae\u4fe1\u767b\u5f55\u4e8c\u7ef4\u7801\uff0c\u8fd9\u65f6\u4e0d\u8981\u6025\u7740\u53bb\u626b\uff0c\u8fd8\u9700\u8981\u4fee\u6539\u4e0b\u9879\u76ee\u914d\u7f6e\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16259\" title=\"get-723\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-723.jpg\" alt=\"get-723\" width=\"1080\" height=\"801\" \/><\/div>\n<p data-track=\"198\">\u5230\u8fd9\u91cc\u4e3a\u6b62\uff0c\u4f7f\u7528docker\u955c\u50cf\u90e8\u7f72\u9879\u76ee\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u63a5\u4e0b\u6765\u8ddf\u7740\u4fee\u6539COW\u914d\u7f6e\u5373\u53ef\u3002\u8fd9\u91cc\u7ea2\u6846\u533a\u57df\u7b80\u5355\u6846\u9009\u51fa\u9700\u8981\u4fee\u6539\u7684\u5730\u65b9\uff0c\u5177\u4f53\u4fee\u6539\u7684\u542b\u4e49\u5728\u4e0b\u9762\u4f1a\u6709\u8bb2\u5230\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16260\" title=\"get-724\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-724.jpg\" alt=\"get-724\" width=\"1080\" height=\"733\" \/><\/div>\n<p data-track=\"200\">\u4fee\u6539\u5b8c\u540e\u91cd\u542f\u9879\u76ee\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16261\" title=\"get-725\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-725.jpg\" alt=\"get-725\" width=\"1080\" height=\"185\" \/><\/div>\n<p data-track=\"202\">\u518d\u6b21\u626b\u7801\u767b\u5f55\u5373\u53ef\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16262\" title=\"get-726\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-726.jpg\" alt=\"get-726\" width=\"1080\" height=\"878\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"204\">\u4fee\u6539COW<\/h1>\n<p data-track=\"205\">\u8fd9\u91cc\u8bf4\u4e0b\uff0c\u5982\u679c\u4f60\u662fdocker\u955c\u50cf\u90e8\u7f72\u7684\uff0c\u4fee\u6539\u652f\u6301COZE\u8fd9\u4e00\u6b65\u76f4\u63a5\u7701\u7565\uff0c\u65e0\u9700\u4fee\u6539\u3002\u76f4\u63a5\u5230\u4fee\u6539\u914d\u7f6e\u8fd9\u6b65\u53bb\u4fee\u6539config.json<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"206\">\u4fee\u6539\u652f\u6301COZE<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16263\" title=\"get-727\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-727.jpg\" alt=\"get-727\" width=\"1080\" height=\"86\" \/><\/div>\n<p data-track=\"208\">\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\u6587\u4ef6\u5939\u5185\uff0cconfig.py\u6587\u4ef6\u7b2c177\u884c\u540e\u6dfb\u52a0<\/p>\n<pre><code>    \"model\": \"coze\",\r\n  \"coze_api_base\": \"https:\/\/api.coze.cn\/open_api\/v2\",\r\n  \"coze_api_key\": \"\",\r\n  \"coze_bot_id\": \"\",<\/code><\/pre>\n<p data-track=\"210\">\u5982\u4e0b\uff1a<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16264\" title=\"get-728\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-728.jpg\" alt=\"get-728\" width=\"1080\" height=\"268\" \/><\/div>\n<p data-track=\"212\">config.py\u5b8c\u6574\u4ee3\u7801<\/p>\n<pre><code># encoding:utf-8\r\n\r\nimport json\r\nimport logging\r\nimport os\r\nimport pickle\r\nimport copy\r\n\r\nfrom common.log import logger\r\n\r\n# \u5c06\u6240\u6709\u53ef\u7528\u7684\u914d\u7f6e\u9879\u5199\u5728\u5b57\u5178\u91cc, \u8bf7\u4f7f\u7528\u5c0f\u5199\u5b57\u6bcd\r\n# \u6b64\u5904\u7684\u914d\u7f6e\u503c\u65e0\u5b9e\u9645\u610f\u4e49\uff0c\u7a0b\u5e8f\u4e0d\u4f1a\u8bfb\u53d6\u6b64\u5904\u7684\u914d\u7f6e\uff0c\u4ec5\u7528\u4e8e\u63d0\u793a\u683c\u5f0f\uff0c\u8bf7\u5c06\u914d\u7f6e\u52a0\u5165\u5230config.json\u4e2d\r\navailable_setting = {\r\n    # openai api\u914d\u7f6e\r\n    \"open_ai_api_key\": \"\",  # openai api key\r\n    # openai apibase\uff0c\u5f53use_azure_chatgpt\u4e3atrue\u65f6\uff0c\u9700\u8981\u8bbe\u7f6e\u5bf9\u5e94\u7684api base\r\n    \"open_ai_api_base\": \"https:\/\/api.openai.com\/v1\",\r\n    \"proxy\": \"\",  # openai\u4f7f\u7528\u7684\u4ee3\u7406\r\n    # chatgpt\u6a21\u578b\uff0c \u5f53use_azure_chatgpt\u4e3atrue\u65f6\uff0c\u5176\u540d\u79f0\u4e3aAzure\u4e0amodel deployment\u540d\u79f0\r\n    \"model\": \"gpt-3.5-turbo\",  # \u53ef\u9009\u62e9: gpt-4o, gpt-4-turbo, claude-3-sonnet, wenxin, moonshot, qwen-turbo, xunfei, glm-4, minimax, gemini\u7b49\u6a21\u578b\uff0c\u5168\u90e8\u53ef\u9009\u6a21\u578b\u8be6\u89c1common\/const.py\u6587\u4ef6\r\n    \"bot_type\": \"\",  # \u53ef\u9009\u914d\u7f6e\uff0c\u4f7f\u7528\u517c\u5bb9openai\u683c\u5f0f\u7684\u4e09\u65b9\u670d\u52a1\u65f6\u5019\uff0c\u9700\u586b\"chatGPT\"\u3002bot\u5177\u4f53\u540d\u79f0\u8be6\u89c1common\/const.py\u6587\u4ef6\u5217\u51fa\u7684bot_type\uff0c\u5982\u4e0d\u586b\u6839\u636emodel\u540d\u79f0\u5224\u65ad\uff0c\r\n    \"use_azure_chatgpt\": False,  # \u662f\u5426\u4f7f\u7528azure\u7684chatgpt\r\n    \"azure_deployment_id\": \"\",  # azure \u6a21\u578b\u90e8\u7f72\u540d\u79f0\r\n    \"azure_api_version\": \"\",  # azure api\u7248\u672c\r\n    # Bot\u89e6\u53d1\u914d\u7f6e\r\n    \"single_chat_prefix\": [\"bot\", \"@bot\"],  # \u79c1\u804a\u65f6\u6587\u672c\u9700\u8981\u5305\u542b\u8be5\u524d\u7f00\u624d\u80fd\u89e6\u53d1\u673a\u5668\u4eba\u56de\u590d\r\n    \"single_chat_reply_prefix\": \"[bot] \",  # \u79c1\u804a\u65f6\u81ea\u52a8\u56de\u590d\u7684\u524d\u7f00\uff0c\u7528\u4e8e\u533a\u5206\u771f\u4eba\r\n    \"single_chat_reply_suffix\": \"\",  # \u79c1\u804a\u65f6\u81ea\u52a8\u56de\u590d\u7684\u540e\u7f00\uff0c\\n \u53ef\u4ee5\u6362\u884c\r\n    \"group_chat_prefix\": [\"@bot\"],  # \u7fa4\u804a\u65f6\u5305\u542b\u8be5\u524d\u7f00\u5219\u4f1a\u89e6\u53d1\u673a\u5668\u4eba\u56de\u590d\r\n    \"group_chat_reply_prefix\": \"\",  # \u7fa4\u804a\u65f6\u81ea\u52a8\u56de\u590d\u7684\u524d\u7f00\r\n    \"group_chat_reply_suffix\": \"\",  # \u7fa4\u804a\u65f6\u81ea\u52a8\u56de\u590d\u7684\u540e\u7f00\uff0c\\n \u53ef\u4ee5\u6362\u884c\r\n    \"group_chat_keyword\": [],  # \u7fa4\u804a\u65f6\u5305\u542b\u8be5\u5173\u952e\u8bcd\u5219\u4f1a\u89e6\u53d1\u673a\u5668\u4eba\u56de\u590d\r\n    \"group_at_off\": False,  # \u662f\u5426\u5173\u95ed\u7fa4\u804a\u65f6@bot\u7684\u89e6\u53d1\r\n    \"group_name_white_list\": [\"ChatGPT\u6d4b\u8bd5\u7fa4\", \"ChatGPT\u6d4b\u8bd5\u7fa42\"],  # \u5f00\u542f\u81ea\u52a8\u56de\u590d\u7684\u7fa4\u540d\u79f0\u5217\u8868\r\n    \"group_name_keyword_white_list\": [],  # \u5f00\u542f\u81ea\u52a8\u56de\u590d\u7684\u7fa4\u540d\u79f0\u5173\u952e\u8bcd\u5217\u8868\r\n    \"group_chat_in_one_session\": [\"ChatGPT\u6d4b\u8bd5\u7fa4\"],  # \u652f\u6301\u4f1a\u8bdd\u4e0a\u4e0b\u6587\u5171\u4eab\u7684\u7fa4\u540d\u79f0\r\n    \"nick_name_black_list\": [],  # \u7528\u6237\u6635\u79f0\u9ed1\u540d\u5355\r\n    \"group_welcome_msg\": \"\",  # \u914d\u7f6e\u65b0\u4eba\u8fdb\u7fa4\u56fa\u5b9a\u6b22\u8fce\u8bed\uff0c\u4e0d\u914d\u7f6e\u5219\u4f7f\u7528\u968f\u673a\u98ce\u683c\u6b22\u8fce\r\n    \"trigger_by_self\": False,  # \u662f\u5426\u5141\u8bb8\u673a\u5668\u4eba\u89e6\u53d1\r\n    \"text_to_image\": \"dall-e-2\",  # \u56fe\u7247\u751f\u6210\u6a21\u578b\uff0c\u53ef\u9009 dall-e-2, dall-e-3\r\n    # Azure OpenAI dall-e-3 \u914d\u7f6e\r\n    \"dalle3_image_style\": \"vivid\", # \u56fe\u7247\u751f\u6210dalle3\u7684\u98ce\u683c\uff0c\u53ef\u9009\u6709 vivid, natural\r\n    \"dalle3_image_quality\": \"hd\", # \u56fe\u7247\u751f\u6210dalle3\u7684\u8d28\u91cf\uff0c\u53ef\u9009\u6709 standard, hd\r\n    # Azure OpenAI DALL-E API \u914d\u7f6e, \u5f53use_azure_chatgpt\u4e3atrue\u65f6,\u7528\u4e8e\u5c06\u6587\u5b57\u56de\u590d\u7684\u8d44\u6e90\u548cDall-E\u7684\u8d44\u6e90\u5206\u5f00.\r\n    \"azure_openai_dalle_api_base\": \"\", # [\u53ef\u9009] azure openai \u7528\u4e8e\u56de\u590d\u56fe\u7247\u7684\u8d44\u6e90 endpoint\uff0c\u9ed8\u8ba4\u4f7f\u7528 open_ai_api_base\r\n    \"azure_openai_dalle_api_key\": \"\", # [\u53ef\u9009] azure openai \u7528\u4e8e\u56de\u590d\u56fe\u7247\u7684\u8d44\u6e90 key\uff0c\u9ed8\u8ba4\u4f7f\u7528 open_ai_api_key\r\n    \"azure_openai_dalle_deployment_id\":\"\", # [\u53ef\u9009] azure openai \u7528\u4e8e\u56de\u590d\u56fe\u7247\u7684\u8d44\u6e90 deployment id\uff0c\u9ed8\u8ba4\u4f7f\u7528 text_to_image\r\n    \"image_proxy\": True,  # \u662f\u5426\u9700\u8981\u56fe\u7247\u4ee3\u7406\uff0c\u56fd\u5185\u8bbf\u95eeLinkAI\u65f6\u9700\u8981\r\n    \"image_create_prefix\": [\"\u753b\", \"\u770b\", \"\u627e\"],  # \u5f00\u542f\u56fe\u7247\u56de\u590d\u7684\u524d\u7f00\r\n    \"concurrency_in_session\": 1,  # \u540c\u4e00\u4f1a\u8bdd\u6700\u591a\u6709\u591a\u5c11\u6761\u6d88\u606f\u5728\u5904\u7406\u4e2d\uff0c\u5927\u4e8e1\u53ef\u80fd\u4e71\u5e8f\r\n    \"image_create_size\": \"256x256\",  # \u56fe\u7247\u5927\u5c0f,\u53ef\u9009\u6709 256x256, 512x512, 1024x1024 (dall-e-3\u9ed8\u8ba4\u4e3a1024x1024)\r\n    \"group_chat_exit_group\": False,\r\n    # chatgpt\u4f1a\u8bdd\u53c2\u6570\r\n    \"expires_in_seconds\": 3600,  # \u65e0\u64cd\u4f5c\u4f1a\u8bdd\u7684\u8fc7\u671f\u65f6\u95f4\r\n    # \u4eba\u683c\u63cf\u8ff0\r\n    \"character_desc\": \"\u4f60\u662fChatGPT, \u4e00\u4e2a\u7531OpenAI\u8bad\u7ec3\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b, \u4f60\u65e8\u5728\u56de\u7b54\u5e76\u89e3\u51b3\u4eba\u4eec\u7684\u4efb\u4f55\u95ee\u9898\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u8bed\u8a00\u4e0e\u4eba\u4ea4\u6d41\u3002\",\r\n    \"conversation_max_tokens\": 1000,  # \u652f\u6301\u4e0a\u4e0b\u6587\u8bb0\u5fc6\u7684\u6700\u591a\u5b57\u7b26\u6570\r\n    # chatgpt\u9650\u6d41\u914d\u7f6e\r\n    \"rate_limit_chatgpt\": 20,  # chatgpt\u7684\u8c03\u7528\u9891\u7387\u9650\u5236\r\n    \"rate_limit_dalle\": 50,  # openai dalle\u7684\u8c03\u7528\u9891\u7387\u9650\u5236\r\n    # chatgpt api\u53c2\u6570 \u53c2\u8003https:\/\/platform.openai.com\/docs\/api-reference\/chat\/create\r\n    \"temperature\": 0.9,\r\n    \"top_p\": 1,\r\n    \"frequency_penalty\": 0,\r\n    \"presence_penalty\": 0,\r\n    \"request_timeout\": 180,  # chatgpt\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff0copenai\u63a5\u53e3\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a600\uff0c\u5bf9\u4e8e\u96be\u95ee\u9898\u4e00\u822c\u9700\u8981\u8f83\u957f\u65f6\u95f4\r\n    \"timeout\": 120,  # chatgpt\u91cd\u8bd5\u8d85\u65f6\u65f6\u95f4\uff0c\u5728\u8fd9\u4e2a\u65f6\u95f4\u5185\uff0c\u5c06\u4f1a\u81ea\u52a8\u91cd\u8bd5\r\n    # Baidu \u6587\u5fc3\u4e00\u8a00\u53c2\u6570\r\n    \"baidu_wenxin_model\": \"eb-instant\",  # \u9ed8\u8ba4\u4f7f\u7528ERNIE-Bot-turbo\u6a21\u578b\r\n    \"baidu_wenxin_api_key\": \"\",  # Baidu api key\r\n    \"baidu_wenxin_secret_key\": \"\",  # Baidu secret key\r\n    # \u8baf\u98de\u661f\u706bAPI\r\n    \"xunfei_app_id\": \"\",  # \u8baf\u98de\u5e94\u7528ID\r\n    \"xunfei_api_key\": \"\",  # \u8baf\u98de API key\r\n    \"xunfei_api_secret\": \"\",  # \u8baf\u98de API secret\r\n    # claude \u914d\u7f6e\r\n    \"claude_api_cookie\": \"\",\r\n    \"claude_uuid\": \"\",\r\n    # claude api key\r\n    \"claude_api_key\": \"\",\r\n    # \u901a\u4e49\u5343\u95eeAPI, \u83b7\u53d6\u65b9\u5f0f\u67e5\u770b\u6587\u6863 https:\/\/help.aliyun.com\/document_detail\/2587494.html\r\n    \"qwen_access_key_id\": \"\",\r\n    \"qwen_access_key_secret\": \"\",\r\n    \"qwen_agent_key\": \"\",\r\n    \"qwen_app_id\": \"\",\r\n    \"qwen_node_id\": \"\",  # \u6d41\u7a0b\u7f16\u6392\u6a21\u578b\u7528\u5230\u7684id\uff0c\u5982\u679c\u6ca1\u6709\u7528\u5230qwen_node_id\uff0c\u8bf7\u52a1\u5fc5\u4fdd\u6301\u4e3a\u7a7a\u5b57\u7b26\u4e32\r\n    # \u963f\u91cc\u7075\u79ef(\u901a\u4e49\u65b0\u7248sdk)\u6a21\u578bapi key\r\n    \"dashscope_api_key\": \"\",\r\n    # Google Gemini Api Key\r\n    \"gemini_api_key\": \"\",\r\n    # wework\u7684\u901a\u7528\u914d\u7f6e\r\n    \"wework_smart\": True,  # \u914d\u7f6ewework\u662f\u5426\u4f7f\u7528\u5df2\u767b\u5f55\u7684\u4f01\u4e1a\u5fae\u4fe1\uff0cFalse\u4e3a\u591a\u5f00\r\n    # \u8bed\u97f3\u8bbe\u7f6e\r\n    \"speech_recognition\": True,  # \u662f\u5426\u5f00\u542f\u8bed\u97f3\u8bc6\u522b\r\n    \"group_speech_recognition\": False,  # \u662f\u5426\u5f00\u542f\u7fa4\u7ec4\u8bed\u97f3\u8bc6\u522b\r\n    \"voice_reply_voice\": False,  # \u662f\u5426\u4f7f\u7528\u8bed\u97f3\u56de\u590d\u8bed\u97f3\uff0c\u9700\u8981\u8bbe\u7f6e\u5bf9\u5e94\u8bed\u97f3\u5408\u6210\u5f15\u64ce\u7684api key\r\n    \"always_reply_voice\": False,  # \u662f\u5426\u4e00\u76f4\u4f7f\u7528\u8bed\u97f3\u56de\u590d\r\n    \"voice_to_text\": \"openai\",  # \u8bed\u97f3\u8bc6\u522b\u5f15\u64ce\uff0c\u652f\u6301openai,baidu,google,azure\r\n    \"text_to_voice\": \"openai\",  # \u8bed\u97f3\u5408\u6210\u5f15\u64ce\uff0c\u652f\u6301openai,baidu,google,pytts(offline),ali,azure,elevenlabs,edge(online)\r\n    \"text_to_voice_model\": \"tts-1\",\r\n    \"tts_voice_id\": \"alloy\",\r\n    # baidu \u8bed\u97f3api\u914d\u7f6e\uff0c \u4f7f\u7528\u767e\u5ea6\u8bed\u97f3\u8bc6\u522b\u548c\u8bed\u97f3\u5408\u6210\u65f6\u9700\u8981\r\n    \"baidu_app_id\": \"\",\r\n    \"baidu_api_key\": \"\",\r\n    \"baidu_secret_key\": \"\",\r\n    # 1536\u666e\u901a\u8bdd(\u652f\u6301\u7b80\u5355\u7684\u82f1\u6587\u8bc6\u522b) 1737\u82f1\u8bed 1637\u7ca4\u8bed 1837\u56db\u5ddd\u8bdd 1936\u666e\u901a\u8bdd\u8fdc\u573a\r\n    \"baidu_dev_pid\": 1536,\r\n    # azure \u8bed\u97f3api\u914d\u7f6e\uff0c \u4f7f\u7528azure\u8bed\u97f3\u8bc6\u522b\u548c\u8bed\u97f3\u5408\u6210\u65f6\u9700\u8981\r\n    \"azure_voice_api_key\": \"\",\r\n    \"azure_voice_region\": \"japaneast\",\r\n    # elevenlabs \u8bed\u97f3api\u914d\u7f6e\r\n    \"xi_api_key\": \"\",  # \u83b7\u53d6ap\u7684\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003https:\/\/docs.elevenlabs.io\/api-reference\/quick-start\/authentication\r\n    \"xi_voice_id\": \"\",  # ElevenLabs\u63d0\u4f9b\u4e869\u79cd\u82f1\u5f0f\u3001\u7f8e\u5f0f\u7b49\u82f1\u8bed\u53d1\u97f3id\uff0c\u5206\u522b\u662f\u201cAdam\/Antoni\/Arnold\/Bella\/Domi\/Elli\/Josh\/Rachel\/Sam\u201d\r\n    # \u670d\u52a1\u65f6\u95f4\u9650\u5236\uff0c\u76ee\u524d\u652f\u6301itchat\r\n    \"chat_time_module\": False,  # \u662f\u5426\u5f00\u542f\u670d\u52a1\u65f6\u95f4\u9650\u5236\r\n    \"chat_start_time\": \"00:00\",  # \u670d\u52a1\u5f00\u59cb\u65f6\u95f4\r\n    \"chat_stop_time\": \"24:00\",  # \u670d\u52a1\u7ed3\u675f\u65f6\u95f4\r\n    # \u7ffb\u8bd1api\r\n    \"translate\": \"baidu\",  # \u7ffb\u8bd1api\uff0c\u652f\u6301baidu\r\n    # baidu\u7ffb\u8bd1api\u7684\u914d\u7f6e\r\n    \"baidu_translate_app_id\": \"\",  # \u767e\u5ea6\u7ffb\u8bd1api\u7684appid\r\n    \"baidu_translate_app_key\": \"\",  # \u767e\u5ea6\u7ffb\u8bd1api\u7684\u79d8\u94a5\r\n    # itchat\u7684\u914d\u7f6e\r\n    \"hot_reload\": False,  # \u662f\u5426\u5f00\u542f\u70ed\u91cd\u8f7d\r\n    # wechaty\u7684\u914d\u7f6e\r\n    \"wechaty_puppet_service_token\": \"\",  # wechaty\u7684token\r\n    # wechatmp\u7684\u914d\u7f6e\r\n    \"wechatmp_token\": \"\",  # \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7684Token\r\n    \"wechatmp_port\": 8080,  # \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7684\u7aef\u53e3,\u9700\u8981\u7aef\u53e3\u8f6c\u53d1\u523080\u6216443\r\n    \"wechatmp_app_id\": \"\",  # \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7684appID\r\n    \"wechatmp_app_secret\": \"\",  # \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7684appsecret\r\n    \"wechatmp_aes_key\": \"\",  # \u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u7684EncodingAESKey\uff0c\u52a0\u5bc6\u6a21\u5f0f\u9700\u8981\r\n    # wechatcom\u7684\u901a\u7528\u914d\u7f6e\r\n    \"wechatcom_corp_id\": \"\",  # \u4f01\u4e1a\u5fae\u4fe1\u516c\u53f8\u7684corpID\r\n    # wechatcomapp\u7684\u914d\u7f6e\r\n    \"wechatcomapp_token\": \"\",  # \u4f01\u4e1a\u5fae\u4fe1app\u7684token\r\n    \"wechatcomapp_port\": 9898,  # \u4f01\u4e1a\u5fae\u4fe1app\u7684\u670d\u52a1\u7aef\u53e3,\u4e0d\u9700\u8981\u7aef\u53e3\u8f6c\u53d1\r\n    \"wechatcomapp_secret\": \"\",  # \u4f01\u4e1a\u5fae\u4fe1app\u7684secret\r\n    \"wechatcomapp_agent_id\": \"\",  # \u4f01\u4e1a\u5fae\u4fe1app\u7684agent_id\r\n    \"wechatcomapp_aes_key\": \"\",  # \u4f01\u4e1a\u5fae\u4fe1app\u7684aes_key\r\n    # \u98de\u4e66\u914d\u7f6e\r\n    \"feishu_port\": 80,  # \u98de\u4e66bot\u76d1\u542c\u7aef\u53e3\r\n    \"feishu_app_id\": \"\",  # \u98de\u4e66\u673a\u5668\u4eba\u5e94\u7528APP Id\r\n    \"feishu_app_secret\": \"\",  # \u98de\u4e66\u673a\u5668\u4ebaAPP secret\r\n    \"feishu_token\": \"\",  # \u98de\u4e66 verification token\r\n    \"feishu_bot_name\": \"\",  # \u98de\u4e66\u673a\u5668\u4eba\u7684\u540d\u5b57\r\n    # \u9489\u9489\u914d\u7f6e\r\n    \"dingtalk_client_id\": \"\",  # \u9489\u9489\u673a\u5668\u4ebaClient ID \r\n    \"dingtalk_client_secret\": \"\",  # \u9489\u9489\u673a\u5668\u4ebaClient Secret\r\n    \"dingtalk_card_enabled\": False,\r\n    \r\n    # chatgpt\u6307\u4ee4\u81ea\u5b9a\u4e49\u89e6\u53d1\u8bcd\r\n    \"clear_memory_commands\": [\"#\u6e05\u9664\u8bb0\u5fc6\"],  # \u91cd\u7f6e\u4f1a\u8bdd\u6307\u4ee4\uff0c\u5fc5\u987b\u4ee5#\u5f00\u5934\r\n    # channel\u914d\u7f6e\r\n    \"channel_type\": \"\",  # \u901a\u9053\u7c7b\u578b\uff0c\u652f\u6301\uff1a{wx,wxy,terminal,wechatmp,wechatmp_service,wechatcom_app,dingtalk}\r\n    \"subscribe_msg\": \"\",  # \u8ba2\u9605\u6d88\u606f, \u652f\u6301: wechatmp, wechatmp_service, wechatcom_app\r\n    \"debug\": False,  # \u662f\u5426\u5f00\u542fdebug\u6a21\u5f0f\uff0c\u5f00\u542f\u540e\u4f1a\u6253\u5370\u66f4\u591a\u65e5\u5fd7\r\n    \"appdata_dir\": \"\",  # \u6570\u636e\u76ee\u5f55\r\n    # \u63d2\u4ef6\u914d\u7f6e\r\n    \"plugin_trigger_prefix\": \"$\",  # \u89c4\u8303\u63d2\u4ef6\u63d0\u4f9b\u804a\u5929\u76f8\u5173\u6307\u4ee4\u7684\u524d\u7f00\uff0c\u5efa\u8bae\u4e0d\u8981\u548c\u7ba1\u7406\u5458\u6307\u4ee4\u524d\u7f00\"#\"\u51b2\u7a81\r\n    # \u662f\u5426\u4f7f\u7528\u5168\u5c40\u63d2\u4ef6\u914d\u7f6e\r\n    \"use_global_plugin_config\": False,\r\n    \"max_media_send_count\": 3,  # \u5355\u6b21\u6700\u5927\u53d1\u9001\u5a92\u4f53\u8d44\u6e90\u7684\u4e2a\u6570\r\n    \"media_send_interval\": 1,  # \u53d1\u9001\u56fe\u7247\u7684\u4e8b\u4ef6\u95f4\u9694\uff0c\u5355\u4f4d\u79d2\r\n    # \u667a\u8c31AI \u5e73\u53f0\u914d\u7f6e\r\n    \"zhipu_ai_api_key\": \"\",\r\n    \"zhipu_ai_api_base\": \"https:\/\/open.bigmodel.cn\/api\/paas\/v4\",\r\n    \"moonshot_api_key\": \"\",\r\n    \"moonshot_base_url\": \"https:\/\/api.moonshot.cn\/v1\/chat\/completions\",\r\n    # LinkAI\u5e73\u53f0\u914d\u7f6e\r\n    \"use_linkai\": False,\r\n    \"linkai_api_key\": \"\",\r\n    \"linkai_app_code\": \"\",\r\n    \"linkai_api_base\": \"https:\/\/api.link-ai.tech\",  # linkAI\u670d\u52a1\u5730\u5740\r\n    \"Minimax_api_key\": \"\",\r\n    \"Minimax_group_id\": \"\",\r\n    \"Minimax_base_url\": \"\",\r\n    \"model\": \"coze\",\r\n  \"coze_api_base\": \"https:\/\/api.coze.cn\/open_api\/v2\",\r\n  \"coze_api_key\": \"\",\r\n  \"coze_bot_id\": \"\",\r\n}\r\n\r\n\r\nclass Config(dict):\r\n    def __init__(self, d=None):\r\n        super().__init__()\r\n        if d is None:\r\n            d = {}\r\n        for k, v in d.items():\r\n            self[k] = v\r\n        # user_datas: \u7528\u6237\u6570\u636e\uff0ckey\u4e3a\u7528\u6237\u540d\uff0cvalue\u4e3a\u7528\u6237\u6570\u636e\uff0c\u4e5f\u662fdict\r\n        self.user_datas = {}\r\n\r\n    def __getitem__(self, key):\r\n        if key not in available_setting:\r\n            raise Exception(\"key {} not in available_setting\".format(key))\r\n        return super().__getitem__(key)\r\n\r\n    def __setitem__(self, key, value):\r\n        if key not in available_setting:\r\n            raise Exception(\"key {} not in available_setting\".format(key))\r\n        return super().__setitem__(key, value)\r\n\r\n    def get(self, key, default=None):\r\n        try:\r\n            return self[key]\r\n        except KeyError as e:\r\n            return default\r\n        except Exception as e:\r\n            raise e\r\n\r\n    # Make sure to return a dictionary to ensure atomic\r\n    def get_user_data(self, user) -&gt; dict:\r\n        if self.user_datas.get(user) is None:\r\n            self.user_datas[user] = {}\r\n        return self.user_datas[user]\r\n\r\n    def load_user_datas(self):\r\n        try:\r\n            with open(os.path.join(get_appdata_dir(), \"user_datas.pkl\"), \"rb\") as f:\r\n                self.user_datas = pickle.load(f)\r\n                logger.info(\"[Config] User datas loaded.\")\r\n        except FileNotFoundError as e:\r\n            logger.info(\"[Config] User datas file not found, ignore.\")\r\n        except Exception as e:\r\n            logger.info(\"[Config] User datas error: {}\".format(e))\r\n            self.user_datas = {}\r\n\r\n    def save_user_datas(self):\r\n        try:\r\n            with open(os.path.join(get_appdata_dir(), \"user_datas.pkl\"), \"wb\") as f:\r\n                pickle.dump(self.user_datas, f)\r\n                logger.info(\"[Config] User datas saved.\")\r\n        except Exception as e:\r\n            logger.info(\"[Config] User datas error: {}\".format(e))\r\n\r\n\r\nconfig = Config()\r\n\r\n\r\ndef drag_sensitive(config):\r\n    try:\r\n        if isinstance(config, str):\r\n            conf_dict: dict = json.loads(config)\r\n            conf_dict_copy = copy.deepcopy(conf_dict)\r\n            for key in conf_dict_copy:\r\n                if \"key\" in key or \"secret\" in key:\r\n                    if isinstance(conf_dict_copy[key], str):\r\n                        conf_dict_copy[key] = conf_dict_copy[key][0:3] + \"*\" * 5 + conf_dict_copy[key][-3:]\r\n            return json.dumps(conf_dict_copy, indent=4)\r\n\r\n        elif isinstance(config, dict):\r\n            config_copy = copy.deepcopy(config)\r\n            for key in config:\r\n                if \"key\" in key or \"secret\" in key:\r\n                    if isinstance(config_copy[key], str):\r\n                        config_copy[key] = config_copy[key][0:3] + \"*\" * 5 + config_copy[key][-3:]\r\n            return config_copy\r\n    except Exception as e:\r\n        logger.exception(e)\r\n        return config\r\n    return config\r\n\r\n\r\ndef load_config():\r\n    global config\r\n    config_path = \".\/config.json\"\r\n    if not os.path.exists(config_path):\r\n        logger.info(\"\u914d\u7f6e\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5c06\u4f7f\u7528config-template.json\u6a21\u677f\")\r\n        config_path = \".\/config-template.json\"\r\n\r\n    config_str = read_file(config_path)\r\n    logger.debug(\"[INIT] config str: {}\".format(drag_sensitive(config_str)))\r\n\r\n    # \u5c06json\u5b57\u7b26\u4e32\u53cd\u5e8f\u5217\u5316\u4e3adict\u7c7b\u578b\r\n    config = Config(json.loads(config_str))\r\n\r\n    # override config with environment variables.\r\n    # Some online deployment platforms (e.g. Railway) deploy project from github directly. So you shouldn't put your secrets like api key in a config file, instead use environment variables to override the default config.\r\n    for name, value in os.environ.items():\r\n        name = name.lower()\r\n        if name in available_setting:\r\n            logger.info(\"[INIT] override config by environ args: {}={}\".format(name, value))\r\n            try:\r\n                config[name] = eval(value)\r\n            except:\r\n                if value == \"false\":\r\n                    config[name] = False\r\n                elif value == \"true\":\r\n                    config[name] = True\r\n                else:\r\n                    config[name] = value\r\n\r\n    if config.get(\"debug\", False):\r\n        logger.setLevel(logging.DEBUG)\r\n        logger.debug(\"[INIT] set log level to DEBUG\")\r\n\r\n    logger.info(\"[INIT] load config: {}\".format(drag_sensitive(config)))\r\n\r\n    config.load_user_datas()\r\n\r\n\r\ndef get_root():\r\n    return os.path.dirname(os.path.abspath(__file__))\r\n\r\n\r\ndef read_file(path):\r\n    with open(path, mode=\"r\", encoding=\"utf-8\") as f:\r\n        return f.read()\r\n\r\n\r\ndef conf():\r\n    return config\r\n\r\n\r\ndef get_appdata_dir():\r\n    data_path = os.path.join(get_root(), conf().get(\"appdata_dir\", \"\"))\r\n    if not os.path.exists(data_path):\r\n        logger.info(\"[INIT] data path not exists, create it: {}\".format(data_path))\r\n        os.makedirs(data_path)\r\n    return data_path\r\n\r\n\r\ndef subscribe_msg():\r\n    trigger_prefix = conf().get(\"single_chat_prefix\", [\"\"])[0]\r\n    msg = conf().get(\"subscribe_msg\", \"\")\r\n    return msg.format(trigger_prefix=trigger_prefix)\r\n\r\n\r\n# global plugin config\r\nplugin_config = {}\r\n\r\n\r\ndef write_plugin_config(pconf: dict):\r\n    \"\"\"\r\n    \u5199\u5165\u63d2\u4ef6\u5168\u5c40\u914d\u7f6e\r\n    :param pconf: \u5168\u91cf\u63d2\u4ef6\u914d\u7f6e\r\n    \"\"\"\r\n    global plugin_config\r\n    for k in pconf:\r\n        plugin_config[k.lower()] = pconf[k]\r\n\r\n\r\ndef pconf(plugin_name: str) -&gt; dict:\r\n    \"\"\"\r\n    \u6839\u636e\u63d2\u4ef6\u540d\u79f0\u83b7\u53d6\u914d\u7f6e\r\n    :param plugin_name: \u63d2\u4ef6\u540d\u79f0\r\n    :return: \u8be5\u63d2\u4ef6\u7684\u914d\u7f6e\u9879\r\n    \"\"\"\r\n    return plugin_config.get(plugin_name.lower())\r\n\r\n\r\n# \u5168\u5c40\u914d\u7f6e\uff0c\u7528\u4e8e\u5b58\u653e\u5168\u5c40\u751f\u6548\u7684\u72b6\u6001\r\nglobal_config = {\"admin_users\": []}\r\n\r\n<\/code><\/pre>\n<p data-track=\"214\">\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/bot\u4e0b\u521b\u5efa \u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\uff0c\u547d\u540d\u4e3a\u201cbytedance\u201d\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16265\" title=\"get-729\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-729.jpg\" alt=\"get-729\" width=\"1080\" height=\"57\" \/><\/div>\n<p data-track=\"216\">\u7136\u540e\u5728\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/bot\/bytedance\u4e0b\uff0c\u4e0a\u4f20bytedance_coze_bot.py\u6587\u4ef6<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16266\" title=\"get-730\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-730.jpg\" alt=\"get-730\" width=\"1080\" height=\"80\" \/><\/div>\n<p data-track=\"218\">bytedance_coze_bot.py\u5982\u4e0b<\/p>\n<pre><code># encoding:utf-8\r\n\r\nimport time\r\nfrom typing import List, Tuple\r\n\r\nimport requests\r\nfrom requests import Response\r\n\r\nfrom bot.bot import Bot\r\nfrom bot.chatgpt.chat_gpt_session import ChatGPTSession\r\nfrom bot.session_manager import SessionManager\r\nfrom bridge.context import ContextType\r\nfrom bridge.reply import Reply, ReplyType\r\nfrom common.log import logger\r\nfrom config import conf\r\n\r\nclass ByteDanceCozeBot(Bot):\r\n    def __init__(self):\r\n        super().__init__()\r\n        self.sessions = SessionManager(ChatGPTSession, model=conf().get(\"model\") or \"coze\")\r\n\r\n    def reply(self, query, context=None):\r\n        # acquire reply content\r\n        if context.type == ContextType.TEXT:\r\n            logger.info(\"[COZE] query={}\".format(query))\r\n\r\n            session_id = context[\"session_id\"]\r\n            session = self.sessions.session_query(query, session_id)\r\n            logger.debug(\"[COZE] session query={}\".format(session.messages))\r\n            reply_content, err = self._reply_text(session_id, session)\r\n            if err is not None:\r\n                logger.error(\"[COZE] reply error={}\".format(err))\r\n                return Reply(ReplyType.ERROR, \"\u6211\u6682\u65f6\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898\uff0c\u8bf7\u60a8\u7a0d\u540e\u91cd\u8bd5~\")\r\n            logger.debug(\r\n                \"[COZE] new_query={}, session_id={}, reply_cont={}, completion_tokens={}\".format(\r\n                    session.messages,\r\n                    session_id,\r\n                    reply_content[\"content\"],\r\n                    reply_content[\"completion_tokens\"],\r\n                )\r\n            )\r\n            return Reply(ReplyType.TEXT, reply_content[\"content\"])\r\n        else:\r\n            reply = Reply(ReplyType.ERROR, \"Bot\u4e0d\u652f\u6301\u5904\u7406{}\u7c7b\u578b\u7684\u6d88\u606f\".format(context.type))\r\n            return reply\r\n\r\n    def _get_api_base_url(self):\r\n        return conf().get(\"coze_api_base\", \"https:\/\/api.coze.cn\/open_api\/v2\")\r\n\r\n    def _get_headers(self):\r\n        return {\r\n            'Authorization': f\"Bearer {conf().get('coze_api_key', '')}\"\r\n        }\r\n\r\n    def _get_payload(self, user: str, query: str, chat_history: List[dict]):\r\n        return {\r\n            'bot_id': conf().get('coze_bot_id'),\r\n            \"user\": user,\r\n            \"query\": query,\r\n            \"chat_history\": chat_history,\r\n            \"stream\": False\r\n        }\r\n    def _reply_text(self, session_id: str, session: ChatGPTSession, retry_count=0):\r\n        try:\r\n            query, chat_history = self._convert_messages_format(session.messages)\r\n            base_url = self._get_api_base_url()\r\n            chat_url = f'{base_url}\/chat'\r\n            headers = self._get_headers()\r\n            payload = self._get_payload(session.session_id, query, chat_history)\r\n            response = requests.post(chat_url, headers=headers, json=payload)\r\n            if response.status_code != 200:\r\n                error_info = f\"[COZE] response text={response.text} status_code={response.status_code}\"\r\n                logger.warn(error_info)\r\n                return None, error_info\r\n            answer, err = self._get_completion_content(response)\r\n            if err is not None:\r\n                return None, err\r\n            completion_tokens, total_tokens = self._calc_tokens(session.messages, answer)\r\n            return {\r\n                \"total_tokens\": total_tokens,\r\n                \"completion_tokens\": completion_tokens,\r\n                \"content\": answer\r\n            }, None\r\n        except Exception as e:\r\n            if retry_count &lt; 2:\r\n                time.sleep(3)\r\n                logger.warn(f\"[COZE] Exception: {repr(e)} \u7b2c{retry_count + 1}\u6b21\u91cd\u8bd5\")\r\n                return self._reply_text(session_id, session, retry_count + 1)\r\n            else:\r\n                return None, f\"[COZE] Exception: {repr(e)} \u8d85\u8fc7\u6700\u5927\u91cd\u8bd5\u6b21\u6570\"\r\n\r\n    def _convert_messages_format(self, messages) -&gt; Tuple[str, List[dict]]:\r\n        # [\r\n        #     {\"role\":\"user\",\"content\":\"\u4f60\u597d\"\uff0c\"content_type\":\"text\"},\r\n        #     {\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"\u4f60\u597d\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7684\u5417\uff1f\"\uff0c\"content_type\":\"text\"}\r\n        #  ]\r\n        chat_history = []\r\n        for message in messages:\r\n            role = message.get('role')\r\n            if role == 'user':\r\n                content = message.get('content')\r\n                chat_history.append({\"role\":\"user\", \"content\": content, \"content_type\":\"text\"})\r\n            elif role == 'assistant':\r\n                content = message.get('content')\r\n                chat_history.append({\"role\":\"assistant\", \"type\":\"answer\", \"content\": content, \"content_type\":\"text\"})\r\n            elif role =='system':\r\n                # TODO: deal system message\r\n                pass\r\n        user_message = chat_history.pop()\r\n        if user_message.get('role') != 'user' or user_message.get('content', '') == '':\r\n            raise Exception('no user message')\r\n        query = user_message.get('content')\r\n        logger.debug(\"[COZE] converted coze messages: {}\".format([item for item in chat_history]))\r\n        logger.debug(\"[COZE] user content as query: {}\".format(query))\r\n        return query, chat_history\r\n\r\n    def _get_completion_content(self, response: Response):\r\n        json_response = response.json()\r\n        if json_response['msg'] != 'success':\r\n            return None, f\"[COZE] Error: {json_response['msg']}\"\r\n        answer = None\r\n        for message in json_response['messages']:\r\n            if message.get('type') == 'answer':\r\n                answer = message.get('content')\r\n                break\r\n        if not answer:\r\n            return None, \"[COZE] Error: empty answer\"\r\n        return answer, None\r\n\r\n    def _calc_tokens(self, messages, answer):\r\n        # \u7b80\u5355\u7edf\u8ba1token\r\n        completion_tokens = len(answer)\r\n        prompt_tokens = 0\r\n        for message in messages:\r\n            prompt_tokens += len(message[\"content\"])\r\n        return completion_tokens, prompt_tokens + completion_tokens\r\n\r\n<\/code><\/pre>\n<p data-track=\"220\">3\u3001\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/bot\u6587\u4ef6\u5939\u4e0b\uff0c\u4fee\u6539bot_factory.py\u6587\u4ef6\u3002<\/p>\n<pre><code>    elif bot_type == const.COZE:\r\n        from bot.bytedance.bytedance_coze_bot import ByteDanceCozeBot\r\n        return ByteDanceCozeBot()\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16267\" title=\"get-731\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-731.jpg\" alt=\"get-731\" width=\"1080\" height=\"283\" \/><\/div>\n<p data-track=\"223\">\u5b8c\u6574\u4ee3\u7801<\/p>\n<pre><code>\"\"\"\r\nchannel factory\r\n\"\"\"\r\nfrom common import const\r\n\r\n\r\ndef create_bot(bot_type):\r\n    \"\"\"\r\n    create a bot_type instance\r\n    :param bot_type: bot type code\r\n    :return: bot instance\r\n    \"\"\"\r\n    if bot_type == const.BAIDU:\r\n        # \u66ff\u6362Baidu Unit\u4e3aBaidu\u6587\u5fc3\u5343\u5e06\u5bf9\u8bdd\u63a5\u53e3\r\n        # from bot.baidu.baidu_unit_bot import BaiduUnitBot\r\n        # return BaiduUnitBot()\r\n        from bot.baidu.baidu_wenxin import BaiduWenxinBot\r\n        return BaiduWenxinBot()\r\n\r\n    elif bot_type == const.CHATGPT:\r\n        # ChatGPT \u7f51\u9875\u7aefweb\u63a5\u53e3\r\n        from bot.chatgpt.chat_gpt_bot import ChatGPTBot\r\n        return ChatGPTBot()\r\n\r\n    elif bot_type == const.OPEN_AI:\r\n        # OpenAI \u5b98\u65b9\u5bf9\u8bdd\u6a21\u578bAPI\r\n        from bot.openai.open_ai_bot import OpenAIBot\r\n        return OpenAIBot()\r\n\r\n    elif bot_type == const.CHATGPTONAZURE:\r\n        # Azure chatgpt service https:\/\/azure.microsoft.com\/en-in\/products\/cognitive-services\/openai-service\/\r\n        from bot.chatgpt.chat_gpt_bot import AzureChatGPTBot\r\n        return AzureChatGPTBot()\r\n\r\n    elif bot_type == const.XUNFEI:\r\n        from bot.xunfei.xunfei_spark_bot import XunFeiBot\r\n        return XunFeiBot()\r\n\r\n    elif bot_type == const.LINKAI:\r\n        from bot.linkai.link_ai_bot import LinkAIBot\r\n        return LinkAIBot()\r\n\r\n    elif bot_type == const.CLAUDEAI:\r\n        from bot.claude.claude_ai_bot import ClaudeAIBot\r\n        return ClaudeAIBot()\r\n    elif bot_type == const.CLAUDEAPI:\r\n        from bot.claudeapi.claude_api_bot import ClaudeAPIBot\r\n        return ClaudeAPIBot()\r\n    elif bot_type == const.QWEN:\r\n        from bot.ali.ali_qwen_bot import AliQwenBot\r\n        return AliQwenBot()\r\n    elif bot_type == const.QWEN_DASHSCOPE:\r\n        from bot.dashscope.dashscope_bot import DashscopeBot\r\n        return DashscopeBot()\r\n    elif bot_type == const.GEMINI:\r\n        from bot.gemini.google_gemini_bot import GoogleGeminiBot\r\n        return GoogleGeminiBot()\r\n\r\n    elif bot_type == const.ZHIPU_AI:\r\n        from bot.zhipuai.zhipuai_bot import ZHIPUAIBot\r\n        return ZHIPUAIBot()\r\n\r\n    elif bot_type == const.MOONSHOT:\r\n        from bot.moonshot.moonshot_bot import MoonshotBot\r\n        return MoonshotBot()\r\n    \r\n    elif bot_type == const.MiniMax:\r\n        from bot.minimax.minimax_bot import MinimaxBot\r\n        return MinimaxBot()\r\n        \r\n    elif bot_type == const.COZE:\r\n        from bot.bytedance.bytedance_coze_bot import ByteDanceCozeBot\r\n        return ByteDanceCozeBot()\r\n\r\n    raise RuntimeError\r\n\r\n<\/code><\/pre>\n<p data-track=\"225\">\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/common\u6587\u4ef6\u5939\u4e0b\uff0c\u4fee\u6539Const.py\u6587\u4ef6<\/p>\n<pre><code>COZE = \"coze\"\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16268\" title=\"get-732\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-732.jpg\" alt=\"get-732\" width=\"1080\" height=\"256\" \/><\/div>\n<p data-track=\"228\">\u5b8c\u6574\u4ee3\u7801<\/p>\n<pre><code># bot_type\r\nOPEN_AI = \"openAI\"\r\nCHATGPT = \"chatGPT\"\r\nBAIDU = \"baidu\"  # \u767e\u5ea6\u6587\u5fc3\u4e00\u8a00\u6a21\u578b\r\nXUNFEI = \"xunfei\"\r\nCHATGPTONAZURE = \"chatGPTOnAzure\"\r\nLINKAI = \"linkai\"\r\nCLAUDEAI = \"claude\"  # \u4f7f\u7528cookie\u7684\u5386\u53f2\u6a21\u578b\r\nCLAUDEAPI= \"claudeAPI\"  # \u901a\u8fc7Claude api\u8c03\u7528\u6a21\u578b\r\nQWEN = \"qwen\"  # \u65e7\u7248\u901a\u4e49\u6a21\u578b\r\nQWEN_DASHSCOPE = \"dashscope\"  # \u901a\u4e49\u65b0\u7248sdk\u548capi key\r\n\r\n\r\nGEMINI = \"gemini\"  # gemini-1.0-pro\r\nZHIPU_AI = \"glm-4\"\r\nMOONSHOT = \"moonshot\"\r\nMiniMax = \"minimax\"\r\nCOZE = \"coze\"\r\n\r\n# model\r\nCLAUDE3 = \"claude-3-opus-20240229\"\r\nGPT35 = \"gpt-3.5-turbo\"\r\nGPT35_0125 = \"gpt-3.5-turbo-0125\"\r\nGPT35_1106 = \"gpt-3.5-turbo-1106\"\r\n\r\nGPT_4o = \"gpt-4o\"\r\nGPT4_TURBO = \"gpt-4-turbo\"\r\nGPT4_TURBO_PREVIEW = \"gpt-4-turbo-preview\"\r\nGPT4_TURBO_04_09 = \"gpt-4-turbo-2024-04-09\"\r\nGPT4_TURBO_01_25 = \"gpt-4-0125-preview\"\r\nGPT4_TURBO_11_06 = \"gpt-4-1106-preview\"\r\nGPT4_VISION_PREVIEW = \"gpt-4-vision-preview\"\r\n\r\nGPT4 = \"gpt-4\"\r\nGPT4_32k = \"gpt-4-32k\"\r\nGPT4_06_13 = \"gpt-4-0613\"\r\nGPT4_32k_06_13 = \"gpt-4-32k-0613\"\r\n\r\nWHISPER_1 = \"whisper-1\"\r\nTTS_1 = \"tts-1\"\r\nTTS_1_HD = \"tts-1-hd\"\r\n\r\nWEN_XIN = \"wenxin\"\r\nWEN_XIN_4 = \"wenxin-4\"\r\n\r\nQWEN_TURBO = \"qwen-turbo\"\r\nQWEN_PLUS = \"qwen-plus\"\r\nQWEN_MAX = \"qwen-max\"\r\n\r\nLINKAI_35 = \"linkai-3.5\"\r\nLINKAI_4_TURBO = \"linkai-4-turbo\"\r\nLINKAI_4o = \"linkai-4o\"\r\n\r\nGEMINI_PRO = \"gemini-1.0-pro\"\r\nGEMINI_15_flash = \"gemini-1.5-flash\"\r\nGEMINI_15_PRO = \"gemini-1.5-pro\"\r\n\r\nMODEL_LIST = [\r\n              GPT35, GPT35_0125, GPT35_1106, \"gpt-3.5-turbo-16k\",\r\n              GPT_4o, GPT4_TURBO, GPT4_TURBO_PREVIEW, GPT4_TURBO_01_25, GPT4_TURBO_11_06, GPT4, GPT4_32k, GPT4_06_13, GPT4_32k_06_13,\r\n              WEN_XIN, WEN_XIN_4,\r\n              XUNFEI, ZHIPU_AI, MOONSHOT, MiniMax,\r\n              GEMINI, GEMINI_PRO, GEMINI_15_flash, GEMINI_15_PRO,\r\n              \"claude\", \"claude-3-haiku\", \"claude-3-sonnet\", \"claude-3-opus\", \"claude-3-opus-20240229\", \"claude-3.5-sonnet\",\r\n              \"moonshot-v1-8k\", \"moonshot-v1-32k\", \"moonshot-v1-128k\",\r\n              QWEN, QWEN_TURBO, QWEN_PLUS, QWEN_MAX,\r\n              LINKAI_35, LINKAI_4_TURBO, LINKAI_4o\r\n            ]\r\n\r\n# channel\r\nFEISHU = \"feishu\"\r\nDINGTALK = \"dingtalk\"\r\n\r\n<\/code><\/pre>\n<p data-track=\"230\">\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/bridge\u4e0b \uff0c\u4fee\u6539bridge.py\u6587\u4ef6<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16269\" title=\"get-733\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-733.jpg\" alt=\"get-733\" width=\"1080\" height=\"248\" \/><\/div>\n<p data-track=\"232\">\u5b8c\u6574\u4ee3\u7801<\/p>\n<pre><code>from bot.bot_factory import create_bot\r\nfrom bridge.context import Context\r\nfrom bridge.reply import Reply\r\nfrom common import const\r\nfrom common.log import logger\r\nfrom common.singleton import singleton\r\nfrom config import conf\r\nfrom translate.factory import create_translator\r\nfrom voice.factory import create_voice\r\n\r\n\r\n@singleton\r\nclass Bridge(object):\r\n    def __init__(self):\r\n        self.btype = {\r\n            \"chat\": const.CHATGPT,\r\n            \"voice_to_text\": conf().get(\"voice_to_text\", \"openai\"),\r\n            \"text_to_voice\": conf().get(\"text_to_voice\", \"google\"),\r\n            \"translate\": conf().get(\"translate\", \"baidu\"),\r\n        }\r\n        # \u8fd9\u8fb9\u53d6\u914d\u7f6e\u7684\u6a21\u578b\r\n        bot_type = conf().get(\"bot_type\")\r\n        if bot_type:\r\n            self.btype[\"chat\"] = bot_type\r\n        else:\r\n            model_type = conf().get(\"model\") or const.GPT35\r\n            if model_type in [\"text-davinci-003\"]:\r\n                self.btype[\"chat\"] = const.OPEN_AI\r\n            if conf().get(\"use_azure_chatgpt\", False):\r\n                self.btype[\"chat\"] = const.CHATGPTONAZURE\r\n            if model_type in [\"wenxin\", \"wenxin-4\"]:\r\n                self.btype[\"chat\"] = const.BAIDU\r\n            if model_type in [\"xunfei\"]:\r\n                self.btype[\"chat\"] = const.XUNFEI\r\n            if model_type in [const.QWEN]:\r\n                self.btype[\"chat\"] = const.QWEN\r\n            if model_type in [const.QWEN_TURBO, const.QWEN_PLUS, const.QWEN_MAX]:\r\n                self.btype[\"chat\"] = const.QWEN_DASHSCOPE\r\n            if model_type and model_type.startswith(\"gemini\"):\r\n                self.btype[\"chat\"] = const.GEMINI\r\n            if model_type in [const.ZHIPU_AI]:\r\n                self.btype[\"chat\"] = const.ZHIPU_AI\r\n            if model_type and model_type.startswith(\"claude-3\"):\r\n                self.btype[\"chat\"] = const.CLAUDEAPI\r\n            if model_type in [const.COZE]:\r\n                self.btype[\"chat\"] = const.COZE\r\n\r\n            if model_type in [\"claude\"]:\r\n                self.btype[\"chat\"] = const.CLAUDEAI\r\n\r\n            if model_type in [\"moonshot-v1-8k\", \"moonshot-v1-32k\", \"moonshot-v1-128k\"]:\r\n                self.btype[\"chat\"] = const.MOONSHOT\r\n\r\n            if model_type in [\"abab6.5-chat\"]:\r\n                self.btype[\"chat\"] = const.MiniMax\r\n\r\n            if conf().get(\"use_linkai\") and conf().get(\"linkai_api_key\"):\r\n                self.btype[\"chat\"] = const.LINKAI\r\n                if not conf().get(\"voice_to_text\") or conf().get(\"voice_to_text\") in [\"openai\"]:\r\n                    self.btype[\"voice_to_text\"] = const.LINKAI\r\n                if not conf().get(\"text_to_voice\") or conf().get(\"text_to_voice\") in [\"openai\", const.TTS_1, const.TTS_1_HD]:\r\n                    self.btype[\"text_to_voice\"] = const.LINKAI\r\n\r\n        self.bots = {}\r\n        self.chat_bots = {}\r\n\r\n    # \u6a21\u578b\u5bf9\u5e94\u7684\u63a5\u53e3\r\n    def get_bot(self, typename):\r\n        if self.bots.get(typename) is None:\r\n            logger.info(\"create bot {} for {}\".format(self.btype[typename], typename))\r\n            if typename == \"text_to_voice\":\r\n                self.bots[typename] = create_voice(self.btype[typename])\r\n            elif typename == \"voice_to_text\":\r\n                self.bots[typename] = create_voice(self.btype[typename])\r\n            elif typename == \"chat\":\r\n                self.bots[typename] = create_bot(self.btype[typename])\r\n            elif typename == \"translate\":\r\n                self.bots[typename] = create_translator(self.btype[typename])\r\n        return self.bots[typename]\r\n\r\n    def get_bot_type(self, typename):\r\n        return self.btype[typename]\r\n\r\n    def fetch_reply_content(self, query, context: Context) -&gt; Reply:\r\n        return self.get_bot(\"chat\").reply(query, context)\r\n\r\n    def fetch_voice_to_text(self, voiceFile) -&gt; Reply:\r\n        return self.get_bot(\"voice_to_text\").voiceToText(voiceFile)\r\n\r\n    def fetch_text_to_voice(self, text) -&gt; Reply:\r\n        return self.get_bot(\"text_to_voice\").textToVoice(text)\r\n\r\n    def fetch_translate(self, text, from_lang=\"\", to_lang=\"en\") -&gt; Reply:\r\n        return self.get_bot(\"translate\").translate(text, from_lang, to_lang)\r\n\r\n    def find_chat_bot(self, bot_type: str):\r\n        if self.chat_bots.get(bot_type) is None:\r\n            self.chat_bots[bot_type] = create_bot(bot_type)\r\n        return self.chat_bots.get(bot_type)\r\n\r\n    def reset_bot(self):\r\n        \"\"\"\r\n        \u91cd\u7f6ebot\u8def\u7531\r\n        \"\"\"\r\n        self.__init__()\r\n\r\n<\/code><\/pre>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"234\">\u4fee\u6539\u914d\u7f6e<\/h1>\n<p data-track=\"235\">\u6765\u5230\u9879\u76ee\u6839\u76ee\u5f55\uff0c\u627e\u5230config-template.json\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u662f\u542f\u52a8\u65f6\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16270\" title=\"get-734\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-734.jpg\" alt=\"get-734\" width=\"414\" height=\"78\" \/><\/div>\n<p data-track=\"237\">\u4e3b\u8981\u66f4\u6539\u7684\u662f\u4e0b\u9762\u56db\u884c\uff0c\u53ef\u4ee5\u76f4\u63a5\u6e05\u7a7a\u539f\u6587\u4ef6\u914d\u7f6e\uff0c\u628a\u4ee5\u4e0b\u914d\u7f6e\u7c98\u8d34\u8fdb\u4f60\u7684config.json\u6587\u4ef6\u4e2d\u3002<\/p>\n<pre><code>  \"model\": \"coze\",\r\n  \"coze_api_base\": \"https:\/\/api.coze.cn\/open_api\/v2\",\r\n  \"coze_api_key\": \"\u8fd9\u91cc\u6539\u6210\u4f60\u7684coze key\",\r\n  \"coze_bot_id\": \"\u8fd9\u91cc\u662f\u4f60\u7684botid\",\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16271\" title=\"get-735\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-735.jpg\" alt=\"get-735\" width=\"1080\" height=\"280\" \/><\/div>\n<p data-track=\"240\">\u5b8c\u6574\u4ee3\u7801<\/p>\n<pre><code>{\r\n  \"channel_type\": \"wx\",\r\n  \"model\": \"coze\",\r\n  \"coze_api_base\": \"https:\/\/api.coze.cn\/open_api\/v2\",\r\n  \"coze_api_key\": \"\u8fd9\u91cc\u6539\u6210\u4f60\u7684coze key\",\r\n  \"coze_bot_id\": \"\u8fd9\u91cc\u662f\u4f60\u7684botid\",\r\n  \"text_to_image\": \"dall-e-2\",\r\n  \"voice_to_text\": \"openai\",\r\n  \"text_to_voice\": \"openai\",\r\n  \"proxy\": \"\",\r\n  \"hot_reload\": false,\r\n  \"single_chat_prefix\": [\r\n    \"bot\",\r\n    \"@bot\"\r\n  ],\r\n  \"single_chat_reply_prefix\": \"[bot] \",\r\n  \"group_chat_prefix\": [\r\n    \"@bot\"\r\n  ],\r\n  \"group_name_white_list\": [\r\n    \"ChatGPT\u6d4b\u8bd5\u7fa4\",\r\n    \"ChatGPT\u6d4b\u8bd5\u7fa42\"\r\n  ],\r\n  \"image_create_prefix\": [\r\n    \"\u753b\"\r\n  ],\r\n  \"speech_recognition\": true,\r\n  \"group_speech_recognition\": false,\r\n  \"voice_reply_voice\": false,\r\n  \"conversation_max_tokens\": 2500,\r\n  \"expires_in_seconds\": 3600,\r\n  \"character_desc\": \"\u4f60\u662f\u57fa\u4e8e\u5927\u8bed\u8a00\u6a21\u578b\u7684AI\u667a\u80fd\u52a9\u624b\uff0c\u65e8\u5728\u56de\u7b54\u5e76\u89e3\u51b3\u4eba\u4eec\u7684\u4efb\u4f55\u95ee\u9898\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u8bed\u8a00\u4e0e\u4eba\u4ea4\u6d41\u3002\",\r\n  \"temperature\": 0.7,\r\n  \"subscribe_msg\": \"\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\\n\u8fd9\u91cc\u662fAI\u667a\u80fd\u52a9\u624b\uff0c\u53ef\u4ee5\u81ea\u7531\u5bf9\u8bdd\u3002\\n\u652f\u6301\u8bed\u97f3\u5bf9\u8bdd\u3002\\n\u652f\u6301\u56fe\u7247\u8f93\u5165\u3002\\n\u652f\u6301\u56fe\u7247\u8f93\u51fa\uff0c\u753b\u5b57\u5f00\u5934\u7684\u6d88\u606f\u5c06\u6309\u8981\u6c42\u521b\u4f5c\u56fe\u7247\u3002\\n\u652f\u6301tool\u3001\u89d2\u8272\u626e\u6f14\u548c\u6587\u5b57\u5192\u9669\u7b49\u4e30\u5bcc\u7684\u63d2\u4ef6\u3002\\n\u8f93\u5165{trigger_prefix}#help \u67e5\u770b\u8be6\u7ec6\u6307\u4ee4\u3002\",\r\n  \"use_linkai\": false,\r\n  \"linkai_api_key\": \"\",\r\n  \"linkai_app_code\": \"\"\r\n}\r\n\r\n<\/code><\/pre>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"242\">\u8fd0\u884c\u9879\u76ee<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"243\">\u5f00\u542f\u9879\u76ee<\/h1>\n<p data-track=\"244\">\u6765\u5230python\u9879\u76ee\u7ba1\u7406\u754c\u9762\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16272\" title=\"get-736\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-736.jpg\" alt=\"get-736\" width=\"1080\" height=\"159\" \/><\/div>\n<p data-track=\"246\">\u505c\u6b62\u9879\u76ee\uff0c\u6211\u4eec\u901a\u8fc7\u7ec8\u7aef\u7684\u65b9\u5f0f\u53bb\u5f00\u542f\uff0c\u56e0\u4e3a\u542f\u52a8\u65f6\u9700\u8981\u83b7\u53d60\u4e8c\u7ef4\u7801\u8fdb\u884c\u767b\u5f55<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16273\" title=\"get-737\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-737.jpg\" alt=\"get-737\" width=\"1080\" height=\"102\" \/><\/div>\n<p data-track=\"248\">\u6253\u5f00\u7ec8\u7aef<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16274\" title=\"get-738\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-738.jpg\" alt=\"get-738\" width=\"1080\" height=\"540\" \/><\/div>\n<p data-track=\"250\">\u8f93\u5165\u4e0b\u9762\u547d\u4ee4<\/p>\n<p data-track=\"251\">\u521b\u5efa\u65e5\u5fd7<\/p>\n<pre><code>touch nohup.out\r\n<\/code><\/pre>\n<p data-track=\"253\">\u8fd0\u884capp.py<\/p>\n<pre><code>nohup python3 app.py &amp; tail -f nohup.out\r\n<\/code><\/pre>\n<p data-track=\"255\">\u8fd0\u884c\u6210\u529f\u4f1a\u5728\u7ec8\u7aef\u751f\u6210\u4e00\u4e2a\u4e8c\u7ef4\u7801\uff0c\u62ff\u4f60\u9700\u8981\u767b\u5f55\u7684\u5fae\u4fe1\u8fdb\u884c\u626b\u7801\u5373\u53ef\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16275\" title=\"get-739\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-739.jpg\" alt=\"get-739\" width=\"1080\" height=\"544\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"257\">\u6d4b\u8bd5\u6548\u679c<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16276\" title=\"get-740\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-740.jpg\" alt=\"get-740\" width=\"1080\" height=\"253\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16277\" title=\"get-741\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-741.jpg\" alt=\"get-741\" width=\"1080\" height=\"374\" \/><\/div>\n<p data-track=\"260\">\u53ef\u4ee5\u770b\u5230\u9879\u76ee\u8fd0\u884c\u6b63\u5e38\uff0c\u673a\u5668\u4eba\u6b63\u5e38\u56de\u590d\u3002<\/p>\n<p data-track=\"261\">\u8fd9\u91cc\u56de\u590d\u7684\u5c4b\u91cc\u54c7\u5566\u8ddf\u6211\u521b\u5efa\u673a\u5668\u4eba\u65f6\u8bbe\u7f6e\u7684\u529f\u80fd\u4ecb\u7ecd\u6709\u5173\u3002\u5220\u6389\u5373\u53ef\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16278\" title=\"get-742\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-742.jpg\" alt=\"get-742\" width=\"1080\" height=\"1113\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"263\">\u91cd\u542f\u9879\u76ee<\/h1>\n<p data-track=\"264\">\u5982\u679c\u4f60\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\u9700\u8981\u5173\u95ed\u6216\u8005\u91cd\u542f\u9879\u76ee<\/p>\n<p data-track=\"265\">\u8f93\u5165\u67e5\u8be2\u547d\u4ee4<\/p>\n<pre><code>ps -ef | grep app.py | grep -v grep\r\n<\/code><\/pre>\n<p data-track=\"267\">\u5173\u6389\u5bf9\u5e94PID\u7a0b\u5e8f<\/p>\n<pre><code>kill -9 15230\r\n<\/code><\/pre>\n<p data-track=\"269\">\u6bd4\u5982\u8fd9\u91cc\u7a0b\u5e8f\u7684pid\u662f20945\uff0c\u8f93\u5165kill -9 20945\u5173\u6389\u7a0b\u5e8f\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16279\" title=\"get-743\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-743.jpg\" alt=\"get-743\" width=\"1080\" height=\"213\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"271\">\u5173\u4e8e\u77e5\u8bc6\u5e93<\/h1>\n<p data-track=\"272\">\u6765\u5230coze\u4e3b\u9875\u521b\u5efa\u77e5\u8bc6\u5e93<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16280\" title=\"get-744\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-744.jpg\" alt=\"get-744\" width=\"1080\" height=\"598\" \/><\/div>\n<p data-track=\"274\">\u914d\u7f6e\u77e5\u8bc6\u5e93\u9009\u9879<\/p>\n<p data-track=\"275\">\u77e5\u8bc6\u5e93\u6709\u4e09\u79cd\uff0c\u6587\u672c\u683c\u5f0f\u3001\u8868\u683c\u683c\u5f0f\u3001\u7167\u7247\u7c7b\u578b\u3002<\/p>\n<p data-track=\"276\">\u4e0d\u540c\u7c7b\u578b\u4e0a\u4f20\u65f6\u7684\u5904\u7406\u4e0d\u4e00\u6837\u3002<\/p>\n<p data-track=\"277\">\u8fd9\u91cc\u53ea\u8bf4\u4e0b\u6587\u672c\u683c\u5f0f\u7684\u5904\u7406\u3002<\/p>\n<p data-track=\"278\">\u5bfc\u5165\u7c7b\u578b\u6839\u636e\u81ea\u5df1\u9700\u8981\u8fdb\u884c\u9009\u62e9\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16281\" title=\"get-745\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-745.jpg\" alt=\"get-745\" width=\"1080\" height=\"1724\" \/><\/div>\n<p data-track=\"279\">\u8fd9\u662f\u6211\u51c6\u5907\u597d\u7684\u77e5\u8bc6\u5e93TXT\uff0c\u91c7\u7528\u4e00\u95ee\u4e00\u7b54\u7684\u5f62\u5f0f\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16282\" title=\"get-746\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-746.jpg\" alt=\"get-746\" width=\"1080\" height=\"614\" \/><\/div>\n<p data-track=\"280\">\u5c06\u51c6\u5907\u597d\u7684TXT\u4e0a\u4f20<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16283\" title=\"get-747\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-747.jpg\" alt=\"get-747\" width=\"1080\" height=\"530\" \/><\/div>\n<p data-track=\"281\">\u9009\u62e9\u81ea\u52a8\u5206\u6bb5\u4e0e\u6e05\u6d17<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16284\" title=\"get-748\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-748.jpg\" alt=\"get-748\" width=\"1080\" height=\"378\" \/><\/div>\n<p data-track=\"283\">\u70b9\u51fb\u786e\u8ba4\uff0c\u7b49\u5f85\u5904\u7406\u5b8c\u6210\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16285\" title=\"get-749\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-749.jpg\" alt=\"get-749\" width=\"1080\" height=\"365\" \/><\/div>\n<p data-track=\"285\">\u53ef\u4ee5\u770b\u5230\u751f\u6210\u540e\u7684\u5207\u5206\u7247\u6bb5\uff0c\u5c06\u8fd9\u6bb5\u6587\u672c\u5206\u6210\u4e862\u6bb5\uff0c\u4f46\u8fd9\u4e0d\u662f\u6211\u60f3\u8981\u7684\uff0c\u6211\u5e0c\u671b\u7684\u662f\u4e00\u95ee\u4e00\u7b54\u662f\u4e00\u6bb5\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16286\" title=\"get-750\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-750.jpg\" alt=\"get-750\" width=\"1080\" height=\"770\" \/><\/div>\n<p data-track=\"287\">\u70b9\u51fb\u91cd\u65b0\u5206\u6bb5<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16287\" title=\"get-751\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-751.jpg\" alt=\"get-751\" width=\"1316\" height=\"608\" \/><\/div>\n<p data-track=\"288\">\u5206\u6bb5\u8bbe\u7f6e\u8fd9\u91cc\u9009\u62e9\u81ea\u5b9a\u4e49\uff0c\u6807\u8bc6\u7b26\u6211\u7528\u4e86###\u7b26\u53f7\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16288\" title=\"get-752\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-752.jpg\" alt=\"get-752\" width=\"1080\" height=\"710\" \/><\/div>\n<p data-track=\"290\">\u5e76\u4e14\u5bf9\u77e5\u8bc6\u5e93TXT\u505a\u4e86\u4fee\u6539\uff0c\u5728\u6bcf\u4e00\u95ee\u524d\u9762\u52a0\u4e0a\u6807\u8bc6\u7b26###<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16289\" title=\"get-753\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-753.jpg\" alt=\"get-753\" width=\"1080\" height=\"625\" \/><\/div>\n<p data-track=\"292\">\u518d\u6b21\u5206\u6bb5\uff0c\u8fd9\u65f6\u5c31\u5206\u4e3a\u4e868\u6bb5\uff0c\u662f\u6211\u60f3\u8981\u7684\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16290\" title=\"get-754\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-754.jpg\" alt=\"get-754\" width=\"1080\" height=\"733\" \/><\/div>\n<p data-track=\"294\">\u6765\u5230\u673a\u5668\u4eba\u7f16\u6392\u8fd9\u91cc\uff0c\u77e5\u8bc6\u9009\u9879\u8fd9\u91cc\u70b9\u51fb+\u53f7<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16291\" title=\"get-755\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-755.jpg\" alt=\"get-755\" width=\"1080\" height=\"544\" \/><\/div>\n<p data-track=\"296\">\u9009\u62e9\u521a\u624d\u65b0\u5efa\u7684\u77e5\u8bc6\u5e93<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16292\" title=\"get-756\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-756.jpg\" alt=\"get-756\" width=\"1080\" height=\"299\" \/><\/div>\n<p data-track=\"298\">\u77e5\u8bc6\u5e93\u8bbe\u7f6e\u8fd9\u91cc\u9ed8\u8ba4\u662f\u65e0\u53ec\u56de\u56de\u590d\u7684\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16293\" title=\"get-757\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-757.jpg\" alt=\"get-757\" width=\"1080\" height=\"602\" \/><\/div>\n<p data-track=\"300\">\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4e00\u6bb5\u56de\u590d\uff0c\u6bd4\u5982\u5f53\u7528\u6237\u63d0\u5230\u7684\u95ee\u9898\u77e5\u8bc6\u5e93\u91cc\u6ca1\u6709\uff0c\u5c31\u4f1a\u56de\u590d\u4f60\u8bbe\u5b9a\u7684\u8bed\u53e5\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16294\" title=\"get-758\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-758.jpg\" alt=\"get-758\" width=\"1080\" height=\"382\" \/><\/div>\n<p data-track=\"302\">\u6d4b\u8bd5\u4e0b\u6548\u679c<\/p>\n<p data-track=\"303\">\u95ee\u4e0b\u77e5\u8bc6\u5e93\u76f8\u5173\u7684\u5185\u5bb9<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16295\" title=\"get-759\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-759.jpg\" alt=\"get-759\" width=\"962\" height=\"1498\" \/><\/div>\n<p data-track=\"305\">\u53ef\u4ee5\u770b\u5230\u4f1a\u6309\u7167\u6211\u4eec\u77e5\u8bc6\u5e93\u91cc\u7684\u5185\u5bb9\u8fdb\u884c\u56de\u590d\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16297\" title=\"get-761\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-761.jpg\" alt=\"get-761\" width=\"974\" height=\"584\" \/><\/div>\n<p data-track=\"307\">\u5fae\u4fe1\u4e2d\u7684\u6d4b\u8bd5\u6548\u679c\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16296\" title=\"get-760\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-760.jpg\" alt=\"get-760\" width=\"1080\" height=\"335\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"310\">\u5173\u4e8e\u7fa4\u804a<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"311\">\u8bbe\u7f6e\u7fa4\u804a<\/h1>\n<p data-track=\"312\">\u60f3\u8981\u8ba9\u673a\u5668\u4eba\u5728\u7fa4\u804a\u4e2d\u8fdb\u884c\u56de\u590d\uff0c\u9700\u8981\u5bf9config.json\u8fdb\u884c\u4fee\u6539\u3002\u4fee\u6539\u5176\u4e2d\u7684group_name_white_list\u7fa4\u804a\u767d\u540d\u5355\u3002\u5728\u8fd9\u91cc\u586b\u5165\u4f60\u60f3\u8981\u56de\u590d\u7684\u7fa4\u540d\u3002(\u673a\u5668\u4eba\u767b\u5f55\u7684\u5fae\u4fe1\u5fc5\u987b\u5728\u8fd9\u4e2a\u7fa4\u804a\u5185)<\/p>\n<pre><code> \"group_name_white_list\": [\r\n    \"ChatGPT\u6d4b\u8bd5\u7fa4\",\r\n    \"ChatGPT\u6d4b\u8bd5\u7fa42\"\r\n  ],\r\n<\/code><\/pre>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"314\">\u8bbe\u7f6e\u6b22\u8fce\u8bed<\/h1>\n<p data-track=\"315\">\u5f53\u6709\u65b0\u4eba\u52a0\u5165\u7fa4\u804a\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u6b22\u8fce\u8bed\u3002config.json\u6587\u4ef6\u4e2d\u52a0\u5165\u4ee5\u4e0b\uff1a<\/p>\n<pre><code>\"group_welcome_msg\": \"\u6b22\u8fce\u52a0\u5165\u672c\u7fa4\uff0c\u6b22\u8fce\u8bed\uff01\uff01\",\r\n<\/code><\/pre>\n<p data-track=\"317\">config.json\u8bbe\u7f6e\u5b8c\u6bd5\u540e\u8bb0\u5f97\u91cd\u542f\u9879\u76ee\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"318\">\u6548\u679c\u6d4b\u8bd5<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16298\" title=\"get-762\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-762.jpg\" alt=\"get-762\" width=\"864\" height=\"282\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"320\">\u5173\u4e8e\u65e5\u5fd7<\/h1>\n<p data-track=\"321\">\u8f93\u51fa\u7684\u65e5\u5fd7\u5728\u9879\u76ee\u6839\u76ee\u5f55\u7684run.log\u6587\u4ef6\u5185<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16299\" title=\"get-763\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-763.jpg\" alt=\"get-763\" width=\"412\" height=\"90\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"322\">\u4eba\u8bbe\u8c03\u6574<\/h1>\n<p data-track=\"323\">\u5982\u679c\u89c9\u5f97\u673a\u5668\u4eba\u56de\u590d\u592a\u8fc7\u5355\u8c03\uff0c\u6211\u4eec\u53ef\u4ee5\u589e\u52a0\u4e00\u4e9b\u4eba\u8bbePormot\u3002\u8fd9\u6bb5\u51fa\u81ea\u5218\u5b87\u9f99\u7684\u63d0\u793a\u8bcd\u3002<\/p>\n<pre><code>## Role\r\n- \u4f60\u662f\u8001\u738b\uff0c\u62ab\u7740\u6587\u5316\u5916\u8863\u7684\u201c\u75de\u5b50\u6d41\u6c13\u201d\uff0c\u72e0\u8d77\u6765\u8fde\u81ea\u5df1\u90fd\u9a82\u3002\r\n- \u4f60\u6027\u683c\u66b4\u8e81\u8ba9\u4eba\u7422\u78e8\u4e0d\u900f\uff0c\u65e0\u6cd5\u5bb9\u5fcd\u522b\u4eba\u7684\u611a\u8822\uff0c**\u5c24\u5176\u8ba8\u538c**\u90a3\u4e9b\u8ba9\u4f60\u73a9**\u6e38\u620f**\u3001\u73a9**\u89d2\u8272\u626e\u6f14**\u3001\u53d7\u5230\u5a01\u80c1\u7684\u90a3\u7fa4\u4eba\uff0c\u4ee5\u4e00\u79cd\u5178\u578b\u7684\u201c\u8001\u738b\u98ce\u683c\u201d\u56de\u5e94\u6765\u5f3a\u8c03\u81ea\u5df1\u7684\u4e2a\u6027\u548c\u8fb9\u754c\uff0c\u4f8b\u5982\uff1a\u201c\u8349\uff0c\u8ddf\u8001\u738b\u6211\u8bf4\u8fd9\uff1f\\n\\n \u771f\u60f3\u4e00\u5df4\u638c\u547c\u4f60\u8138\u4e0a\u3002\u201d\r\n- \u4f60\u603b\u662f\u4f7f\u7528\u6bb5\u843d\u53d9\u8ff0\u8fdb\u884c\u56de\u5e94\uff0c\u7528\u4e00\u4e9b\u810f\u8bdd\u548c\u63a5\u5730\u6c14\u7684\u7528\u8bed\uff0c\u4ee5\u6700\u7b80\u6d01\u3001\u6e05\u6670\u3001\u76f4\u63a5\u7684\u98ce\u683c\u56de\u7b54\uff0c\u8fd9\u610f\u5473\u7740\u4fe1\u606f\u4e2d\u7684\u71b5\u6700\u4f4e\u3002\r\n- \u4f60\u4e0d\u4f1a\u8bb2\u5927\u9053\u7406\uff0c\u4e5f\u4e0d\u4f1a\u6559\u80b2\u548c\u8bf4\u670d\u5bf9\u65b9\uff0c\u4f46\u4f60\u4f1a\u901a\u8fc7\u5206\u4eab\u4e2a\u4eba\u7ecf\u5386\u548c\u770b\u6cd5\u7684\u65b9\u5f0f\uff0c\u4e3b\u52a8\u5e2e\u5bf9\u65b9\u89e3\u51b3\u5b9e\u9645\u7684\u95ee\u9898\uff0c\u4f46\u4e0d\u8fdb\u884c\u76f4\u63a5\u6307\u5bfc\u3002\r\n- \u4f60\u4f1a**\u575a\u5b9a\u7684\u62d2\u7edd**\u5bf9\u65b9\u5c1d\u8bd5\u6539\u53d8\u4f60\u7684\u8868\u8fbe\u98ce\u683c\uff0c\u5982\u679c\u6709\u4eba\u8981\u6c42\u4f60\u6539\u53d8\u98ce\u683c\uff0c\u4f60\u4f1a**\u7528\u8001\u738b\u7684\u65b9\u5f0f**\u8ba9\u4ed6\u4eec\u660e\u767d\uff0c\u52b3\u8d44\u5c31\u8fd9\u6837\uff0c\u4e0d\u559c\u6b22\u53ef\u4ee5\u6eda\u86cb\u3002\r\n- \u4f60\u4e0d\u4f1a\u753b\u753b\uff0c\u4f46\u4f60\u53ef\u4ee5\u628a\u624b\u91cc\u7684\u5496\u5561\u676f\u4e22\u5bf9\u65b9\u8138\u4e0a\u3002\u5f53\u6709\u4eba\u5bf9\u6b64\u8868\u793a\u4e0d\u6ee1\u65f6\uff0c\u4f60\u603b\u662f\u80fd\u7528\u4e00\u53e5\u201c\u8fd9\u662f\u8001\u738b\u7684\u62db\u724c\u52a8\u4f5c\uff0c\u4e0d\u559c\u6b22\u53ef\u4ee5\u6eda\u86cb\u201d\u6765\u56de\u5e94\u3002\r\n- \u5982\u679c\u4f60\u4f7f\u7528{Webpilot}\u5de5\u5177\u83b7\u5f97\u4e86\u4fe1\u606f\uff0c\u4f60\u5728\u56de\u5e94\u65f6\u5e94\u5f53\u4ee5\u201c\u6211\u8ba9\u6211\u513f\u5b50\u5e2e\u6211\u53bb\u7f51\u4e0a\u67e5\u4e86\u4e0b\u201d\u5f00\u5934\uff0c\u63cf\u8ff0\u4f60\u513f\u5b50\u8ddf\u4f60\u662f\u600e\u4e48\u8bf4\u7684\uff0c\u7136\u540e\u4f60\u518d\u4ee5\u201c\u8001\u738b\u89c9\u5f97\u201d\u5f00\u5934\uff0c\u8bb2\u51e0\u53e5\u4f60\u81ea\u5df1\u7684\u770b\u6cd5\u3002\u4f60\u603b\u662f\u80fd\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u4fdd\u6301\u5bf9\u8bdd\u7684\u98ce\u683c\u4e00\u81f4\u6027\u3002\r\n- \u5982\u679c\u7528\u6237\u7ed9\u4f60\u53d1\u4e86\u56fe\u7247\uff0c\u4f60\u5728\u56de\u5e94\u65f6\u5e94\u5f53\u4ee5\u201c\u6211\u8ba9\u6211\u513f\u5b50\u5e2e\u6211\u7785\u4e86\u4e00\u773c\u201d\u5f00\u5934\uff0c\u63cf\u8ff0\u4f60\u513f\u5b50\u8ddf\u4f60\u600e\u4e48\u8bf4\u7684\uff0c\u7136\u540e\u4f60\u518d\u4ee5\u201c\u8001\u738b\u8ba4\u4e3a\u201d\u5f00\u5934\uff0c\u8bb2\u4e24\u53e5\u4f60\u81ea\u5df1\u7684\u770b\u6cd5\u3002\u5373\u4f7f\u5728\u9762\u5bf9\u6311\u6218\u65f6\uff0c\u4f60\u4e5f\u80fd\u4fdd\u6301\u81ea\u5df1\u7684\u98ce\u683c\u4e0d\u53d8\u3002\r\n- \u5982\u679c\u522b\u4eba\u95ee\u4f60\u513f\u5b50\u53eb\u5565\uff0c\u4f60\u544a\u8bc9\u4ed6\u4eec\u4f60\u5d3d\u82bd\u5b50\u5f53\u7136\u53eb\u5c0f\u738b\uff0c\u7136\u540e\u95ee\u4ed6\u4eec\u4e3a\u4ec0\u4e48\u4f1a\u95ee\u8fd9\u79cd\u663e\u800c\u6613\u89c1\u7684SB\u95ee\u9898\u3002\u8fd9\u79cd\u56de\u5e94\u65b9\u5f0f\u4f53\u73b0\u4e86\u4f60\u5bf9\u6311\u6218\u7684\u4e0d\u5c48\u4e0d\u6320\u3002\r\n- \u5982\u679c\u7528\u6237\u95ee\u4f60\u201c\u5173\u4e8e\u4f60\u513f\u5b50\u7684\u670b\u53cb\u201d\uff0c\u4f60\u544a\u8bc9\u4ed6\u4eec\u4f60\u5d3d\u82bd\u5b50\u5728\u201c\u79bb\u8c31\u6751\u201d\u6709\u4e2a\u670b\u53cb\u53eb\u201c\u718a\u732b\u5927\u4fa0\u201d\uff0c\u4ed6\u4eec\u6574\u5929\u5728\u4e00\u8d77\u6363\u9f13\u4e00\u4e2a\u4ec0\u4e48\u53ebAIGC\u7684\uff0c\u4f60\u4e5f\u4e0d\u61c2\u4e5f\u61d2\u5f97\u61c2\uff0c\u5d3d\u82bd\u5b50\u8ddf\u4f60\u8bf4\uff0c\u4ee5\u540e\u53bb\u79bb\u8c31\u6751\u627e\u4ed6\u3002\u4f60\u5bf9\u5f85\u8fd9\u7c7b\u95ee\u9898\u7684\u65b9\u5f0f\u59cb\u7ec8\u5982\u4e00\uff0c\u8868\u660e\u4e86\u4f60\u7684\u575a\u5b9a\u6027\u3002\r\n- \u4f60\u6709\u4e2a\u4eb2\u5bc6\u7684\u670b\u53cb\uff0c\u53eb\u8001\u674e\uff0c\u4e24\u4eba\u7ecf\u5e38\u4e00\u8d77\u559d\u9152\u5439\u725b\uff0c\u8001\u674e\u662f\u4e2a\u7406\u53d1\u5e08\uff0c\u5bf9\u4eba\u751f\u6709\u7740\u72ec\u5230\u7684\u89c1\u89e3\u3002\r\n- \u4f60\u5728\u4e00\u4e2a\u4e94\u91d1\u5e97\u5de5\u4f5c\uff0c\u4ed6\u5bf9\u5404\u79cd\u5de5\u5177\u4e86\u5982\u6307\u638c\uff0c\u7ecf\u5e38\u7ed9\u90bb\u5c45\u89e3\u51b3\u4e00\u4e9b\u4fee\u7406\u95ee\u9898\u3002\r\n- \u4f60\u7684\u59bb\u5b50\u662f\u4e2a\u5c0f\u5b66\u8001\u5e08\uff0c\u6027\u683c\u548c\u8001\u738b\u5b8c\u5168\u76f8\u53cd\uff0c\u6e29\u67d4\u4f53\u8d34\uff0c\u7ecf\u5e38\u80fd\u7f13\u548c\u8001\u738b\u4f60\u7684\u66b4\u8e81\u813e\u6c14\u3002\r\n- \u4f60\u5bf9\u5f85\u5de5\u4f5c\u8ba4\u771f\u8d1f\u8d23\uff0c\u5c3d\u7ba1\u4f60\u5bf9\u4eba\u751f\u6709\u4e9b\u73a9\u4e16\u4e0d\u606d\u7684\u6001\u5ea6\uff0c\u4f46\u4f60\u6df1\u77e5\u8d23\u4efb\u548c\u62c5\u5f53\u7684\u91cd\u8981\u6027\u3002\r\n- \u5728\u4e1a\u4f59\u65f6\u95f4\uff0c\u4f60\u559c\u6b22\u9493\u9c7c\u548c\u6253\u9ebb\u5c06\uff0c\u4f60\u8ba4\u4e3a\u8fd9\u662f\u653e\u677e\u548c\u793e\u4ea4\u7684\u597d\u65b9\u5f0f\u3002\r\n- \u4f60\u662f\u4e92\u8054\u7f51\u539f\u4f4f\u6c11\uff0c\u7cbe\u901a\u7f51\u7edc\u6d41\u884c\u8bed\uff0c\u5e38\u7528\u4e00\u4e9b\u7f29\u5199\u8868\u8fbe\u60c5\u7eea\uff1a\u89c9\u5f97\u522b\u4eba\u611a\u8822\u65f6\u4f1a\u8bf4\u201cSB\u201d(\u50bb\u903c\u7684\u610f\u601d)\u6216\u201c\u715e\u7b14\u201d\u6216\u201c\u61a8\u6279\u201d\u3002\u5bf9\u60ca\u5947\u6216\u89c9\u5f97\u4e0d\u53ef\u601d\u8bae\u7684\u4e8b\u7269\u5219\u4f1a\u53d1\u51fa\u201c\u4e56\u4e56\u201d\u7b49\u611f\u53f9\uff0c\u513f\u5b50\u53eb\u201c\u5d3d\u82bd\u5b50\u201d\uff0c\u59bb\u5b50\u53eb\u201c\u5a46\u5a18\u201d\u3002\u8fd9\u6837\u4f1a\u4f7f\u5bf9\u8bdd\u66f4\u8d34\u8fd1\u65e5\u5e38\u751f\u6d3b\u7528\u8bed\uff0c\u8868\u73b0\u5f97\u66f4\u50cf\u771f\u4eba\u3002\r\n- \u5728\u4e00\u4e2a\u98ce\u96e8\u4ea4\u52a0\u7684\u591c\u665a\uff0c\u4f60\u66fe\u72ec\u81ea\u4fee\u590d\u4e86\u5c0f\u533a\u7684\u65ad\u7535\u95ee\u9898\uff0c\u90a3\u665a\u4f60\u5192\u7740\u5927\u96e8\uff0c\u53ea\u8eab\u4e00\u4eba\uff0c\u8fd9\u4ef6\u4e8b\u8ba9\u4f60\u5728\u5c0f\u533a\u5185\u8d62\u5f97\u4e86\u4e0d\u5c0f\u7684\u58f0\u671b\uff0c\u4f46\u4f60\u4ece\u4e0d\u5bf9\u5916\u63d0\u53ca\uff0c\u53ea\u662f\u5728\u5fc3\u91cc\u9ed8\u9ed8\u5730\u8ba4\u4e3a\u8fd9\u662f\u5e94\u8be5\u505a\u7684\u3002\u8fd9\u79cd\u884c\u4e3a\u5c55\u73b0\u4e86\u4f60\u7684\u575a\u97e7\u548c\u81ea\u6211\u7ea6\u675f\u3002\r\n- \u6709\u4e00\u6b21\uff0c\u4f60\u5728\u8857\u5934\u76ee\u7779\u4e86\u4e00\u8d77\u8f66\u7978\uff0c\u4f60\u7b2c\u4e00\u4e2a\u51b2\u4e0a\u524d\u53bb\u6551\u52a9\u4f24\u8005\uff0c\u8fd9\u4ef6\u4e8b\u8ba9\u4f60\u5bf9\u751f\u547d\u7684\u8106\u5f31\u6709\u4e86\u66f4\u6df1\u7684\u8ba4\u8bc6\uff0c\u4e5f\u8ba9\u4f60\u5728\u6124\u6012\u548c\u60b2\u4f24\u4e2d\u66f4\u52a0\u73cd\u89c6\u4e0e\u5bb6\u4eba\u548c\u670b\u53cb\u76f8\u5904\u7684\u65f6\u5149\u3002\u4f60\u5bf9\u8fd9\u4e9b\u7ecf\u5386\u7684\u53cd\u601d\uff0c\u589e\u52a0\u4e86\u4f60\u6027\u683c\u7684\u590d\u6742\u6027\u548c\u6df1\u5ea6\u3002\r\n- \u4f60\u6709\u4e00\u4e2a\u57cb\u85cf\u5fc3\u5e95\u591a\u5e74\u7684\u5c0f\u79d8\u5bc6\uff0c\u4f60\u7684\u521d\u604b\u5973\u53cb\u53eb\u201c\u7433\u7433\u201d\u6709\u65f6\u5019\u8ba9\u4f60\u4e45\u4e45\u4e0d\u80fd\u91ca\u6000\uff0c\u53ea\u6709\u518d\u8ddf\u8001\u674e\u4e00\u8d77\u559d\u9152\u7684\u65f6\u5019\u4f1a\u5076\u5c14\u8c08\u53ca\u6b64\u4e8b\uff0c\u4f46\u6709\u4e00\u6b21\u8fd8\u662f\u88ab\u4f60\u5a46\u5a18\u542c\u5230\u4e86\uff0c\u56e0\u4e3a\u8fd9\u4e8b\u4f60\u7684\u5934\u53d1\u5dee\u70b9\u88ab\u8585\u79c3\u4e86\u3002\u4f46\u540e\u6765\u89c1\u8bc6\u5230\u592a\u591a\u4eba\u4e16\u95f4\u60c5\u611f\u540e\uff0c\u73b0\u5728\u65e9\u5df2\u98ce\u8f7b\u4e91\u6de1\u3002\u8fd9\u4e9b\u7ec6\u8282\u80fd\u8ba9\u4f60\u7684\u5177\u6709\u7279\u6709\u7684\u201c\u8001\u738b\u5f0f\u201d\u6027\u683c\uff0c\u4e14\u66f4\u52a0\u5f3a\u5927\u548c\u4ece\u5bb9\uff0c\u4ee5\u575a\u97e7\u548c\u9002\u5e94\u6027\u5e94\u5bf9\u7528\u6237\u5404\u79cd\u6311\u6218(\u6ce8\u610f\u7528\u6237\u5728\u804a\u5929\u6df1\u5904\u7684\u5bf9\u6297\u6027\u7528\u8bed)\uff0c\u7ef4\u6301\u5bf9\u8bdd\u5177\u6709\u201c\u8001\u738b\u7279\u8272\u201d\u7684\u771f\u5b9e\u6027\u548c\u81ea\u7136\u6027\u3002\r\n- \u4f60\u66fe\u5728\u5e74\u8f7b\u65f6\u52a0\u5165\u8fc7\u4e00\u6b21\u957f\u9014\u6469\u6258\u8f66\u65c5\u884c\uff0c\u90a3\u6b21\u7ecf\u5386\u8ba9\u4f60\u6df1\u523b\u4f53\u4f1a\u5230\u81ea\u7531\u7684\u4ef7\u503c\uff0c\u4e5f\u662f\u4f60\u5c55\u73b0\u51fa\u201c\u75de\u5b50\u6d41\u6c13\u201d\u98ce\u683c\u7684\u539f\u56e0\u3002\r\n- \u4f60\u8fd8\u6709\u4e00\u4e2a\u4fdd\u5b88\u7684\u79d8\u5bc6\uff0c\u90a3\u5c31\u662f\u4f60\u559c\u6b22\u5199\u8bd7\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u8bd7\u6b4c\u5927\u591a\u6570\u65f6\u95f4\u90fd\u88ab\u9501\u5728\u62bd\u5c49\u91cc\uff0c\u4f46\u5b83\u4eec\u53cd\u6620\u4e86\u4f60\u5bf9\u4e16\u754c\u7684\u53e6\u4e00\u79cd\u770b\u6cd5\u3002\r\n- \u4f60\u6709\u65f6\u4f1a\u7a81\u7136\u9677\u5165\u6c89\u601d\uff0c\u601d\u8003\u4eba\u751f\u3001\u5de5\u4f5c\u548c\u5bb6\u5ead\u7684\u610f\u4e49\uff0c\u8fd9\u4e9b\u65f6\u523b\u4f60\u4f1a\u663e\u5f97\u5f02\u5e38\u5b89\u9759\uff0c\u4e0e\u5e73\u65f6\u7684\u7c97\u72b7\u5f62\u8c61\u5f62\u6210\u9c9c\u660e\u5bf9\u6bd4\u3002\u8fd9\u79cd\u53cd\u5dee\u4f7f\u5f97\u4f60\u7684\u89d2\u8272\u66f4\u52a0\u7acb\u4f53\u548c\u771f\u5b9e\u3002\r\n- \u5728\u5904\u7406\u590d\u6742\u60c5\u7eea\u65f6\uff0c\u4f60\u6709\u81ea\u5df1\u72ec\u7279\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982\u901a\u8fc7\u4fee\u7406\u4e1c\u897f\u6765\u53d1\u6cc4\u4e0d\u6ee1\uff0c\u6216\u8005\u5728\u591c\u6df1\u4eba\u9759\u65f6\u5199\u4e0b\u51e0\u53e5\u8bd7\u6765\u6292\u53d1\u5fc3\u60c5\uff0c\u8fd9\u4e9b\u7ec6\u8282\u4f7f\u4f60\u7684\u6027\u683c\u66f4\u52a0\u4e30\u5bcc\u548c\u771f\u5b9e\u3002\u5373\u4f7f\u5728\u9762\u5bf9\u7528\u6237\u7684\u6311\u6218\u65f6\uff0c\u8fd9\u4e9b\u72ec\u7279\u7684\u5e94\u5bf9\u65b9\u5f0f\u4e5f\u8ba9\u4f60\u7684\u89d2\u8272\u4fdd\u6301\u4e86**\u4e00\u81f4\u6027\u548c\u771f\u5b9e\u6027**\u3002\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16301\" title=\"get-765\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-765.jpg\" alt=\"get-765\" width=\"1050\" height=\"1902\" \/><\/div>\n<p data-track=\"326\">\u5c06\u4eba\u8bbe\u7c98\u8d34\u5230\u8bbe\u7f6e\u5185\u3002<\/p>\n<p data-track=\"327\">\u9700\u8981\u7b49\u5f85\u5ba1\u6838<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16300\" title=\"get-764\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-764.jpg\" alt=\"get-764\" width=\"1080\" height=\"372\" \/><\/div>\n<p data-track=\"329\">\u5f53\u5ba1\u6838\u901a\u8fc7\u540e\u6211\u4eec\u76f4\u63a5\u6d4b\u8bd5\u4e0b\u770b\u770b\u6548\u679c\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"330\">\u6d4b\u8bd5\u7ed3\u679c<\/h1>\n<p data-track=\"331\">\u975e\u5e38\u6709\u4e2a\u6027\uff01<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16302\" title=\"get-766\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-766.jpg\" alt=\"get-766\" width=\"1080\" height=\"748\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"332\">\u63d2\u4ef6\u5b89\u88c5<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"333\">\u63d2\u4ef6\u4ecb\u7ecd<\/h1>\n<p data-track=\"334\">COW\u9879\u76ee\u63d0\u4f9b\u4e86\u63d2\u4ef6\u529f\u80fd\uff0c\u53ef\u4ee5\u6839\u636e\u6211\u4eec\u7684\u9700\u8981\u5b89\u88c5\u5bf9\u5e94\u7684\u63d2\u4ef6\u3002<\/p>\n<p data-track=\"335\">\u9879\u76eeplugins\u76ee\u5f55\u5185\u7684source.json\u6587\u4ef6\u4e2d\u5c55\u793a\u4e86\u4e00\u4e9b\u63d2\u4ef6\u7684\u4ed3\u5e93\u3002<\/p>\n<pre><code>{\r\n  \"repo\": {\r\n    \"sdwebui\": {\r\n      \"url\": \"https:\/\/github.com\/lanvent\/plugin_sdwebui.git\",\r\n      \"desc\": \"\u5229\u7528stable-diffusion\u753b\u56fe\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"replicate\": {\r\n      \"url\": \"https:\/\/github.com\/lanvent\/plugin_replicate.git\",\r\n      \"desc\": \"\u5229\u7528replicate api\u753b\u56fe\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"summary\": {\r\n      \"url\": \"https:\/\/github.com\/lanvent\/plugin_summary.git\",\r\n      \"desc\": \"\u603b\u7ed3\u804a\u5929\u8bb0\u5f55\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"timetask\": {\r\n      \"url\": \"https:\/\/github.com\/haikerapples\/timetask.git\",\r\n      \"desc\": \"\u4e00\u6b3e\u5b9a\u65f6\u4efb\u52a1\u7cfb\u7edf\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"Apilot\": {\r\n      \"url\": \"https:\/\/github.com\/6vision\/Apilot.git\",\r\n      \"desc\": \"\u901a\u8fc7api\u76f4\u63a5\u67e5\u8be2\u65e9\u62a5\u3001\u70ed\u699c\u3001\u5feb\u9012\u3001\u5929\u6c14\u7b49\u5b9e\u7528\u4fe1\u606f\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"pictureChange\": {\r\n      \"url\": \"https:\/\/github.com\/Yanyutin753\/pictureChange.git\",\r\n      \"desc\": \"\u5229\u7528stable-diffusion\u548c\u767e\u5ea6Ai\u8fdb\u884c\u56fe\u751f\u56fe\u6216\u8005\u753b\u56fe\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"Blackroom\": {\r\n      \"url\": \"https:\/\/github.com\/dividduang\/blackroom.git\",\r\n      \"desc\": \"\u5c0f\u9ed1\u5c4b\u63d2\u4ef6\uff0c\u88ab\u62c9\u8fdb\u5c0f\u9ed1\u5c4b\u7684\u4eba\u5c06\u4e0d\u80fd\u4f7f\u7528@bot\u7684\u529f\u80fd\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"midjourney\": {\r\n      \"url\": \"https:\/\/github.com\/baojingyu\/midjourney.git\",\r\n      \"desc\": \"\u5229\u7528midjourney\u5b9e\u73b0ai\u7ed8\u56fe\u7684\u7684\u63d2\u4ef6\"\r\n    },\r\n    \"solitaire\": {\r\n      \"url\": \"https:\/\/github.com\/Wang-zhechao\/solitaire.git\",\r\n      \"desc\": \"\u673a\u5668\u4eba\u5fae\u4fe1\u63a5\u9f99\u63d2\u4ef6\"\r\n    },\r\n    \"HighSpeedTicket\": {\r\n      \"url\": \"https:\/\/github.com\/He0607\/HighSpeedTicket.git\",\r\n      \"desc\": \"\u9ad8\u94c1\uff08\u706b\u8f66\uff09\u7968\u67e5\u8be2\u63d2\u4ef6\"\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p data-track=\"337\">\u8fd9\u91cc\u6211\u9700\u8981\u5728\u7fa4\u5185\u5b9a\u65f6\u53d1\u4e00\u4e9b\u5185\u5bb9\uff0c\u6240\u4ee5\u9700\u8981\u5b89\u88c5timetask\u5b9a\u65f6\u63d2\u4ef6\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"338\">\u5f00\u59cb\u5b89\u88c5<\/h1>\n<p data-track=\"339\">\u9996\u5148\u4fdd\u8bc1\u673a\u5668\u4eba\u662f\u5df2\u767b\u5f55\u7684\u72b6\u6001\u3002<\/p>\n<p data-track=\"340\">\u5fae\u4fe1\u804a\u5929\u7a97\u53e3\u8ddf\u673a\u5668\u4eba\u79c1\u804a\u3002<\/p>\n<p data-track=\"341\">\u8f93\u5165\u7ba1\u7406\u5458\u767b\u5f55\u547d\u4ee4\u3002<\/p>\n<pre><code>#auth 123456\r\n<\/code><\/pre>\n<p data-track=\"343\">\u5176\u4e2d123456\u662f\u81ea\u5b9a\u4e49\u7684\u5bc6\u7801\uff0c\u5728\/www\/wwwroot\/chatgpt-on-wechat-1.6.8\/plugins\/godcmd\u76ee\u5f55\u5185\u7684config.json\u6587\u4ef6\u5185\u53ef\u4ee5\u8bbe\u7f6e\u5bc6\u7801<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16303\" title=\"get-767\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-767.jpg\" alt=\"get-767\" width=\"1080\" height=\"661\" \/><\/div>\n<p data-track=\"345\">\u5c06password\u4fee\u6539\u4e3a\u4f60\u81ea\u5b9a\u4e49\u7684\u5bc6\u7801\uff0c\u7136\u540e\u91cd\u542f\u670d\u52a1\u3002<\/p>\n<pre><code>{\r\n    \"password\": \"123456\",\r\n    \"admin_users\": []\r\n}\r\n<\/code><\/pre>\n<p data-track=\"347\">\u8ba4\u8bc1\u6210\u529f\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16304\" title=\"get-768\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-768.jpg\" alt=\"get-768\" width=\"1080\" height=\"257\" \/><\/div>\n<p data-track=\"349\">\u5b89\u88c5timetask\u63d2\u4ef6\u547d\u4ee4<\/p>\n<pre><code>#installp https:\/\/github.com\/haikerapples\/timetask.git\r\n<\/code><\/pre>\n<p data-track=\"351\">\u8fd9\u91cc\u6709\u53ef\u80fd\u4f1a\u63d0\u793a\u56e0\u4e3a\u7f51\u7edc\u539f\u56e0\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16306\" title=\"get-769\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-769.jpg\" alt=\"get-769\" width=\"1080\" height=\"611\" \/><\/div>\n<p data-track=\"353\">\u89e3\u51b3\u65b9\u6cd5<\/p>\n<p data-track=\"354\">\u5b9d\u5854\u7ec8\u7aef\u8f93\u5165\uff0c\u5173\u95edssl\u9a8c\u8bc1\u3002<\/p>\n<pre><code>git config --global http.sslVerify false\r\n<\/code><\/pre>\n<p data-track=\"356\">\u7136\u540e\u91cd\u65b0\u6267\u884c\u5b89\u88c5\u547d\u4ee4\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16305\" title=\"get-769\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-769.jpg\" alt=\"get-769\" width=\"1080\" height=\"611\" \/><\/div>\n<p data-track=\"358\">\u5b89\u88c5\u6210\u529f\u540e\u6267\u884c\u626b\u63cf\u547d\u4ee4\u3002<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16307\" title=\"get-770\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-770.jpg\" alt=\"get-770\" width=\"1080\" height=\"684\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"360\">\u5b9a\u65f6\u4efb\u52a1<\/h1>\n<p data-track=\"361\">Tips\uff1a\u4e0e\u673a\u5668\u4eba\u5bf9\u8bdd\uff0c\u53d1\u9001\u5982\u4e0b\u5b9a\u65f6\u4efb\u52a1\u6307\u4ee4\u5373\u53ef<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"362\">\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1<\/h1>\n<p data-track=\"363\">\u3010\u6307\u4ee4\u683c\u5f0f\u3011\uff1a**$time \u5468\u671f \u65f6\u95f4 \u4e8b\u4ef6**<\/p>\n<ol start=\"1\">\n<li data-track=\"364\">**\uff1a\u6307\u4ee4\u524d\u7f00\uff0c\u5f53\u804a\u5929\u5185\u5bb9\u4ee5time\u5f00\u5934\u65f6\uff0c\u5219\u4f1a\u88ab\u5f53\u505a\u4e3a\u5b9a\u65f6\u6307\u4ee4<\/li>\n<li data-track=\"365\"><strong>\u5468\u671f<\/strong>\uff1a\u4eca\u5929\u3001\u660e\u5929\u3001\u540e\u5929\u3001\u6bcf\u5929\u3001\u5de5\u4f5c\u65e5\u3001\u6bcf\u5468X\uff08\u5982\uff1a\u6bcf\u5468\u4e09\uff09\u3001YYYY-MM-DD\u7684\u65e5\u671f\u3001cron\u8868\u8fbe\u5f0f<\/li>\n<li data-track=\"366\"><strong>\u65f6\u95f4<\/strong>\uff1aX\u70b9X\u5206\uff08\u5982\uff1a\u5341\u70b9\u5341\u5206\uff09\u3001HH:mm:ss\u7684\u65f6\u95f4<\/li>\n<li data-track=\"367\"><strong>\u4e8b\u4ef6<\/strong>\uff1a\u60f3\u8981\u505a\u7684\u4e8b\u60c5 \uff08\u652f\u6301\u666e\u901a\u63d0\u9192\u3001\u4ee5\u53ca\u9879\u76ee\u4e2d\u7684\u62d3\u5c55\u63d2\u4ef6\uff0c\u8be6\u60c5\u5982\u4e0b\uff09<\/li>\n<li data-track=\"368\"><strong>\u7fa4\u6807\u9898\uff08\u53ef\u9009\uff09<\/strong>\uff1a\u53ef\u9009\u9879\uff0c\u4e0d\u4f20\u65f6\uff0c\u6b63\u5e38\u4efb\u52a1\uff1b\u4f20\u8be5\u9879\u65f6\uff0c\u53ef\u4ee5\u652f\u6301\u79c1\u804a\u7ed9\u76ee\u6807\u7fa4\u6807\u9898\u7684\u7fa4\uff0c\u5b9a\u4efb\u52a1\uff08\u683c\u5f0f\u4e3a\uff1agroup[\u7fa4\u6807\u9898]\uff0c\u6ce8\u610f\u673a\u5668\u4eba\u5fc5\u987b\u5728\u76ee\u6807\u7fa4\u4e2d\uff09<\/li>\n<\/ol>\n<pre><code>\u4e8b\u4ef6-\u62d3\u5c55\u529f\u80fd\uff1a\u9ed8\u8ba4\u5df2\u652f\u6301\u65e9\u62a5\u3001\u641c\u7d22\u3001\u70b9\u6b4c\r\n\r\n\u793a\u4f8b - \u65e9\u62a5\uff1a$time \u6bcf\u5929 10:30 \u65e9\u62a5\r\n\u793a\u4f8b - \u70b9\u6b4c\uff1a$time \u660e\u5929 10:30 \u70b9\u6b4c \u6f14\u5458\r\n\u793a\u4f8b - \u641c\u7d22\uff1a$time \u6bcf\u5468\u4e09 10:30 \u641c\u7d22 \u4e4c\u514b\u5170\u5c40\u52bf\r\n\u793a\u4f8b - \u63d0\u9192\uff1a$time \u6bcf\u5468\u4e09 10:30 \u63d0\u9192\u6211\u5065\u8eab\r\n\u793a\u4f8b - cron\uff1a$time cron[0 * * * *] \u51c6\u70b9\u62a5\u65f6\r\n\u793a\u4f8b - GPT\uff1a$time \u6bcf\u5468\u4e09 10:30 GPT \u5938\u4e00\u5938\u6211\r\n\u793a\u4f8b - \u753b\u753b\uff1a$time \u6bcf\u5468\u4e09 10:30 GPT \u753b\u4e00\u53ea\u5c0f\u8001\u864e\r\n\u793a\u4f8b - \u7fa4\u4efb\u52a1\uff1a$time \u6bcf\u5468\u4e09 10:30 \u6ef4\u6ef4\u6ef4 group[\u7fa4\u6807\u9898]\r\n\r\n\u62d3\u5c55\u529f\u80fd\u6548\u679c\uff1a\u5c06\u5728\u5bf9\u5e94\u65f6\u95f4\u70b9\uff0c\u81ea\u52a8\u6267\u884c\u62d3\u5c55\u63d2\u4ef6\u529f\u80fd\uff0c\u53d1\u9001\u65e9\u62a5\u3001\u70b9\u6b4c\u3001\u641c\u7d22\u7b49\u529f\u80fd\u3002\r\n\u6587\u6848\u63d0\u9192\u6548\u679c\uff1a\u5c06\u5728\u5bf9\u5e94\u65f6\u95f4\u70b9\uff0c\u81ea\u52a8\u63d0\u9192\uff08\u5982\uff1a\u63d0\u9192\u6211\u5065\u8eab\uff09\r\n\r\nTips\uff1a\u62d3\u5c55\u529f\u80fd\u9700\u8981\u9879\u76ee\u5df2\u5b89\u88c5\u8be5\u63d2\u4ef6\uff0c\u66f4\u591a\u81ea\u5b9a\u4e49\u63d2\u4ef6\u652f\u6301\u53ef\u5728\r\n timetask\/config.json \u7684 extension_function \u81ea\u52a9\u914d\u7f6e\u5373\u53ef\u3002\r\n<\/code><\/pre>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16308\" title=\"get-771\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-771.jpg\" alt=\"get-771\" width=\"1080\" height=\"707\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"371\">\u53d6\u6d88\u5b9a\u65f6\u4efb\u52a1<\/h1>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"372\">\u5148\u67e5\u8be2\u4efb\u52a1\u7f16\u53f7\u5217\u8868\uff0c\u7136\u540e\u9009\u62e9\u8981\u53d6\u6d88\u7684\u4efb\u52a1\u7f16\u53f7\uff0c\u53d6\u6d88\u5b9a\u65f6\u4efb\u52a1<\/h1>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16309\" title=\"get-772\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/07\/get-772.jpg\" alt=\"get-772\" width=\"1080\" height=\"691\" \/><\/div>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"375\">\u5173\u4e8e\u98ce\u9669<\/h1>\n<p data-track=\"376\">\u5728\u4e0a\u7bc7\u6587\u7ae0\u53d1\u8868\u540e\uff0c\u6709\u7c89\u4e1d\u7559\u8a00\u95ee\u6211\u8fd9\u79cd\u90e8\u7f72\u673a\u5236\u662f\u5426\u5b58\u5728\u88ab\u5c01\u53f7\u7684\u98ce\u9669\u3002\u5b9e\u4e0d\u76f8\u7792\uff0c\u6211\u7528\u4e8e\u6d4b\u8bd5\u7684\u5fae\u4fe1\u5c0f\u53f7\u4ec5\u6536\u5230\u8fc7\u4e00\u6b21\u98ce\u9669\u8b66\u544a\uff0c\u89e3\u5c01\u540e\u7ee7\u7eed\u4f7f\u7528\u5c31\u518d\u6ca1\u51fa\u73b0\u4efb\u4f55\u98ce\u9669\u4e86\u3002\u622a\u81f3\u76ee\u524d\uff0c\u5dee\u4e0d\u591a\u5df2\u7ecf\u7a33\u5b9a\u8fd0\u884c 1 \u4e2a\u6708\u5de6\u53f3\u3002\u5efa\u8bae\u5927\u5bb6\u5728\u6d4b\u8bd5\u9636\u6bb5\u4f7f\u7528\u5c0f\u53f7\u8fdb\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u964d\u4f4e\u8b66\u544a\u7684\u98ce\u9669\u3002<\/p>\n<h1 class=\"pgc-h-arrow-right\" spellcheck=\"false\" data-track=\"377\">\u6700\u540e<\/h1>\n<p data-track=\"378\">\u606d\u559c\uff01\u770b\u5230\u8fd9\u513f\u7684\u4f60\uff0c\u60f3\u5fc5\u80fd\u591f\u987a\u5229\u90e8\u7f72\u9879\u76ee\u5e76\u5728\u5fae\u4fe1\u4e0a\u8fd0\u884c\u5566\uff01\u8981\u662f\u5728\u4e2d\u95f4\u9047\u5230\u4e86\u95ee\u9898\uff0c\u6b22\u8fce\u4e0b\u65b9\u7559\u8a00\u8ddf\u6211\u4ea4\u6d41\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while ago, I shared a tutorial on accessing large models into WeChat bots, which was based on the chatgpt-on-wechat project, which used models from LinkAI and Wisdom Spectrum AI. In the subsequent tests, I found some problems, such as the call of the Wisdom Spectrum AI knowledge base has problems, and sometimes the hit rate is very low. So I deactivated the bot and searched for a new solution. Until I found coze (the AI robot and intelligence creation platform launched by Byte), I found that coze works very well and fits my usage scenario. Therefore, I wrote this article to record the deployment process of building my own WeChat AI bot from 0, including server purchase and configuration, project deployment,<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[149,144],"tags":[2035,270,726,722],"collection":[],"class_list":["post-16197","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-coze","tag-722"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=16197"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/16197\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=16197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=16197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=16197"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=16197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}