{"id":562233,"date":"2023-02-14T11:36:09","date_gmt":"2023-02-14T03:36:09","guid":{"rendered":"http:\/\/4563.org\/?p=562233"},"modified":"2023-02-14T11:36:09","modified_gmt":"2023-02-14T03:36:09","slug":"%e5%bc%80%e6%ba%90%ef%bc%9achatgpt%e8%bf%9e%e7%bb%ad%e5%af%b9%e8%af%9dpython-web%e7%89%88%ef%bc%8cdocker%e9%83%a8%e7%bd%b2%ef%bc%8c%e5%9c%a8%e7%ba%bf%e6%9b%b4%e6%96%b0token","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=562233","title":{"rendered":"\u5f00\u6e90\uff1aChatGPT\u8fde\u7eed\u5bf9\u8bddPython Web\u7248\uff0cdocker\u90e8\u7f72\uff0c\u5728\u7ebf\u66f4\u65b0Token"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Vast<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5f00\u6e90\uff1aChatGPT\u8fde\u7eed\u5bf9\u8bddPython Web\u7248\uff0cdocker\u90e8\u7f72\uff0c\u5728\u7ebf\u66f4\u65b0Token<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Vast \u4e8e 2023-2-12 15:21 \u7f16\u8f91 <\/p>\n<p> https:\/\/github.com\/vastsa\/AIChatWeb<br \/>  \u6709python<br \/>  pip install fastapi<br \/>  \u7136\u540e\u76f4\u63a5\u542f\u52a8\u5c31\u80fd\u7528<br \/>  https:\/\/camo.githubusercontent.com\/2417fa9466a229970b3966402a2e0b2f5430b703130ef4b7f5af00f3342efd0f\/68747470733a2f2f6769746c61622e636f6d2f5661737473612f6c616e7069636265642f2d2f7261772f6d61737465722f7a625f75736572732f75706c6f61642f323032332f30322f30393363343264613135303034333930616633656239386266316130353632392e706e67<br \/>  Docker\u4e00\u952e\u90e8\u7f72<br \/>  AMD<br \/>  docker run -d &#8211;restart=always -p 8000:8000 &#8211;name aichat lanol\/aichat:latest<br \/>  ARM<br \/>  docker run -d &#8211;restart=always -p 8000:8000 &#8211;name aichat lanol\/aichat:arm  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Vast<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5df2\u7ecfok\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mslxd<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u6765\u8bf4\u4e00\u4e0bwindow\u4e0b\uff0c\u5982\u679c\u4f60\u7535\u8111\u5df2\u7ecf\u5b89\u88c5\u4e86python3\uff0c\u90a3\u4e48\u5b89\u88c5\u8fc7\u7a0b\u662f<br \/>  1.\u4ee3\u7801\u5f04\u4e0b\u6765<br \/>  git clone https:\/\/github.com\/vastsa\/AIChatWeb.git<\/p>\n<p>  2.\u5b89\u88c5\u4f9d\u8d56<br \/>  pip install -r requirements.txt<\/p>\n<p>  3.\u8fd0\u884c<br \/>  python main.py<\/p>\n<p>  4.\u8c03\u6574<br \/>  \u5982\u679c\u4f60\u7aef\u53e3\u88ab\u5360\u4e86\uff0c\u53ef\u4ee5\u6539\u6e90\u4ee3\u7801\u91cc\u7684\u7aef\u53e3\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Amanda<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u662f\u5b98\u65b9\u7684chatgpt\u7f51\u9875\u7248\u8fd8\u662fgpt3\u7684api\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5564\u9152\u74f6<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdocker\u90e8\u7f72\u7684\u4e00\u76f4\u5728restarting\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>langer<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bzxyscc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6b63\u597d\u5728\u627e\u5f00\u6e90\u7684&nbsp; &nbsp;\u76f4\u63a5\u9047\u5230\u4e86&nbsp; &nbsp;\u70b9\u8d5e&nbsp; &nbsp;<\/p>\n<p>  \u53ea\u662f\u521a\u8bd5\u4e86\u5728\u7532\u9aa8\u6587\u7684arm\u548camd\u4e0a\u9762\u76ee\u524ddocker\u90fd\u8dd1\u4e0d\u8d77\u6765\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Vast<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbzxyscc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-2-12 14:58<br \/>  \u521a\u8bd5\u4e86\u5728\u7532\u9aa8\u6587\u7684arm\u548camd\u4e0a\u9762\u76ee\u524ddocker\u90fd\u8dd1\u4e0d\u8d77\u6765<\/p>\n<p> hhh\uff0c\u4e0d\u597d\u610f\u601d\uff0c\u6b63\u5728\u8c03\u8bd5docker\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Bigcan<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u7528\u5b9d\u5854\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bzxyscc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7528python 3.8\u603b\u662f\u63d0\u793a <br \/>  ModuleNotFoundError: No module named &#8216;uvicorn&#8217;<\/p>\n<p>  \u5373\u4f7f\u5df2\u7ecfpip install \u8fc7\u4e86\uff1b\u8fd8\u6ca1\u770b\u600e\u4e48\u89e3\u51b3<\/p>\n<p>  \u641c\u5230\u4e00\u4e2a\u8fd9\u4e2a\uff0c\u611f\u89c9\u6ca1\u51c6\u662fdocker\u91cc\u9762\u6ca1\u8dd1\u8d77\u6765\u7684\u539f\u56e0\uff1f<br \/>  https:\/\/stackoverflow.com\/questions\/75333381\/why-cant-docker-compose-find-uvicorn-module\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Vast<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tbzxyscc \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-2-12 15:19<br \/>  \u7528python 3.8\u603b\u662f\u63d0\u793a <br \/>  ModuleNotFoundError: No module named &#8216;uvicorn&#8217;<\/p>\n<p> \u53ef\u4ee5\u5566\u91cd\u65b0\u62c9\u53d6\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bzxyscc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tVast \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2023-2-12 15:21<br \/>  \u53ef\u4ee5\u5566\u91cd\u65b0\u62c9\u53d6\u4e00\u4e0b<\/p>\n<p> \u53ef\u4ee5\u8fd0\u884c\u8d5e\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vast \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5f00\u6e90\uff1aC&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/562233"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562233"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/562233\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562233"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}