{"id":6061,"date":"2025-12-12T13:45:06","date_gmt":"2025-12-12T05:45:06","guid":{"rendered":"https:\/\/benson80.eu.org\/?p=6061"},"modified":"2025-12-12T13:48:38","modified_gmt":"2025-12-12T05:48:38","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e4%b8%8a%e9%83%a8%e7%bd%b2%e7%a7%81%e6%9c%89%e5%8c%96chatgpt%ef%bc%9a%e6%94%af%e6%8c%81%e8%af%ad%e9%9f%b3%e8%be%93%e5%85%a5%e3%80%81","status":"publish","type":"post","link":"https:\/\/benson80.eu.org\/?p=6061","title":{"rendered":"\u5982\u4f55\u5728\u4e2a\u4eba\u7535\u8111\u4e0a\u90e8\u7f72\u79c1\u6709\u5316ChatGPT\uff1a\u652f\u6301\u8bed\u97f3\u8f93\u5165\u3001\u56fe\u7247\u8bc6\u522b\u4e0e\u6587\u751f\u56fe"},"content":{"rendered":"\n<p>\u8fd9\u4e2a\u6559\u7a0b\u63d0\u4f9b\u4e86\u5982\u4f55\u5728\u672c\u5730\u7535\u8111\u4e0a\u90e8\u7f72\u4e00\u4e2a\u79c1\u6709\u5316\u7684ChatGPT\u7cfb\u7edf\uff0c\u652f\u6301\u804a\u5929\u3001\u56fe\u7247\u8bc6\u522b\u3001\u6587\u751f\u56fe\u3001\u8bed\u97f3\u8f93\u5165\u3001\u6587\u672c\u6717\u8bfb\u7b49\u529f\u80fd\u3002\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u90e8\u7f72\u5927\u6a21\u578b<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <strong>ollama<\/strong> \u6765\u90e8\u7f72\u591a\u79cd\u5f00\u6e90\u5927\u6a21\u578b\u3002\u5b83\u652f\u6301 CPU \u8fd0\u884c\uff0c\u4e0d\u9700\u8981 GPU\uff0c\u5b89\u88c5\u975e\u5e38\u7b80\u5355\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u5404\u79cd\u6a21\u578b\uff0c\u6bd4\u5982 Llama2 \u548c Gemma\uff0c\u5b98\u7f51\u652f\u6301\u7684\u6a21\u578b\u53ef\u4ee5\u53c2\u8003 <a href=\"https:\/\/ollama.com\/library\" target=\"_blank\" rel=\"noreferrer noopener\">ollama\u5b98\u7f51<\/a>\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u90e8\u7f72\u804a\u5929\u754c\u9762<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <strong>open webui<\/strong> \u6765\u642d\u5efa\u754c\u9762\u3002\u8fd9\u4e2a\u9879\u76ee\u4e0d\u4ec5\u662f\u4e00\u4e2a\u804a\u5929\u754c\u9762\uff0c\u8fd8\u652f\u6301\u591a\u4e2a\u529f\u80fd\uff0c\u5982\u5927\u6a21\u578b\u7684\u5ba2\u6237\u7aef\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 Docker \u90e8\u7f72\uff1adocker run -d -p 3000:8080 &#8211;add-host=host.docker.internal:host-gateway -v open-webui:\/app\/backend\/data &#8211;name open-webui &#8211;restart always ghcr.io\/open-webui\/open-webui:main\u90e8\u7f72\u5b8c\u540e\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165 <code>http:\/\/localhost:3000<\/code>\uff0c\u5c31\u80fd\u9009\u62e9\u6a21\u578b\u5f00\u59cb\u804a\u5929\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u56fe\u7247\u8bc6\u522b<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <strong>LLaVA<\/strong> \u6a21\u578b\u8fdb\u884c\u56fe\u7247\u8bc6\u522b\u3002\u5728\u804a\u5929\u65f6\uff0c\u9009\u62e9 LLaVA \u6a21\u578b\u5e76\u53d1\u9001\u56fe\u7247\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8bc6\u522b\u56fe\u7247\u5185\u5bb9\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u8bed\u97f3\u8f93\u5165<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u90e8\u7f72 <strong>Whisper<\/strong> \u8bed\u97f3\u8bc6\u522b\u7cfb\u7edf\u3002\u53ef\u4ee5\u7528\u9ea6\u514b\u98ce\u8f93\u5165\u8bed\u97f3\u8fdb\u884c\u804a\u5929\uff0c\u6548\u679c\u63a5\u8fd1\u6536\u8d39\u7cfb\u7edf\u3002<\/li>\n\n\n\n<li>\u914d\u7f6e Whisper \u540e\uff0c\u5c06 STT \u5f15\u64ce\u8bbe\u7f6e\u4e3a <code>whisper (Local)<\/code>\uff0c\u7136\u540e\u5728\u804a\u5929\u8f93\u5165\u6846\u70b9\u51fb\u9ea6\u514b\u98ce\u56fe\u6807\u5373\u53ef\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u6587\u751f\u56fe<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <strong>Stable Diffusion<\/strong>\uff08\u9700\u8981 GPU\uff09\u6765\u751f\u6210\u56fe\u50cf\u3002\u5728 open-webui \u4e2d\u96c6\u6210 Stable Diffusion\uff0c\u751f\u6210\u56fe\u7247\u65f6\u4f1a\u5148\u9009\u62e9\u6a21\u578b\u5e76\u8f93\u5165\u63d0\u793a\u8bcd\uff08prompt\uff09\uff0c\u7136\u540e\u70b9\u51fb\u201c\u751f\u6210\u56fe\u7247\u201d\u6309\u94ae\u3002<\/li>\n\n\n\n<li>\u914d\u7f6e\u65f6\uff0c\u9700\u8981\u786e\u4fdd stable diffusion \u542f\u7528\u4e86 API \u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539 <code>webui.bat<\/code> \u6587\u4ef6\u6765\u542f\u52a8\uff1aset COMMANDLINE_ARGS=&#8211;api<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u4f7f\u7528 OpenAI \u63a5\u53e3<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u672c\u5730\u6a21\u578b\u8fd0\u884c\u901f\u5ea6\u8f83\u6162\uff0c\u53ef\u4ee5\u4f7f\u7528 OpenAI \u7684\u514d\u8d39 API\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5f00\u6e90\u9879\u76ee\u83b7\u53d6\u514d\u8d39\u7684 API Key\uff0c\u7136\u540e\u5728\u914d\u7f6e\u4e2d\u9009\u62e9 OpenAI \u6a21\u578b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7. \u6587\u672c\u6717\u8bfb<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 Windows \u7cfb\u7edf\u7684 <strong>HTML5 Speech Synthesis API<\/strong> \u6765\u5b9e\u73b0\u79bb\u7ebf\u7684\u6587\u672c\u6717\u8bfb\u529f\u80fd\u3002\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u804a\u5929\u65f6\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6717\u8bfb\u6587\u672c\u5185\u5bb9\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">8. \u9879\u76ee\u5730\u5740<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ollama<\/strong>: <a href=\"https:\/\/github.com\/ollama\/ollama\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/ollama\/ollama<\/a><\/li>\n\n\n\n<li><strong>open-webui<\/strong>: <a href=\"https:\/\/github.com\/open-webui\/open-webui\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/open-webui\/open-webui<\/a><\/li>\n\n\n\n<li><strong>Stable Diffusion<\/strong>: <a href=\"https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/AUTOMATIC1111\/stable-diffusion-webui<\/a><\/li>\n\n\n\n<li><strong>Whisper<\/strong>: <a href=\"https:\/\/github.com\/openai\/whisper\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/openai\/whisper<\/a><\/li>\n\n\n\n<li><strong>GPT_API_free<\/strong>: <a href=\"https:\/\/github.com\/chatanywhere\/GPT_API_free\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/chatanywhere\/GPT_API_free<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u8fd9\u51e0\u4e2a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728\u6ca1\u6709 GPU \u7684\u7535\u8111\u4e0a\u90e8\u7f72\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684\u79c1\u6709\u5316 ChatGPT\uff0c\u5e76\u4e14\u652f\u6301\u8bed\u97f3\u8f93\u5165\u3001\u56fe\u7247\u8bc6\u522b\u3001\u6587\u751f\u56fe\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u6559\u7a0b\u63d0\u4f9b\u4e86\u5982\u4f55\u5728\u672c\u5730\u7535\u8111\u4e0a\u90e8\u7f72\u4e00\u4e2a\u79c1\u6709\u5316\u7684Ch &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,25],"tags":[],"class_list":["post-6061","post","type-post","status-publish","format-standard","hentry","category-docker","category-github"],"_links":{"self":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/6061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6061"}],"version-history":[{"count":2,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/6061\/revisions"}],"predecessor-version":[{"id":6063,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/6061\/revisions\/6063"}],"wp:attachment":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}