{"id":13254,"date":"2025-04-18T20:17:32","date_gmt":"2025-04-18T12:17:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/13254.html"},"modified":"2025-04-18T20:17:32","modified_gmt":"2025-04-18T12:17:32","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%80%e6%ac%a1%e6%80%a7%e9%83%a8%e7%bd%b2one-api-chatgpt-next-web","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/13254.html","title":{"rendered":"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web"},"content":{"rendered":"<\/p>\n<h4>\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API &#043; ChatGPT-Next-Web<\/h4>\n<ul>\n<li>One API &#043; ChatGPT-Next-Web \u4ecb\u7ecd<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>One API<\/li>\n<li>ChatGPT-Next-Web<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>docker-compose \u90e8\u7f72One API &#043; ChatGPT-Next-Web<\/li>\n<li>\n<ul>\n<li>Open API docker-compose \u914d\u7f6e<\/li>\n<li>ChatGPT-Next-Web docker-compose \u914d\u7f6e<\/li>\n<li>docker-compose \u542f\u52a8\u5bb9\u5668<\/li>\n<\/ul>\n<\/li>\n<li>\u540e\u7eed\u914d\u7f6e<\/li>\n<\/ul>\n<p>\u540c\u6b65\u53d1\u5e03\u5728\u4e2a\u4eba\u7b14\u8bb0\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API &#043; ChatGPT-Next-Web <\/p>\n<h2>One API &#043; ChatGPT-Next-Web \u4ecb\u7ecd<\/h2>\n<p>\u81ea\u4ece OpenAI \u516c\u5e03\u65d7\u4e0b\u4ea7\u54c1 ChatGPT \u540e&#xff0c;AIGC \u7684\u70ed\u6f6e\u5df2\u7ecf\u5230\u6765\u5f88\u4e45\u4e86&#xff0c;\u6211\u4e00\u76f4\u90fd\u53ea\u662f\u53ca\u5176\u8f7b\u5ea6\u7684\u7ffb\u5899\u4f7f\u7528 ChatGPT \u6216\u8005\u4f7f\u7528\u624b\u673a\u54c1\u724c\u81ea\u5e26\u7684\u4ea7\u54c1\u3002\u6700\u8fd1\u7ec8\u4e8e\u4e0b\u5b9a\u51b3\u5fc3\u591a\u4e86\u89e3\u4e00\u4e0b&#xff0c;\u624d\u53d1\u73b0\u7c7b ChatGPT \u7684\u4ea7\u54c1\u5df2\u7ecf\u591a\u5230\u4e00\u53cc\u624b\u4e0d\u591f\u6570\u4e86&#xff08;\u5b9e\u5728\u592a\u843d\u4f0d\u4e86 \u3012\u25bd\u3012 &#xff09;\u3002<\/p>\n<p>\u4e3a\u4e86\u66f4\u65b9\u4fbf\u7684\u4f53\u9a8c\u591a\u5bb6\u7684AI&#xff0c;\u9042\u51b3\u5b9a\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u4f7f\u7528 docker-compose \u642d\u5efa\u4e00\u4e2a\u53ef\u4ee5\u96c6\u4e2d\u591a\u5bb6 API \u5e76\u65b9\u4fbf\u5207\u6362\u7684\u670d\u52a1\u3002One API &#043; ChatGPT-Next-Web \u7684\u7ec4\u5408\u4e3a\u6211\u63d0\u4f9b\u4e86\u8fd9\u6837\u53ef\u80fd\u3002<\/p>\n<h4>One API<\/h4>\n<p>\u9879\u76eeGitHub One API \u662f\u4e00\u4e2a\u591a\u5e73\u53f0\u5927\u6a21\u578b API \u7684\u63a5\u53e3\u7ba1\u7406 &amp; \u5206\u53d1\u7cfb\u7edf&#xff0c;\u652f\u6301 Azure\u3001Anthropic Claude\u3001Google PaLM 2 &amp; Gemini\u3001\u667a\u8c31 ChatGLM\u3001\u767e\u5ea6\u6587\u5fc3\u4e00\u8a00\u3001\u8baf\u98de\u661f\u706b\u8ba4\u77e5\u3001\u963f\u91cc\u901a\u4e49\u5343\u95ee\u3001360 \u667a\u8111\u4ee5\u53ca\u817e\u8baf\u6df7\u5143\u7b49\u7edd\u5927\u90e8\u5206\u6a21\u578b\u3002<\/p>\n<p>\u5728\u5f00\u53d1\u4e2d\u6211\u4eec\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u95ee\u9898&#xff1a;\u5927\u91cf\u7684\u5f00\u6e90\u6216\u6210\u719f\u7684\u9879\u76ee\u662f\u57fa\u4e8e OpenAI \u7684 API \u7f16\u5199\u7684&#xff0c;\u4f46\u662f\u6211\u4eec\u9700\u8981\u5bf9\u63a5\u7684\u8d44\u6e90\u662f\u975e OpenAI \u7684&#xff1b;\u6216\u8005\u6211\u4eec\u9700\u8981\u5728\u591a\u4e2a\u4e0d\u540c API \u63a5\u53e3\u7684\u6a21\u578b\u95f4\u8fdb\u884c\u5207\u6362\u3002\u8fd9\u90fd\u8981\u6c42\u6211\u4eec\u5b66\u4e60\u6216\u9891\u7e41\u5207\u6362\u591a\u5bb6\u7684 API\u3002 \u5982\u679c\u6211\u4eec\u6709\u4e00\u4e2a\u7cfb\u7edf&#xff0c;\u53ef\u4ee5\u628a\u591a\u4e2a\u4ea7\u54c1\u96c6\u4e2d\u8d77\u6765&#xff0c;\u5e76\u4ee5\u4e00\u79cd\u7edf\u4e00\u7684 API \u63a5\u53e3\u66b4\u9732\u51fa\u6765&#xff0c;\u90a3\u6211\u4eec\u5c31\u53ef\u4ee5\u65b9\u4fbf\u7684\u90e8\u7f72\u6240\u6709\u57fa\u4e8e OpenAI API \u7684\u9879\u76ee\u4e86&#xff1b;\u5728\u591a\u5bb6 AI \u4e4b\u95f4\u5207\u6362\u65f6\u4e5f\u4e0d\u518d\u9700\u8981\u4fee\u6539 API \u683c\u5f0f\u3002<\/p>\n<p>One API \u5c31\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u6837\u7684\u529f\u80fd&#xff1a;\u5b83\u4f5c\u4e3a\u4e00\u4e2a Agent &#xff0c;\u628a\u591a\u5bb6\u5927\u6a21\u578b API \u63a5\u53e3\u63a5\u6536\u8fdb\u6765&#xff0c;\u7528\u6237\u901a\u8fc7 One API \u5206\u53d1\u7684 key \u8bbf\u95ee&#xff0c;\u5b9e\u73b0\u4ee5\u6807\u51c6\u7684 OpenAI API \u683c\u5f0f\u8bbf\u95ee\u6240\u6709\u7684\u5927\u6a21\u578b&#xff08;\u4e5f\u53ef\u4ee5\u7edf\u4e00\u4f7f\u7528\u975e OpenAI\u683c\u5f0f&#xff09;\u3002<\/p>\n<p>  #mermaid-svg-BFdJWsJzUIYBXlV3 {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .error-icon{fill:#552222;}#mermaid-svg-BFdJWsJzUIYBXlV3 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-BFdJWsJzUIYBXlV3 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .marker.cross{stroke:#333333;}#mermaid-svg-BFdJWsJzUIYBXlV3 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .cluster-label text{fill:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .cluster-label span{color:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .label text,#mermaid-svg-BFdJWsJzUIYBXlV3 span{fill:#333;color:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .node rect,#mermaid-svg-BFdJWsJzUIYBXlV3 .node circle,#mermaid-svg-BFdJWsJzUIYBXlV3 .node ellipse,#mermaid-svg-BFdJWsJzUIYBXlV3 .node polygon,#mermaid-svg-BFdJWsJzUIYBXlV3 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .node .label{text-align:center;}#mermaid-svg-BFdJWsJzUIYBXlV3 .node.clickable{cursor:pointer;}#mermaid-svg-BFdJWsJzUIYBXlV3 .arrowheadPath{fill:#333333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-BFdJWsJzUIYBXlV3 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-BFdJWsJzUIYBXlV3 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-BFdJWsJzUIYBXlV3 .cluster text{fill:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 .cluster span{color:#333;}#mermaid-svg-BFdJWsJzUIYBXlV3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-BFdJWsJzUIYBXlV3 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;} <\/p>\n<p>         <span class=\"nodeLabel\">\u975e OpenAI \u683c\u5f0f\u6a21\u578b<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u6807\u51c6 OpenAI \u683c\u5f0f\u6a21\u578b<\/span> <\/p>\n<p>         <span class=\"edgeLabel\">One API \u5206\u53d1\u7684 key<\/span> <\/p>\n<p>         <span class=\"edgeLabel\"><\/span> <\/p>\n<p>         <span class=\"edgeLabel\"><\/span> <\/p>\n<p>         <span class=\"edgeLabel\"><\/span> <\/p>\n<p>         <span class=\"edgeLabel\"><\/span> <\/p>\n<p>         <span class=\"edgeLabel\"><\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u8baf\u98de\u661f\u706b\u8ba4\u77e5<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u5176\u4ed6\u5927\u6a21\u578b<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">OpenAI<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">Azure<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u5176\u4ed6\u5927\u6a21\u578b<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u7528\u6237<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">One API<\/span> <\/p>\n<h4>ChatGPT-Next-Web<\/h4>\n<p>\u9879\u76eeGitHub \u4e00\u4e2a\u5f88\u4f18\u79c0\u7684\u5f00\u6e90\u9879\u76ee&#xff0c;\u53ef\u4ee5\u65b9\u4fbf\u7684\u90e8\u7f72\u8de8\u5e73\u53f0\u7684\u79c1\u4eba ChatGPT \u5e94\u7528, \u539f\u751f\u652f\u6301\u5927\u91cf\u6a21\u578b\u3002\u5728\u6211\u7684\u9879\u76ee\u4e2d\u4e3b\u8981\u7528\u770b\u6765\u4ee5\u6807\u51c6\u7684 OpenAI API \u548c One API \u5bf9\u63a5&#xff0c;\u4f5c\u4e3a\u4e00\u4e2a\u804a\u5929\u524d\u7aef\u4f7f\u7528\u3002<\/p>\n<p>  #mermaid-svg-PfxncnfYo6N00GEB {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-PfxncnfYo6N00GEB .error-icon{fill:#552222;}#mermaid-svg-PfxncnfYo6N00GEB .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-PfxncnfYo6N00GEB .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-PfxncnfYo6N00GEB .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-PfxncnfYo6N00GEB .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-PfxncnfYo6N00GEB .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-PfxncnfYo6N00GEB .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-PfxncnfYo6N00GEB .marker{fill:#333333;stroke:#333333;}#mermaid-svg-PfxncnfYo6N00GEB .marker.cross{stroke:#333333;}#mermaid-svg-PfxncnfYo6N00GEB svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-PfxncnfYo6N00GEB .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-PfxncnfYo6N00GEB .cluster-label text{fill:#333;}#mermaid-svg-PfxncnfYo6N00GEB .cluster-label span{color:#333;}#mermaid-svg-PfxncnfYo6N00GEB .label text,#mermaid-svg-PfxncnfYo6N00GEB span{fill:#333;color:#333;}#mermaid-svg-PfxncnfYo6N00GEB .node rect,#mermaid-svg-PfxncnfYo6N00GEB .node circle,#mermaid-svg-PfxncnfYo6N00GEB .node ellipse,#mermaid-svg-PfxncnfYo6N00GEB .node polygon,#mermaid-svg-PfxncnfYo6N00GEB .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-PfxncnfYo6N00GEB .node .label{text-align:center;}#mermaid-svg-PfxncnfYo6N00GEB .node.clickable{cursor:pointer;}#mermaid-svg-PfxncnfYo6N00GEB .arrowheadPath{fill:#333333;}#mermaid-svg-PfxncnfYo6N00GEB .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-PfxncnfYo6N00GEB .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-PfxncnfYo6N00GEB .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-PfxncnfYo6N00GEB .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-PfxncnfYo6N00GEB .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-PfxncnfYo6N00GEB .cluster text{fill:#333;}#mermaid-svg-PfxncnfYo6N00GEB .cluster span{color:#333;}#mermaid-svg-PfxncnfYo6N00GEB div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-PfxncnfYo6N00GEB :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;} <\/p>\n<p>         <span class=\"edgeLabel\">\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span> <\/p>\n<p>         <span class=\"edgeLabel\">\u6807\u51c6 OpenAI API \u683c\u5f0f<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">\u7528\u6237<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">One API<\/span> <\/p>\n<p>         <span class=\"nodeLabel\">ChatGPT-Next-Web<\/span> <\/p>\n<h2>docker-compose \u90e8\u7f72One API &#043; ChatGPT-Next-Web<\/h2>\n<p>docker-compose \u4e00\u6b21\u6027\u90e8\u7f72\u591a\u4e2a\u670d\u52a1\u7684\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003\u6211\u4ee5\u524d\u7684\u7b14\u8bb0: docker compose\u90e8\u7f72nginx&#043;php&#043;mysql&#043;phpmyadmin\u73af\u5883 \u672c\u6b21\u7684\u9879\u76ee\u53ea\u6709\u4e24\u4e2a&#xff0c;\u76f8\u6bd4\u4e8e LNMP \u73af\u5883\u66f4\u52a0\u7b80\u5355&#xff0c;\u672c\u7b14\u8bb0\u5206\u522b\u8bb0\u5f55\u6700\u7ec8\u7684 compose \u6587\u4ef6\u4e2d\u7684\u4e24\u4e2a\u90e8\u5206&#xff0c;\u5982\u679c\u53ea\u60f3\u90e8\u7f72\u5176\u4e2d\u4e00\u4e2a\u670d\u52a1\u7684\u8bdd&#xff0c;\u53ea\u4f7f\u7528\u5bf9\u5e94\u7684\u90e8\u5206\u5c31\u597d\u4e86\u3002<\/p>\n<h3>Open API docker-compose \u914d\u7f6e<\/h3>\n<p>\u6700\u63a8\u8350\u81ea\u5df1\u9605\u8bfb github \u4e0a\u5b98\u65b9\u7684 docker-compose \u6587\u4ef6\u3002<\/p>\n<p>\u63a8\u8350\u5148\u628a\u955c\u50cf pull \u4e0b\u6765&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> pull justsong\/one-api:v0.6.10<span class=\"token comment\"># \u6700\u597d\u6307\u5b9a\u7248\u672c\u53f7&#xff0c;\u9ed8\u8ba4tag\u53ef\u80fd\u4f1a\u83b7\u5f97\u6d4b\u8bd5\u7248\u955c\u50cf\u5bfc\u81f4\u4e0d\u7a33\u5b9a\u3002<\/span><\/p>\n<p>\u8fd9\u91cc\u6211\u7684\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b&#xff1a; docker-compose.yml<\/p>\n<p><span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;3.4&#039;<\/span><\/p>\n<p><span class=\"token key atrule\">services<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">one-api<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> justsong\/one<span class=\"token punctuation\">&#8211;<\/span>api<span class=\"token punctuation\">:<\/span>v0.6.10<br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> one<span class=\"token punctuation\">&#8211;<\/span>api<br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always<br \/>\n<span class=\"token comment\">#    network: host<\/span><br \/>\n    <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>log<span class=\"token punctuation\">&#8211;<\/span>dir \/app\/logs<br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#034;yourport:3000&#034;<\/span><span class=\"token comment\"># \u586b\u5199\u6620\u5c04\u5230\u670d\u52a1\u5668\u4e0a\u7684\u7aef\u53e3\u53f7<\/span><br \/>\n    <span class=\"token key atrule\">volumes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> yourdatapath<span class=\"token punctuation\">:<\/span>\/data<span class=\"token comment\"># \u586b\u5199\u81ea\u5df1\u672c\u5730\u7684\u6570\u636e\u4fdd\u5b58\u8def\u5f84<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> yourlogpath<span class=\"token punctuation\">:<\/span>\/app\/logs<span class=\"token comment\"># \u586b\u5199\u81ea\u5df1\u672c\u5730\u7684\u65e5\u5fd7\u4fdd\u5b58\u8def\u5f84<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SQL_DSN&#061;oneapi<span class=\"token punctuation\">:<\/span>123456&#064;tcp(db<span class=\"token punctuation\">:<\/span>3306)\/one<span class=\"token punctuation\">&#8211;<\/span>api  <span class=\"token comment\"># \u4fee\u6539\u6b64\u884c&#xff0c;\u6216\u6ce8\u91ca\u6389\u4ee5\u4f7f\u7528 SQLite \u4f5c\u4e3a\u6570\u636e\u5e93<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> REDIS_CONN_STRING&#061;redis<span class=\"token punctuation\">:<\/span>\/\/redis<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SESSION_SECRET&#061;random_string  <span class=\"token comment\"># \u4fee\u6539\u4e3a\u968f\u673a\u5b57\u7b26\u4e32<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> TZ&#061;Asia\/Shanghai<br \/>\n<span class=\"token comment\">#      &#8211; NODE_TYPE&#061;slave  # \u591a\u673a\u90e8\u7f72\u65f6\u4ece\u8282\u70b9\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n<span class=\"token comment\">#      &#8211; SYNC_FREQUENCY&#061;60  # \u9700\u8981\u5b9a\u671f\u4ece\u6570\u636e\u5e93\u52a0\u8f7d\u6570\u636e\u65f6\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n<span class=\"token comment\">#      &#8211; FRONTEND_BASE_URL&#061;https:\/\/openai.justsong.cn  # \u591a\u673a\u90e8\u7f72\u65f6\u4ece\u8282\u70b9\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n    <span class=\"token key atrule\">depends_on<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> redis<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> db<br \/>\n    <span class=\"token key atrule\">healthcheck<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">test<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token string\">&#034;CMD-SHELL&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;wget -q -O &#8211; http:\/\/localhost:3000\/api\/status | grep -o &#039;\\\\&#034;success\\\\&#034;:\\\\\\\\s*true&#039; | awk -F: &#039;{print $2}&#039;&#034;<\/span> <span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">interval<\/span><span class=\"token punctuation\">:<\/span> 30s<br \/>\n      <span class=\"token key atrule\">timeout<\/span><span class=\"token punctuation\">:<\/span> 10s<br \/>\n      <span class=\"token key atrule\">retries<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">3<\/span><\/p>\n<p>  <span class=\"token key atrule\">redis<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;${REGISTRY:-docker.io}\/redis:latest&#034;<\/span><br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> redis<br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always<\/p>\n<p>  <span class=\"token key atrule\">db<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;${REGISTRY:-docker.io}\/mysql:8.2.0&#034;<\/span><br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always<br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> mysql<br \/>\n    <span class=\"token key atrule\">volumes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> .\/data\/mysql<span class=\"token punctuation\">:<\/span>\/var\/lib\/mysql  <span class=\"token comment\"># \u6302\u8f7d\u76ee\u5f55&#xff0c;\u6301\u4e45\u5316\u5b58\u50a8<\/span><br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#039;3306:3306&#039;<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">TZ<\/span><span class=\"token punctuation\">:<\/span> Asia\/Shanghai   <span class=\"token comment\"># \u8bbe\u7f6e\u65f6\u533a<\/span><br \/>\n      <span class=\"token key atrule\">MYSQL_ROOT_PASSWORD<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;OneAPI&#064;justsong&#039;<\/span> <span class=\"token comment\"># \u8bbe\u7f6e root \u7528\u6237\u7684\u5bc6\u7801<\/span><br \/>\n      <span class=\"token key atrule\">MYSQL_USER<\/span><span class=\"token punctuation\">:<\/span> oneapi   <span class=\"token comment\"># \u521b\u5efa\u4e13\u7528\u7528\u6237<\/span><br \/>\n      <span class=\"token key atrule\">MYSQL_PASSWORD<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;123456&#039;<\/span>    <span class=\"token comment\"># \u8bbe\u7f6e\u4e13\u7528\u7528\u6237\u5bc6\u7801<\/span><br \/>\n      <span class=\"token key atrule\">MYSQL_DATABASE<\/span><span class=\"token punctuation\">:<\/span> one<span class=\"token punctuation\">&#8211;<\/span>api   <span class=\"token comment\"># \u81ea\u52a8\u521b\u5efa\u6570\u636e\u5e93<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u4e0a\u8ff0\u7684\u6587\u4ef6\u4f1a\u4f7f\u7528\u955c\u50cf\u5185\u90e8\u7684\u6570\u636e\u5e93&#xff0c;\u5982\u679c\u6211\u4eec\u670d\u52a1\u5668\u4e0a\u5df2\u7ecf\u6709\u4e86\u6570\u636e\u5e93&#xff0c;\u90a3\u53ef\u4ee5\u5728\u73af\u5883\u53d8\u91cf\u90e8\u5206\u76f4\u63a5\u6307\u5b9a\u672c\u673a\u7684\u6570\u636e\u5e93&#xff0c;redis \u548c db \u90e8\u5206\u5c06\u4e0d\u518d\u9700\u8981\u3002\u5f62\u5982\u4e0b\u9762&#xff1a;<\/p>\n<p><span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;3.4&#039;<\/span><\/p>\n<p><span class=\"token key atrule\">services<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">one-api<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> justsong\/one<span class=\"token punctuation\">&#8211;<\/span>api<span class=\"token punctuation\">:<\/span>v0.6.10<br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> one<span class=\"token punctuation\">&#8211;<\/span>api<br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always<br \/>\n<span class=\"token comment\">#    network: host<\/span><br \/>\n    <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">&#8211;<\/span><span class=\"token punctuation\">&#8211;<\/span>log<span class=\"token punctuation\">&#8211;<\/span>dir \/app\/logs<br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#034;yourport:3000&#034;<\/span><span class=\"token comment\"># \u586b\u5199\u6620\u5c04\u5230\u670d\u52a1\u5668\u4e0a\u7684\u7aef\u53e3\u53f7<\/span><br \/>\n    <span class=\"token key atrule\">volumes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> yourdatapath<span class=\"token punctuation\">:<\/span>\/data<span class=\"token comment\"># \u586b\u5199\u81ea\u5df1\u672c\u5730\u7684\u6570\u636e\u4fdd\u5b58\u8def\u5f84<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> yourlogpath<span class=\"token punctuation\">:<\/span>\/app\/logs<span class=\"token comment\"># \u586b\u5199\u81ea\u5df1\u672c\u5730\u7684\u65e5\u5fd7\u4fdd\u5b58\u8def\u5f84<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SQL_DSN&#061;\u6570\u636e\u5e93\u4e13\u7528\u7528\u6237<span class=\"token punctuation\">:<\/span>\u7528\u6237\u5bc6\u7801&#064;tcp(\u6570\u636e\u5e93\u5730\u5740<span class=\"token punctuation\">:<\/span>\u6570\u636e\u5e93\u7aef\u53e3)\/\u6570\u636e\u5e93\u540d\u79f0  <span class=\"token comment\"># \u4fee\u6539\u6b64\u884c&#xff0c;\u6216\u6ce8\u91ca\u6389\u4ee5\u4f7f\u7528 SQLite \u4f5c\u4e3a\u6570\u636e\u5e93<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SESSION_SECRET&#061;random_string  <span class=\"token comment\"># \u4fee\u6539\u4e3a\u968f\u673a\u5b57\u7b26\u4e32<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> TZ&#061;Asia\/Shanghai<br \/>\n<span class=\"token comment\">#      &#8211; NODE_TYPE&#061;slave  # \u591a\u673a\u90e8\u7f72\u65f6\u4ece\u8282\u70b9\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n<span class=\"token comment\">#      &#8211; SYNC_FREQUENCY&#061;60  # \u9700\u8981\u5b9a\u671f\u4ece\u6570\u636e\u5e93\u52a0\u8f7d\u6570\u636e\u65f6\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n<span class=\"token comment\">#      &#8211; FRONTEND_BASE_URL&#061;https:\/\/openai.justsong.cn  # \u591a\u673a\u90e8\u7f72\u65f6\u4ece\u8282\u70b9\u53d6\u6d88\u6ce8\u91ca\u8be5\u884c<\/span><br \/>\n    <span class=\"token key atrule\">healthcheck<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">test<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token string\">&#034;CMD-SHELL&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;wget -q -O &#8211; http:\/\/localhost:3000\/api\/status | grep -o &#039;\\\\&#034;success\\\\&#034;:\\\\\\\\s*true&#039; | awk -F: &#039;{print $2}&#039;&#034;<\/span> <span class=\"token punctuation\">]<\/span><br \/>\n      <span class=\"token key atrule\">interval<\/span><span class=\"token punctuation\">:<\/span> 30s<br \/>\n      <span class=\"token key atrule\">timeout<\/span><span class=\"token punctuation\">:<\/span> 10s<br \/>\n      <span class=\"token key atrule\">retries<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">3<\/span><\/p>\n<p>\u5728\u4f7f\u7528\u672c\u5730\u670d\u52a1\u5668\u65f6&#xff0c;\u63a8\u8350\u5148\u628a\u6570\u636e\u5e93\u5efa\u597d&#xff0c;\u4f7f\u7528\u7c7b\u4f3c phpmyadmin \u7b49\u5de5\u5177\u4f1a\u5341\u5206\u65b9\u4fbf\u3002<\/p>\n<h3>ChatGPT-Next-Web docker-compose \u914d\u7f6e<\/h3>\n<p>\u6700\u63a8\u8350\u81ea\u5df1\u9605\u8bfb github \u4e0a\u5b98\u65b9\u7684 docker-compose \u6587\u4ef6\u3002<\/p>\n<p>\u63a8\u8350\u5148\u628a\u955c\u50cf pull \u4e0b\u6765&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> pull yidadaa\/chatgpt-next-web:v2.15.8 <\/p>\n<p>\u8fd9\u91cc\u6211\u7684\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b&#xff1a; docker-compose.yml<\/p>\n<p><span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;3.4&#039;<\/span><\/p>\n<p><span class=\"token key atrule\">services<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">chatgpt-next-web<\/span><span class=\"token punctuation\">:<\/span><br \/>\n<span class=\"token comment\">#    profiles: [ &#034;no-proxy&#034; ]<\/span><br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> chatgpt<span class=\"token punctuation\">&#8211;<\/span>next<span class=\"token punctuation\">&#8211;<\/span>web<br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> yidadaa\/chatgpt<span class=\"token punctuation\">&#8211;<\/span>next<span class=\"token punctuation\">&#8211;<\/span>web<span class=\"token punctuation\">:<\/span>v2.15.8<br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> yourport<span class=\"token punctuation\">:<\/span><span class=\"token number\">3000<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> OPENAI_API_KEY&#061;$OPENAI_API_KEY<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> GOOGLE_API_KEY&#061;$GOOGLE_API_KEY<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> CODE&#061;\u6307\u5b9a\u4e00\u4e2a\u767b\u5f55\u5b57\u6bb5<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> BASE_URL&#061;$BASE_URL<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> OPENAI_ORG_ID&#061;$OPENAI_ORG_ID<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> HIDE_USER_API_KEY&#061;$HIDE_USER_API_KEY<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> DISABLE_GPT4&#061;$DISABLE_GPT4<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> ENABLE_BALANCE_QUERY&#061;$ENABLE_BALANCE_QUERY<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> DISABLE_FAST_LINK&#061;$DISABLE_FAST_LINK<br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> OPENAI_SB&#061;$OPENAI_SB<\/p>\n<h3>docker-compose \u542f\u52a8\u5bb9\u5668<\/h3>\n<p>\u5982\u679c\u53ea\u9700\u8981\u90e8\u7f72\u4e00\u4e2a\u670d\u52a1\u7684\u8bdd&#xff0c;\u76f4\u63a5\u4f7f\u7528\u4e0a\u9762\u67d0\u4e2a\u670d\u52a1\u7684\u6587\u4ef6\u5373\u53ef&#xff1b;\u5982\u679c\u8981\u4e00\u6b21\u6027\u90e8\u7f72\u4e24\u4e2a\u670d\u52a1&#xff0c;\u5219\u9700\u8981\u5c06\u4e24\u4e2a\u6587\u4ef6\u5408\u5e76\u5728\u4e00\u4e2a\u6587\u4ef6\u5185&#xff0c;\u6ce8\u610f\u5220\u9664\u91cd\u590d\u7684***version: \u20183.4\u2019 services:***\u5b57\u6bb5&#xff0c;\u6700\u7ec8\u5f62\u5982\u4e0b\u9762\u7684\u683c\u5f0f&#xff1a;<\/p>\n<p><span class=\"token comment\"># Creat container for One API &#043; ChatGPT-Next-Web<\/span><br \/>\n<span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;3.4&#039;<\/span><\/p>\n<p><span class=\"token key atrule\">services<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">one-api<\/span><span class=\"token punctuation\">:<\/span><br \/>\n<span class=\"token comment\">###<\/span><br \/>\n<span class=\"token comment\">###<\/span><br \/>\n<span class=\"token comment\">###<\/span><\/p>\n<p>  <span class=\"token key atrule\">chatgpt-next-web<\/span><span class=\"token punctuation\">:<\/span><br \/>\n<span class=\"token comment\">###<\/span><br \/>\n<span class=\"token comment\">###<\/span><br \/>\n<span class=\"token comment\">###<\/span><\/p>\n<p>\u6700\u540e\u8fd0\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">docker-compose<\/span> up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>\u4f7f\u7528\u547d\u4ee4 docker ps\u67e5\u770b\u5f53\u524d\u8fd0\u884c\u7684\u5bb9\u5668\u91cc\u9762\u662f\u5426\u6709\u6211\u4eec\u7684 one-api \u548c chatgpt-next-web&#xff0c;\u5982\u679c\u6709\u7684\u8bdd&#xff0c;\u90a3\u5c31\u8fd0\u884c\u6210\u529f\u4e86\u3002 \u6b64\u65f6\u6211\u4eec\u901a\u8fc7\u6d4f\u89c8\u5668\u5206\u522b\u8bbf\u95ee\u5730\u5740&#xff1a; One API yourdomain:oneapi_port \u9996\u6b21\u8bbf\u95ee\u9700\u8981\u767b\u5f55&#xff0c;\u9ed8\u8ba4\u7528\u6237\u4e3a root &#xff0c;\u9ed8\u8ba4\u5bc6\u7801\u662f 12345\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121730-680242dad71d3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>ChatGPT-Next-Web&#xff1a; yourdomain:chatgptnextweb_port <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121731-680242db18b53.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u540e\u7eed\u914d\u7f6e<\/h2>\n<p>\u7b14\u8bb0\u53ea\u8bb0\u5f55\u4e86\u4e24\u4e2a\u5e73\u53f0\u7684\u642d\u5efa\u8fc7\u7a0b\u3002\u540e\u7eed\u4f1a\u4ee5\u8baf\u98de\u7684 SparkDesk \u6a21\u578b\u4e3a\u4f8b&#xff0c;\u4ecb\u7ecd\u5982\u4f55\u8054\u901a\u4e24\u4e2a\u670d\u52a1&#xff0c;\u5b9e\u73b0\u4e2a\u4eba\u670d\u52a1\u5668\u8bbf\u95ee\u7c7b ChatGPT AI\u3002 \u540e\u7eed\u7b14\u8bb0\u5df2\u66f4\u65b0&#xff1a; \u914d\u7f6e One API &#043; ChatGPT-Next-Web&#xff0c;\u4ee5\u8baf\u98de\u661f\u706b\u8ba4\u77e5\u5927\u6a21\u578b\u4e3a\u4f8b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf18\u6b21\u3002docker compose \u4e00\u6b21\u6027\u642d\u5efa One APi + ChatGPT Next Web \u670d\u52a1\uff0c\u5b9e\u73b0\u4e2a\u4eba\u670d\u52a1\u5668\u90e8\u7f72\u7c7b ChatGPT AI\u3002_chatgpt\u8fde\u63a5\u6c60 oneapi<\/p>\n","protected":false},"author":2,"featured_media":13252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[52,175,783,87,43,782],"topic":[],"class_list":["post-13254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-aigc","tag-chatgpt","tag-oneapi","tag-87","tag-43","tag-782"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/13254.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf18\u6b21\u3002docker compose \u4e00\u6b21\u6027\u642d\u5efa One APi + ChatGPT Next Web \u670d\u52a1\uff0c\u5b9e\u73b0\u4e2a\u4eba\u670d\u52a1\u5668\u90e8\u7f72\u7c7b ChatGPT AI\u3002_chatgpt\u8fde\u63a5\u6c60 oneapi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/13254.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T12:17:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121730-680242dad71d3.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13254.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/13254.html\",\"name\":\"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:17:32+00:00\",\"dateModified\":\"2025-04-18T12:17:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/13254.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/13254.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13254.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/13254.html","og_locale":"zh_CN","og_type":"article","og_title":"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf18\u6b21\u3002docker compose \u4e00\u6b21\u6027\u642d\u5efa One APi + ChatGPT Next Web \u670d\u52a1\uff0c\u5b9e\u73b0\u4e2a\u4eba\u670d\u52a1\u5668\u90e8\u7f72\u7c7b ChatGPT AI\u3002_chatgpt\u8fde\u63a5\u6c60 oneapi","og_url":"https:\/\/www.wsisp.com\/helps\/13254.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:17:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418121730-680242dad71d3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/13254.html","url":"https:\/\/www.wsisp.com\/helps\/13254.html","name":"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:17:32+00:00","dateModified":"2025-04-18T12:17:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/13254.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/13254.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/13254.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u670d\u52a1\u5668\u4e00\u6b21\u6027\u90e8\u7f72One API + ChatGPT-Next-Web"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/13254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=13254"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/13254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/13252"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=13254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=13254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=13254"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=13254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}