{"id":4371,"date":"2024-04-22T17:38:33","date_gmt":"2024-04-22T09:38:33","guid":{"rendered":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=4371"},"modified":"2024-04-22T18:46:35","modified_gmt":"2024-04-22T10:46:35","slug":"dify%e6%90%ad%e5%bb%ba%e4%b8%8eollama%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.zeroheart.xyz\/wordpress\/?p=4371","title":{"rendered":"dify\u642d\u5efa\u4e0eollama\u96c6\u6210"},"content":{"rendered":"\n<p>dify\u6267\u884cdokcer-compose\u547d\u4ee4\u7684\u65f6\u5019\uff0c\u4e00\u5b9a\u8981\u62f7\u8d1d\u6574\u4e2adocker\u76ee\u5f55\uff0c\u5426\u5219nginx\u65e0\u6cd5\u542f\u52a8<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/langgenius\/dify\/blob\/main\/README_CN.md\">dify\/README_CN.md at main \u00b7 langgenius\/dify (github.com)<\/a><\/p>\n\n\n\n<p>ollama\u96c6\u6210:<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/ollama\/ollama\">ollama\/ollama\uff1a\u4f7f\u7528 Llama 3\u3001Mistral\u3001Gemma \u548c\u5176\u4ed6\u5927\u578b\u8bed\u8a00\u6a21\u578b\u542f\u52a8\u5e76\u8fd0\u884c\u3002 &#8212; ollama\/ollama: Get up and running with Llama 3, Mistral, Gemma, and other large language models. (github.com)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/hub.docker.com\/r\/ollama\/ollama\">ollama\/ollama &#8211; Docker \u955c\u50cf |Docker \u4e2d\u5fc3 &#8212; ollama\/ollama &#8211; Docker Image | Docker Hub<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d -v ollama:\/root\/.ollama -p 11434:11434 --name ollama ollama\/ollama\n\ndocker exec -it ollama ollama run llama3:8b\n\ngoogle api \u83b7\u53d6 https:\/\/aistudio.google.com\/app\/apikey\ngoogle \u5e94\u7528\u7ba1\u7406\uff1ahttps:\/\/console.cloud.google.com\/\n\n\u63a5\u53e3\u6d4b\u8bd5\uff1ahttps:\/\/laf.dev\/dashboard\n\n\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>dify\u6267\u884cdokcer-compose\u547d\u4ee4\u7684\u65f6\u5019\uff0c\u4e00\u5b9a\u8981\u62f7\u8d1d\u6574\u4e2adocker\u76ee\u5f55\uff0c\u5426\u5219nginx\u65e0\u6cd5\u542f\u52a8 d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[283],"tags":[],"_links":{"self":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4371"}],"collection":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4371"}],"version-history":[{"count":4,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4371\/revisions"}],"predecessor-version":[{"id":4375,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4371\/revisions\/4375"}],"wp:attachment":[{"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zeroheart.xyz\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}