{"id":7887,"date":"2024-10-30T13:35:10","date_gmt":"2024-10-30T05:35:10","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=7887"},"modified":"2025-08-23T03:09:18","modified_gmt":"2025-08-22T19:09:18","slug":"gpt4free","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/gpt4free\/","title":{"rendered":"GPT4Free\uff1a\u53cd\u7f16\u8bd1AI\u5bf9\u8bdd\u7f51\u7ad9\u63a5\u53e3\uff0c\u514d\u8d39\u4f7f\u7528\u591a\u79cdGPT\u6a21\u578b"},"content":{"rendered":"<p>GPT4Free \u662f\u4e00\u4e2a\u7531\u5f00\u53d1\u8005 xtekky \u5728 GitHub \u4e0a\u53d1\u5e03\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u65e8\u5728\u514d\u8d39\u63d0\u4f9b\u591a\u79cd\u5f3a\u5927\u7684\u8bed\u8a00\u6a21\u578b\uff0c\u5305\u62ec GPT-3.5\u3001GPT-4\u3001Llama\u3001Gemini-Pro\u3001Bard \u548c <a href=\"https:\/\/www.kdjingpai.com\/ja\/claudeanquanfubai\/\">Claude<\/a> \u7b49\u3002\u8be5\u9879\u76ee\u901a\u8fc7\u96c6\u5408\u591a\u79cd API \u8bf7\u6c42\uff0c\u63d0\u4f9b\u4e86\u8d85\u65f6\u3001\u8d1f\u8f7d\u5747\u8861\u548c\u6d41\u91cf\u63a7\u5236\u7b49\u529f\u80fd\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u5b89\u88c5\u548c\u914d\u7f6e\uff0c\u8f7b\u677e\u4f7f\u7528\u8fd9\u4e9b\u9ad8\u7ea7\u8bed\u8a00\u6a21\u578b\u3002<\/p>\n<blockquote><p>\u6b64\u9879\u76ee\u9700\u8981\u4f9d\u8d56\u4f17\u591a\u670d\u52a1\uff0c\u53cd\u7f16\u8bd1\u7f51\u7ad9\u63a5\u53e3\u9648\u65e7\uff0c\u53ef\u901a\u8fc7\u5206\u652f\u9879\u76ee\u90e8\u7f72\u6700\u65b0\u7248\u672c\u3002\u63a8\u8350https:\/\/github.com\/xiangsx\/gpt4free-ts \uff0c\u6216\u4f7f\u7528Sealos\u4e00\u952e\u90e8\u7f72\u3002<\/p><\/blockquote>\n<div id=\"attachment_7888\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7888\" class=\"wp-image-7888 size-full\" title=\"GPT4Free\uff1a\u53cd\u7f16\u8bd1AI\u5bf9\u8bdd\u7f51\u7ad9\u63a5\u53e3\uff0c\u514d\u8d39\u4f7f\u7528\u591a\u79cdGPT\u6a21\u578b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b.png\" alt=\"GPT4Free\uff1a\u53cd\u7f16\u8bd1AI\u5bf9\u8bdd\u7f51\u7ad9\u63a5\u53e3\uff0c\u514d\u8d39\u4f7f\u7528\u591a\u79cdGPT\u6a21\u578b-1\" width=\"1920\" height=\"870\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b.png 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b-300x136.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b-1024x464.png 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b-768x348.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/10\/5ce90a7e1f2e79b-1536x696.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-7888\" class=\"wp-caption-text\">\u5728\u7ebf\u4f53\u9a8c\uff1ahttps:\/\/gptgod.online\/<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u591a\u6a21\u578b\u652f\u6301<\/strong>\uff1a\u652f\u6301 GPT-3.5\u3001GPT-4\u3001Llama\u3001Gemini-Pro\u3001Bard \u548c Claude \u7b49\u591a\u79cd\u8bed\u8a00\u6a21\u578b\u3002<\/li>\n<li><strong>\u5f00\u6e90\u514d\u8d39<\/strong>\uff1a\u5b8c\u5168\u5f00\u6e90\uff0c\u7528\u6237\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u548c\u4fee\u6539\u4ee3\u7801\u3002<\/li>\n<li><strong>API \u96c6\u6210<\/strong>\uff1a\u63d0\u4f9b\u591a\u79cd API \u8bf7\u6c42\u529f\u80fd\uff0c\u652f\u6301\u8d85\u65f6\u3001\u8d1f\u8f7d\u5747\u8861\u548c\u6d41\u91cf\u63a7\u5236\u3002<\/li>\n<li><strong>\u6587\u6863\u548c\u6559\u7a0b<\/strong>\uff1a\u8be6\u7ec6\u7684\u6587\u6863\u548c\u6559\u7a0b\uff0c\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u4e0a\u624b\u3002<\/li>\n<li><strong>\u793e\u533a\u652f\u6301<\/strong>\uff1a\u6d3b\u8dc3\u7684\u793e\u533a\u652f\u6301\uff0c\u7528\u6237\u53ef\u4ee5\u5728 GitHub\u3001Telegram \u548c Discord \u4e0a\u4ea4\u6d41\u548c\u83b7\u53d6\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u4e0b\u8f7d\u4ee3\u7801<\/strong>\uff1a\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u514b\u9686\u9879\u76ee\uff1a\n<pre><code>git clone https:\/\/github.com\/xtekky\/gpt4free.git\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong>\uff1a\n<ul>\n<li>\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\uff1a\n<pre><code>cd gpt4free\r\npip install -r requirements.txt\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u914d\u7f6e\u73af\u5883<\/strong>\uff1a\n<ul>\n<li>\u6839\u636e\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u548c API \u5bc6\u94a5\uff0c\u5177\u4f53\u6b65\u9aa4\u8bf7\u53c2\u8003\u9879\u76ee\u6587\u6863\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u6307\u5357<\/h3>\n<ol>\n<li><strong>\u542f\u52a8\u670d\u52a1<\/strong>\uff1a\n<ul>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u670d\u52a1\uff1a\n<pre><code>python main.py\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u8c03\u7528 API<\/strong>\uff1a\n<ul>\n<li>\u4f7f\u7528\u63d0\u4f9b\u7684 API \u8fdb\u884c\u8bf7\u6c42\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a\n<pre><code>import requests\r\nurl = \"http:\/\/localhost:8000\/api\/v1\/gpt4\"\r\npayload = {\r\n\"model\": \"gpt-4\",\r\n\"prompt\": \"\u4f60\u597d\uff0cGPT-4\uff01\",\r\n\"max_tokens\": 100\r\n}\r\nresponse = requests.post(url, json=payload)\r\nprint(response.json())\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u4f7f\u7528 Docker<\/strong>\uff1a\n<ul>\n<li>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u4f7f\u7528 Docker\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 Docker \u5bb9\u5668\uff1a\n<pre><code>docker-compose up -d\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u5e38\u89c1\u95ee\u9898<\/h3>\n<ul>\n<li><strong>\u5982\u4f55\u83b7\u53d6 API \u5bc6\u94a5\uff1f<\/strong>\n<ul>\n<li>\u8bf7\u53c2\u8003\u9879\u76ee\u6587\u6863\u4e2d\u7684\u8be6\u7ec6\u8bf4\u660e\uff0c\u83b7\u53d6\u5e76\u914d\u7f6e API \u5bc6\u94a5\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u9047\u5230\u9519\u8bef\u600e\u4e48\u529e\uff1f<\/strong>\n<ul>\n<li>\u68c0\u67e5\u4f9d\u8d56\u662f\u5426\u6b63\u786e\u5b89\u88c5\uff0c\u786e\u4fdd\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6b63\u786e\uff0c\u6216\u8005\u5728\u793e\u533a\u4e2d\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>GPT4Free \u662f\u4e00\u4e2a\u7531\u5f00\u53d1\u8005 xtekky \u5728 GitHub \u4e0a\u53d1\u5e03\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u65e8\u5728\u514d\u8d39\u63d0\u4f9b\u591a\u79cd\u5f3a\u5927\u7684\u8bed\u8a00\u6a21\u578b\uff0c\u5305\u62ec GPT-3.5\u3001GPT-4\u3001Llama\u3001Gemini-Pro\u3001Bard \u548c Claude \u7b49\u3002\u8be5\u9879\u76ee\u901a\u8fc7\u96c6\u5408\u591a\u79cd AP&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,235],"class_list":["post-7887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aijichengduomoxingdui"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/7887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=7887"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/7887\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=7887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=7887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=7887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}