{"id":10007016,"date":"2022-12-27T10:01:51","date_gmt":"2022-12-27T02:01:51","guid":{"rendered":"https:\/\/ityet.com\/?p=10007016"},"modified":"2022-12-27T10:01:51","modified_gmt":"2022-12-27T02:01:51","slug":"%e6%8a%8achatgpt%e9%85%8d%e7%bd%ae%e5%88%b0%e5%be%ae%e4%bf%a1%e7%be%a4%e9%87%8c%ef%bc%8c%e5%8f%af%e4%bb%a5%e5%af%b9ai%e6%8f%90%e9%97%ae%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10007016","title":{"rendered":"\u628aChatGPT\u914d\u7f6e\u5230\u5fae\u4fe1\u7fa4\u91cc\uff0c\u53ef\u4ee5\u5bf9AI\u63d0\u95ee\u4e86\uff01"},"content":{"rendered":"<p>\u4f5c\u8005\uff1a\u5c0f\u5085\u54e5<br \/>\u535a\u5ba2\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=l2ucs0qDqF2sDYVqCZT8xg%3D%3D.Jlkl71TN%2BZ8XifjHDYIRYuoQR2FBEnxlJ9DgEE8ryj0%3D\" rel=\"nofollow\">https:\/\/bugstack.cn<\/a><\/p>\n<blockquote><p>\u6c89\u6dc0\u3001\u5206\u4eab\u3001\u6210\u957f\uff0c\u8ba9\u81ea\u5df1\u548c\u4ed6\u4eba\u90fd\u80fd\u6709\u6240\u6536\u83b7\uff01\ud83d\ude04<\/p><\/blockquote>\n<h2>\u4e00\u3001\u524d\u8a00\uff1a\u7528\u7684\u5f88\u723d\uff01<\/h2>\n<p>\u81ea\u4ece\u5c0f\u5085\u54e5\u7528\u4e0a ChatGPT \u8fde\u641c\u7d22\u5f15\u64ce\u7528\u7684\u90fd\u4e0d\u591a\u4e86\uff0c\u5f88\u591a\u95ee\u9898\u7684\u68c0\u7d22\u6211\u7b2c\u4e00\u65f6\u95f4\u90fd\u4f1a\u60f3\u5230\u53bb ChatGPT \u63d0\u95ee\u8bd5\u8bd5\u3002\u5b83\u7684\u56de\u7b54\u65e2\u975e\u5e38\u51c6\u786e\u53c8\u6ca1\u6709\u4e00\u5806\u5e7f\u544a\uff0c\u5bf9\u4e8e\u7814\u53d1\u4eba\u5458\u6765\u8bf4\u4f7f\u7528 ChatGPT \u7b80\u76f4\u662f\u4e2a\u5b9d\u8d1d\u3002<\/p>\n<p>\u5b83\u80fd\u7ed9\u4f60\u7f16\u5199\u7b80\u5355\u7684\u5de5\u7a0b\u6848\u4f8b\u4ee3\u7801\uff0c\u5b83\u80fd\u56de\u7b54\u4f60\u6ca1\u6709\u7f3a\u5c11\u601d\u8def\u7684\u7591\u96be\u95ee\u9898\uff0c\u5b83\u4e5f\u80fd\u5e2e\u4f60\u4f18\u5316\u4f60\u9700\u8981\u5185\u5377\u7684 PPT \u8bdd\u672f\uff01\u54c8\u54c8\u54c8\uff0c\u4f46\u5f53\u7136\u5b83\u4e5f\u6709\u4e0d\u80fd\u5e72\u7684\uff0c\u6bd4\u5982\u8ba9\u5b83\u624b\u5199\u4e2a MyBatis\uff0c<strong>\u5b83\u544a\u8bc9\u6211<\/strong>\uff1a<\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-01.png?raw=true&quot; width=&quot;600px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<p><strong>ChatGPT<\/strong>\uff1a\u662fGPT\uff08Generative Pre-training Transformer\uff0c\u751f\u6210\u9884\u8bad\u7ec3\u8f6c\u6362\u5668\uff09\u8bed\u8a00\u6a21\u578b\u7684\u4e00\u79cd\u53d8\u4f53\uff0c\u4e13\u95e8\u8bbe\u8ba1\u7528\u4e8e\u54cd\u5e94\u4f1a\u8bdd\u98ce\u683c\u7684\u63d0\u793a\u751f\u6210\u7c7b\u4eba\u6587\u672c\u3002ChatGPT\u662f\u5728\u4e00\u4e2a\u5927\u578b\u7684\u4eba\u7c7b\u5bf9\u8bdd\u6570\u636e\u96c6\u4e0a\u8bad\u7ec3\u7684\uff0c\u5e76\u4f7f\u7528\u8fd9\u79cd\u8bad\u7ec3\u6765\u751f\u6210\u5bf9\u81ea\u7136\u8bed\u8a00\u63d0\u793a\u7684\u9002\u5f53\u548c\u8fde\u8d2f\u7684\u54cd\u5e94\u3002ChatGPT\u53ef\u7528\u4e8e\u4e3a\u804a\u5929\u673a\u5668\u4eba\u3001\u865a\u62df\u52a9\u7406\u548c\u5176\u4ed6\u4f1a\u8bdd\u7cfb\u7edf\u751f\u6210\u6587\u672c\uff0c\u5e76\u80fd\u591f\u751f\u6210\u5e7f\u6cdb\u7684\u54cd\u5e94\uff0c\u5305\u62ec\u5bf9\u95ee\u9898\u7684\u7b80\u5355\u56de\u7b54\u3001\u5bf9\u9700\u8981\u66f4\u590d\u6742\u63a8\u7406\u6216\u89e3\u91ca\u7684\u63d0\u793a\u7684\u54cd\u5e94\uff0c\u4ee5\u53ca\u65e8\u5728\u5e7d\u9ed8\u6216\u5438\u5f15\u4eba\u7684\u54cd\u5e94\u3002<\/p>\n<hr>\n<p>\ud83e\udd14 \u4ece ChatGPT \u4e2d\uff0c\u6211\u4f3c\u4e4e\u611f\u53d7\u5230\u4e86\uff0c\u54ea\u4e9b\u662f\u5b83\u7684\u4ef7\u503c\uff0c\u54ea\u4e9b\u662f\u6211\u7684\u4ef7\u503c\u3002\u90a3\u4e9b\u91cd\u590d\u6ca1\u6709\u610f\u4e49\u7684\u5de5\u4f5c\u7ec8\u7a76\u4f1a\u88ab\u4e0d\u65ad\u5730\u8695\u98df\u548c\u53d6\u4ee3\u3002<\/p>\n<p>\ud83e\udd28 \u4f46\u8fd9\u6837\u7684\u4e00\u4e2a\u597d\u4e1c\u897f\uff0c\u8fd8\u6709\u5f88\u591a\u7814\u53d1\u4eba\u5458\u6ca1\u6709\u4f53\u9a8c\u8fc7\uff0c\u5b9e\u5728\u4e0d\u5e94\u8be5\u3002\u6bd5\u7adf\u8fd9\u4e2a\u4e1c\u897f\u4e0e\u4ee5\u5f80\u5f88\u591a\u667a\u80fd\u673a\u5668\u4eba\u76f8\u6bd4\uff0c\u90a3\u4e9b\u90fd\u50cf\u667a\u969c\u4e00\u6837\u3002\u6240\u4ee5\u5c0f\u5085\u54e5\u627e\u4e86\u4e9b\u8d44\u6599\uff0c\u628aChatGPT\u90e8\u7f72\u6210\u5fae\u4fe1\u804a\u5929\u673a\u5668\u4eba\uff0c\u62c9\u5230\u7fa4\u91cc\uff0c\u8ba9\u7c89\u4e1d\u4f19\u4f34\u4f53\u9a8c\u4e0b\u3002<\/p>\n<h2>\u4e8c\u3001\u6559\u7a0b\uff1a\u5982\u4f55\u90e8\u7f72<\/h2>\n<h3>1. \u955c\u50cf\u6587\u4ef6<\/h3>\n<p>\u5728 Github \u4e0a\u5df2\u7ecf\u6709\u4e86\u975e\u5e38\u591a\u7684\u5927\u795e\u63d0\u4f9b\u4e86\u5982\u4f55\u628a ChatGPT \u63a5\u5165\u5fae\u4fe1\u804a\u5929\u7684\u65b9\u5f0f\uff0c\u4e3b\u8981\u662f TypeScript\u3001Go \u8bed\u8a00\u5f00\u53d1\u7684\u3002\u57fa\u672c\u8fd9\u4e9b\u4e5f\u90fd\u80fd\u90e8\u7f72\u4f7f\u7528\u3002\u8fd9\u91cc\u5c0f\u5085\u54e5\u8fd8\u770b\u5230Docker\u4e2d\u6709\u955c\u50cf\uff1a<code>cynen\/wechat<\/code> \u90e8\u7f72\u8d77\u6765\u4e5f\u975e\u5e38\u65b9\u4fbf\uff0c\u63a5\u4e0b\u6765\u5c0f\u5085\u54e5\u5c31\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u8fdb\u884c\u90e8\u7f72\u3002\u5176\u4ed6 Github\u4e2d\u7684\u65b9\u5f0f\uff0c\u6709\u611f\u5174\u8da3\u7684\u8bfb\u8005\u4e5f\u53ef\u4ee5\u5c1d\u8bd5\u90e8\u7f72\u3002<strong>Github \u641c\u7d22\uff1aChatGPT wechat<\/strong><\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-02.png?raw=true&quot; width=&quot;800px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<h3>2. \u6ce8\u518c\u8d26\u53f7<\/h3>\n<p>ChatGPT \u6682\u65f6\u8fd8\u4e0d\u652f\u6301\u56fd\u5185\u7684\u8d26\u53f7\u6ce8\u518c\uff0c\u6240\u4ee5\u9700\u8981\u7533\u8bf7\u865a\u62df\u70b9\u597d\u53f7\u7801\u8fdb\u884c\u6ce8\u518c\u3002\u5982\u4e0b\u6b65\u9aa4\u5982\u679c\u4f60\u80fd\u8bbf\u95ee\u5e76\u7533\u8bf7\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u4f53\u9a8c ChatGPT \u4e86\u3002<\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-03.png?raw=true&quot; width=&quot;800px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<ol>\n<li>sms-activate.org &#8211; \u6ce8\u518c\u865a\u62df\u7535\u8bdd\u53f7\u7801[\u5982\u56fe] \u3010\u591a\u670d\u52a1\u3001\u5370\u5ea6\u3001openAI\u3011\uff0c\u8d26\u53f7\u7528\u652f\u4ed8\u5b9d\u5145\u503c2\u5757\u94b1\u5c31\u53ef\u4ee5\u3002<\/li>\n<li>beta.openai.com\/signup &#8211; \u6ce8\u518c\u8d26\u53f7\uff0c\u6ce8\u518c\u8fc7\u7a0b\u4e2d\u4f1a\u8ba9\u4f60\u586b\u5199\u4f60\u7684\u865a\u62df\u7535\u8bdd\u53f7\uff0c\u5e76\u57281\u4e2d\u7684\u5730\u5740\u91cc\u6536\u53d6\u9a8c\u8bc1\u7801\u3002<\/li>\n<li>chat.openai.com\/auth\/login &#8211; \u6ce8\u518c\u5b8c\u6210\u540e\u767b\u5f55\uff0c\u5c31\u53ef\u4ee5\u548cai\u5bf9\u8bdd\u4e86\u3002<\/li>\n<\/ol>\n<h3>3. API keys \u7533\u8bf7<\/h3>\n<p>openai \u662f\u63d0\u4f9b\u4e86\u63a5\u5165\u7684 API keys \u7684\uff0c\u53ea\u6709\u5728\u7533\u8bf7\u4e86\u8fd9\u4e2a API keys \u624d\u80fd\u5b8c\u6210\u540e\u7eed\u7684\u63a5\u5165\u52a8\u4f5c\u3002<\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-04.png?raw=true&quot; width=&quot;800px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<ul>\n<li><strong>\u5730\u5740<\/strong>\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=B1%2B2Ww1OPwJ53LOx5yTJcQ%3D%3D.lsgbe2ClnWSJBsJHXpFcRLUZ9D09%2BSMT4Rz4cuy5akutwgaeZARchd4lei1a4%2BJA\" rel=\"nofollow\">https:\/\/beta.openai.com\/account\/api-keys<\/a><\/li>\n<li><strong>\u8bf4\u660e<\/strong>\uff1a\u70b9\u51fb\u8fdb\u5165\u540e\uff0c\u70b9\u51fb Create new secret key \u5c31\u53ef\u4ee5\u7533\u8bf7\u4e86\u3002\u7533\u8bf7\u540e\u4f1a\u590d\u5236\u4f60\u7684 SECRET KEY\uff0c\u590d\u5236\u540e\u5173\u95ed\u5f39\u7a97\u5373\u53ef\u3002<\/li>\n<\/ul>\n<h3>4. \u955c\u50cf\u90e8\u7f72<\/h3>\n<p>\u8fd9\u91cc\u5c0f\u5085\u54e5\u9009\u62e9\u4f7f\u7528 Docker \u955c\u50cf\u7684\u65b9\u5f0f\u90e8\u7f72\u4e00\u4e2a\u5fae\u4fe1\u804a\u5929\u673a\u5668\u4eba\u3002\u4f60\u53ef\u4ee5\u81ea\u5df1\u672c\u5730\u5b89\u88c5 Docker \u4e5f\u53ef\u4ee5\u5728\u4eac\u4e1c\u4e91\u3001\u963f\u91cc\u4e91\u3001\u767e\u5ea6\u4e91\u3001\u817e\u8baf\u4e91\u7b49\u8d2d\u4e70\u4e91\u670d\u52a1\u5668\u7684\u65b9\u5f0f\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n<p>\u8fdb\u5165 Docker \u540e\uff0c\u4f60\u9700\u8981\u5b8c\u6210\u5982\u4e0b\u64cd\u4f5c\uff1b<\/p>\n<pre><code class=\"java\"># \u521b\u5efa\u76ee\u5f55\nmkdir \/data\/openai\n\n# \u521b\u5efa\u6587\u4ef6\ntouch config.json\n\n# \u4fee\u6539\u6587\u4ef6\nvi config.json\n\n{\n  &quot;api_key&quot;: &quot;\u590d\u5236\u7c98\u8d34\u4f60\u7533\u8bf7\u7684API keys&quot;, # openai\u7684 \u8d26\u6237\u521b\u5efa\u7684apikeys\n  &quot;auto_pass&quot;: false,                                    # \u52a0\u597d\u53cb\u65f6,\u662f\u5426\u81ea\u52a8\u901a\u8fc7\n  &quot;model&quot;: &quot;text-davinci-003&quot;,        # \u6a21\u578b\u540d\u79f0\uff0c\u5b98\u7f51\u6709\u5f88\u591a\u6a21\u578b\n  &quot;session_timeout&quot;: 90                                # ession\u4fdd\u5b58\u65f6\u95f4 \u79d2,\u5176\u5b9e\u5c31\u662f\u4e0a\u4e0b\u6587\u4fdd\u7559\u65f6\u95f4. \u8d85\u8fc7\u8fd9\u4e2a\u65f6\u95f4,\u5c31\u4f1a\u81ea\u52a8\u6e05\u7a7a\u4e0a\u4e0b\u6587\n}\n\n# \u62c9\u53d6\u955c\u50cf\ndocker run -dti --name wechat -v \/data\/openai\/config.json:\/app\/config.json cynen\/wechat\n\n# \u767b\u5f55\u5fae\u4fe1\ndocker logs -f wechat<\/code><\/pre>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-05.png?raw=true&quot; width=&quot;600px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<ul>\n<li>\u5f53\u4f60\u542f\u52a8 cynen\/wechat \u8fd0\u884c docker logs -f wechat \u5c31\u53ef\u4ee5\u770b\u5230\u5f39\u51fa\u4e00\u4e2a\u5fae\u4fe1\u7684\u626b\u7801\u767b\u5f55\u3002\u8fd9\u4e2a\u65f6\u5019\u4f60\u53ef\u4ee5\u7528\u81ea\u5df1\u7684\u4e00\u4e2a\u5fae\u4fe1\u626b\u7801\u767b\u5f55\uff0c\u767b\u5f55\u5b8c\u6210\u540e\u4f60\u53ef\u4ee5\u4e0e\u8fd9\u4e2a\u5fae\u4fe1\u804a\u5929\u6216\u8005\u62c9\u7fa4\u91cc\u5c31\u53ef\u4ee5\u4e86\u3002<\/li>\n<\/ul>\n<h3>5. \u8fd0\u884c\u6548\u679c<\/h3>\n<p><strong>\u5fae\u4fe1\u7fa4\u804a<\/strong><\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-06.png?raw=true&quot; width=&quot;600px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<p><strong>\u540e\u53f0\u65e5\u5fd7<\/strong><\/p>\n<p>&lt;div align=&quot;center&quot;&gt;<\/p>\n<pre><code>&lt;img src=&quot;https:\/\/bugstack.cn\/images\/article\/about\/ChatGPT-07.png?raw=true&quot; width=&quot;600px&quot;&gt;<\/code><\/pre>\n<p>&lt;\/div&gt;<\/p>\n<ul>\n<li>\u548b\u6837\uff0c\u662f\u4e0d\u662f\u8fd8\u633a\u6709\u610f\u601d\u7684\uff0c\u800c\u4e14\u975e\u5e38\u7684\u806a\u660e\uff01<\/li>\n<li>\u5982\u679c\u4f60\u81ea\u5df1\u4e0d\u80fd\u90e8\u7f72\u4e00\u4e2a\u8fd9\u6837\u7684\u673a\u5668\u4eba\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u5c0f\u5085\u54e5\u7684\u5fae\u4fe1\uff0c\u8fdb\u7fa4\u4f53\u9a8c\u4e0b\u3002<\/li>\n<\/ul>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043164865\">https:\/\/segmentfault.com\/a\/1190000043164865<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u5c0f\u5085\u54e5\u535a\u5ba2\uff1ahttps:\/\/bugstack.cn \u6c89\u6dc0\u3001\u5206\u4eab\u3001\u6210\u957f\uff0c\u8ba9\u81ea\u5df1\u548c\u4ed6\u4eba\u90fd\u80fd\u6709\u6240\u6536\u83b7\uff01\ud83d\ude04 \u4e00\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10007016","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10007016"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007016\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10007016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10007016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10007016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}