{"id":59418,"date":"2026-01-13T20:26:34","date_gmt":"2026-01-13T12:26:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59418.html"},"modified":"2026-01-13T20:26:34","modified_gmt":"2026-01-13T12:26:34","slug":"%e8%bd%bb%e9%87%8f%e7%ba%a7%e7%bf%bb%e8%af%91%e6%9c%8d%e5%8a%a1%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e4%bd%8e%e9%85%8d%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%ab%98%e6%95%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59418.html","title":{"rendered":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c"},"content":{"rendered":"<h2>\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1&#xff1a;\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c<\/h2>\n<h3>&#x1f310; AI \u667a\u80fd\u4e2d\u82f1\u7ffb\u8bd1\u670d\u52a1 (WebUI &#043; API)<\/h3>\n<h4>\u4ece\u8d44\u6e90\u6d88\u8017\u5230\u5b9e\u7528\u843d\u5730&#xff1a;\u4e3a\u4f55\u8f7b\u91cf\u5316\u662f\u7ffb\u8bd1\u670d\u52a1\u7684\u5173\u952e<\/h4>\n<p>\u5728\u5f53\u524d\u5927\u6a21\u578b\u4e3b\u5bfc\u7684AI\u751f\u6001\u4e2d&#xff0c;\u52a8\u8f84\u6570\u5341GB\u663e\u5b58\u9700\u6c42\u7684\u7ffb\u8bd1\u7cfb\u7edf\u8ba9\u8bb8\u591a\u4e2d\u5c0f\u578b\u9879\u76ee\u671b\u800c\u5374\u6b65\u3002\u5c24\u5176\u5bf9\u4e8e\u90e8\u7f72\u5728\u4f4e\u914d\u4e91\u4e3b\u673a\u3001\u8fb9\u7f18\u8bbe\u5907\u6216\u672c\u5730\u5f00\u53d1\u673a\u4e0a\u7684\u5e94\u7528\u800c\u8a00&#xff0c;\u4e00\u4e2a\u201c\u80fd\u8dd1\u8d77\u6765\u201d\u7684\u7ffb\u8bd1\u670d\u52a1\u8fdc\u6bd4\u201c\u7406\u8bba\u4e0a\u66f4\u5f3a\u201d\u4f46\u65e0\u6cd5\u8fd0\u884c\u7684\u65b9\u6848\u66f4\u5177\u5b9e\u9645\u4ef7\u503c\u3002<\/p>\n<p>\u672c\u9879\u76ee\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e00\u75db\u70b9\u800c\u751f\u2014\u2014\u6211\u4eec\u57fa\u4e8e ModelScope \u5e73\u53f0\u63d0\u4f9b\u7684 CSANMT&#xff08;Conversational Self-Attentive Neural Machine Translation&#xff09;\u6a21\u578b&#xff0c;\u6784\u5efa\u4e86\u4e00\u5957\u4e13\u4e3a CPU \u73af\u5883\u4f18\u5316\u7684\u8f7b\u91cf\u7ea7\u4e2d\u82f1\u7ffb\u8bd1\u7cfb\u7edf\u3002\u5b83\u4e0d\u4ec5\u652f\u6301\u9ad8\u8d28\u91cf\u7684\u4e2d\u6587\u2192\u82f1\u6587\u7ffb\u8bd1&#xff0c;\u8fd8\u96c6\u6210\u4e86\u53cc\u680f WebUI \u548c\u53ef\u8c03\u7528 API \u63a5\u53e3&#xff0c;\u771f\u6b63\u5b9e\u73b0\u201c\u5f00\u7bb1\u5373\u7528\u201d\u3002<\/p>\n<p>\u66f4\u91cd\u8981\u7684\u662f&#xff0c;\u6574\u4e2a\u670d\u52a1\u53ef\u5728 2\u6838CPU &#043; 4GB\u5185\u5b58 \u7684\u57fa\u7840\u914d\u7f6e\u4e0b\u7a33\u5b9a\u8fd0\u884c&#xff0c;\u54cd\u5e94\u65f6\u95f4\u63a7\u5236\u5728 1~3 \u79d2\u4e4b\u95f4&#xff0c;\u9002\u7528\u4e8e\u6587\u6863\u8f85\u52a9\u5199\u4f5c\u3001\u8de8\u5883\u7535\u5546\u5185\u5bb9\u5904\u7406\u3001\u6559\u80b2\u573a\u666f\u5373\u65f6\u7ffb\u8bd1\u7b49\u5bf9\u6210\u672c\u654f\u611f\u4f46\u8d28\u91cf\u8981\u6c42\u4e0d\u4f4e\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<hr \/>\n<h3>&#x1f4d6; \u9879\u76ee\u7b80\u4ecb<\/h3>\n<p>\u672c\u955c\u50cf\u57fa\u4e8e ModelScope \u7684 CSANMT (\u795e\u7ecf\u7f51\u7edc\u7ffb\u8bd1) \u6a21\u578b\u6784\u5efa\u3002<br \/>\n\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u4e2d\u6587\u5230\u82f1\u6587\u7ffb\u8bd1\u670d\u52a1\u3002\u76f8\u6bd4\u4f20\u7edf\u673a\u5668\u7ffb\u8bd1&#xff0c;CSANMT \u6a21\u578b\u751f\u6210\u7684\u8bd1\u6587\u66f4\u52a0\u6d41\u7545\u3001\u81ea\u7136&#xff0c;\u7b26\u5408\u82f1\u8bed\u8868\u8fbe\u4e60\u60ef\u3002<br \/>\n\u5df2\u96c6\u6210 Flask Web \u670d\u52a1&#xff0c;\u63d0\u4f9b\u76f4\u89c2\u7684\u53cc\u680f\u5f0f\u5bf9\u7167\u754c\u9762&#xff0c;\u5e76\u4fee\u590d\u4e86\u7ed3\u679c\u89e3\u6790\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u786e\u4fdd\u8f93\u51fa\u7a33\u5b9a\u3002<\/p>\n<p>&#x1f4a1; \u6838\u5fc3\u4eae\u70b9&#xff1a;<br \/>\n1. \u9ad8\u7cbe\u5ea6\u7ffb\u8bd1&#xff1a;\u57fa\u4e8e\u8fbe\u6469\u9662 CSANMT \u67b6\u6784&#xff0c;\u4e13\u6ce8\u4e8e\u4e2d\u82f1\u7ffb\u8bd1\u4efb\u52a1&#xff0c;\u51c6\u786e\u7387\u9ad8\u3002<br \/>\n2. \u6781\u901f\u54cd\u5e94&#xff1a;\u9488\u5bf9 CPU \u73af\u5883\u6df1\u5ea6\u4f18\u5316&#xff0c;\u6a21\u578b\u8f7b\u91cf&#xff0c;\u7ffb\u8bd1\u901f\u5ea6\u5feb\u3002<br \/>\n3. \u73af\u5883\u7a33\u5b9a&#xff1a;\u5df2\u9501\u5b9a Transformers 4.35.2 \u4e0e Numpy 1.23.5 \u7684\u9ec4\u91d1\u517c\u5bb9\u7248\u672c&#xff0c;\u62d2\u7edd\u62a5\u9519\u3002<br \/>\n4. \u667a\u80fd\u89e3\u6790&#xff1a;\u5185\u7f6e\u589e\u5f3a\u7248\u7ed3\u679c\u89e3\u6790\u5668&#xff0c;\u80fd\u591f\u81ea\u52a8\u8bc6\u522b\u5e76\u63d0\u53d6\u4e0d\u540c\u683c\u5f0f\u7684\u6a21\u578b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<hr \/>\n<h3>&#x1f9e9; \u6280\u672f\u67b6\u6784\u89e3\u6790&#xff1a;\u8f7b\u91cf\u80cc\u540e\u7684\u5de5\u7a0b\u8bbe\u8ba1<\/h3>\n<h4>1. \u6a21\u578b\u9009\u578b\u903b\u8f91&#xff1a;\u4e3a\u4ec0\u4e48\u9009\u62e9 CSANMT&#xff1f;<\/h4>\n<p>CSANMT \u662f\u963f\u91cc\u5df4\u5df4\u8fbe\u6469\u9662\u63a8\u51fa\u7684\u4e00\u79cd\u9762\u5411\u5bf9\u8bdd\u5f0f\u7ffb\u8bd1\u4efb\u52a1\u4f18\u5316\u7684\u795e\u7ecf\u673a\u5668\u7ffb\u8bd1\u6a21\u578b\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528 Self-Attention \u673a\u5236\u66ff\u4ee3 RNN \u7ed3\u6784&#xff0c;\u907f\u514d\u957f\u5e8f\u5217\u8bad\u7ec3\u4e2d\u7684\u68af\u5ea6\u6d88\u5931\u95ee\u9898&#xff1b;<\/li>\n<li>\u5f15\u5165 \u4e0a\u4e0b\u6587\u611f\u77e5\u6a21\u5757&#xff0c;\u63d0\u5347\u53e5\u5b50\u8fde\u8d2f\u6027\u548c\u8bed\u4e49\u4e00\u81f4\u6027&#xff1b;<\/li>\n<li>\u53c2\u6570\u91cf\u63a7\u5236\u5728 \u7ea6 8700 \u4e07&#xff0c;\u8fdc\u5c0f\u4e8e\u4e3b\u6d41\u5927\u6a21\u578b&#xff08;\u5982 T5-Large \u8d85\u8fc7 7 \u4ebf&#xff09;&#xff0c;\u9002\u5408\u8f7b\u91cf\u5316\u90e8\u7f72\u3002<\/li>\n<\/ul>\n<p>\u5c3d\u7ba1\u53c2\u6570\u89c4\u6a21\u8f83\u5c0f&#xff0c;\u4f46\u5728\u4e2d\u82f1\u7ffb\u8bd1\u4efb\u52a1\u4e0a&#xff0c;CSANMT \u5728 BLEU \u6307\u6807\u4e0a\u4ecd\u80fd\u8fbe\u5230 28.6&#043;&#xff0c;\u63a5\u8fd1\u90e8\u5206\u5546\u7528\u7cfb\u7edf\u7684\u6c34\u5e73&#xff0c;\u5c24\u5176\u64c5\u957f\u5904\u7406\u53e3\u8bed\u5316\u8868\u8fbe\u548c\u65e5\u5e38\u4ea4\u6d41\u6587\u672c\u3002<\/p>\n<p>from modelscope.pipelines import pipeline<br \/>\nfrom modelscope.utils.constant import Tasks<\/p>\n<p># \u521d\u59cb\u5316\u7ffb\u8bd1\u7ba1\u9053<br \/>\ntranslator &#061; pipeline(<br \/>\n    task&#061;Tasks.machine_translation,<br \/>\n    model&#061;&#039;damo\/nlp_csanmt_translation_zh2en&#039;,<br \/>\n    device&#061;&#039;cpu&#039;  # \u660e\u786e\u6307\u5b9a\u4f7f\u7528 CPU<br \/>\n)<\/p>\n<p>\u8be5\u4ee3\u7801\u7247\u6bb5\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7 ModelScope \u5feb\u901f\u52a0\u8f7d CSANMT \u6a21\u578b&#xff0c;\u5e76\u5f3a\u5236\u8fd0\u884c\u4e8e CPU \u4e0a\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4f7f\u5f97\u5373\u4f7f\u6ca1\u6709 GPU \u652f\u6301\u7684\u670d\u52a1\u5668\u4e5f\u80fd\u5b8c\u6210\u63a8\u7406\u4efb\u52a1\u3002<\/p>\n<hr \/>\n<h4>2. \u540e\u7aef\u670d\u52a1\u8bbe\u8ba1&#xff1a;Flask \u5982\u4f55\u652f\u6491 WebUI \u4e0e API \u53cc\u6a21\u5f0f<\/h4>\n<p>\u4e3a\u4e86\u517c\u987e\u7528\u6237\u4f53\u9a8c\u548c\u96c6\u6210\u7075\u6d3b\u6027&#xff0c;\u7cfb\u7edf\u91c7\u7528 Flask &#043; RESTful API &#043; Jinja2 \u6a21\u677f\u5f15\u64ce \u7684\u4e09\u5c42\u540e\u7aef\u67b6\u6784&#xff1a;<\/p>\n<p>| \u7ec4\u4ef6 | \u529f\u80fd |<br \/>\n|&#8212;&#8212;|&#8212;&#8212;|<br \/>\n| Flask \u4e3b\u670d\u52a1 | \u5904\u7406 HTTP \u8bf7\u6c42&#xff0c;\u534f\u8c03\u524d\u540e\u7aef\u901a\u4fe1 |<br \/>\n| \/translate API \u7aef\u70b9 | \u63d0\u4f9b JSON \u63a5\u53e3&#xff0c;\u4f9b\u5916\u90e8\u7a0b\u5e8f\u8c03\u7528 |<br \/>\n| WebUI \u9875\u9762\u6e32\u67d3 | \u8fd4\u56de\u53cc\u680f HTML \u754c\u9762&#xff0c;\u652f\u6301\u5b9e\u65f6\u4ea4\u4e92 |<\/p>\n<p>\u4ee5\u4e0b\u662f\u6838\u5fc3\u670d\u52a1\u542f\u52a8\u811a\u672c\u7684\u5173\u952e\u90e8\u5206&#xff1a;<\/p>\n<p>from flask import Flask, request, jsonify, render_template<br \/>\nimport json<\/p>\n<p>app &#061; Flask(__name__)<\/p>\n<p>&#064;app.route(&#039;\/&#039;)<br \/>\ndef index():<br \/>\n    return render_template(&#039;index.html&#039;)  # \u53cc\u680f\u754c\u9762\u6a21\u677f<\/p>\n<p>&#064;app.route(&#039;\/api\/translate&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef api_translate():<br \/>\n    data &#061; request.get_json()<br \/>\n    text &#061; data.get(&#039;text&#039;, &#039;&#039;)<\/p>\n<p>    try:<br \/>\n        result &#061; translator(text)<br \/>\n        translated_text &#061; result[&#039;translation&#039;]<br \/>\n        return jsonify({&#039;success&#039;: True, &#039;result&#039;: translated_text})<br \/>\n    except Exception as e:<br \/>\n        return jsonify({&#039;success&#039;: False, &#039;error&#039;: str(e)}), 500<\/p>\n<p>&#064;app.route(&#039;\/web\/translate&#039;, methods&#061;[&#039;POST&#039;])<br \/>\ndef web_translate():<br \/>\n    text &#061; request.form.get(&#039;input_text&#039;)<br \/>\n    if not text.strip():<br \/>\n        return render_template(&#039;index.html&#039;, input_text&#061;text, output_text&#061;&#039;&#039;)<\/p>\n<p>    result &#061; translator(text)<br \/>\n    output &#061; result[&#039;translation&#039;]<br \/>\n    return render_template(&#039;index.html&#039;, input_text&#061;text, output_text&#061;output)<\/p>\n<p>&#x1f4cc; \u5de5\u7a0b\u63d0\u793a&#xff1a;\/api\/translate \u7528\u4e8e\u7b2c\u4e09\u65b9\u7cfb\u7edf\u96c6\u6210&#xff1b;\/web\/translate \u5219\u670d\u52a1\u4e8e\u524d\u7aef\u9875\u9762\u63d0\u4ea4&#xff0c;\u4e24\u8005\u5171\u4eab\u540c\u4e00\u6a21\u578b\u5b9e\u4f8b\u4ee5\u8282\u7701\u5185\u5b58\u3002<\/p>\n<hr \/>\n<h4>3. \u6027\u80fd\u4f18\u5316\u7b56\u7565&#xff1a;\u5982\u4f55\u8ba9 CPU \u8dd1\u5f97\u66f4\u5feb\u66f4\u7a33<\/h4>\n<h5>&#xff08;1&#xff09;\u4f9d\u8d56\u7248\u672c\u9501\u5b9a&#xff1a;\u544a\u522b\u201cImportError\u201d<\/h5>\n<p>Python \u751f\u6001\u4e2d\u56e0\u5305\u7248\u672c\u51b2\u7a81\u5bfc\u81f4\u670d\u52a1\u5d29\u6e83\u7684\u95ee\u9898\u5c61\u89c1\u4e0d\u9c9c\u3002\u4e3a\u6b64&#xff0c;\u6211\u4eec\u5728 requirements.txt \u4e2d\u660e\u786e\u9501\u5b9a\u4e86\u5173\u952e\u7ec4\u4ef6\u7248\u672c&#xff1a;<\/p>\n<p>transformers&#061;&#061;4.35.2<br \/>\nnumpy&#061;&#061;1.23.5<br \/>\ntorch&#061;&#061;1.13.1&#043;cpu<br \/>\nsentencepiece&#061;&#061;0.1.99<br \/>\nmodelscope&#061;&#061;1.11.0<br \/>\nFlask&#061;&#061;2.3.3<\/p>\n<p>\u8fd9\u4e9b\u7ec4\u5408\u7ecf\u8fc7\u5b9e\u6d4b\u9a8c\u8bc1&#xff0c;\u5728 x86_64 \u67b6\u6784\u7684 Ubuntu\/CentOS \u7cfb\u7edf\u4e0a\u5747\u53ef\u987a\u5229\u5b89\u88c5\u4e14\u65e0\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<h5>&#xff08;2&#xff09;\u6a21\u578b\u7f13\u5b58\u9884\u52a0\u8f7d&#xff1a;\u51cf\u5c11\u9996\u6b21\u8bf7\u6c42\u5ef6\u8fdf<\/h5>\n<p>\u901a\u8fc7\u5728 Flask \u5e94\u7528\u521d\u59cb\u5316\u9636\u6bb5\u63d0\u524d\u52a0\u8f7d\u6a21\u578b&#xff0c;\u907f\u514d\u7528\u6237\u9996\u6b21\u8bbf\u95ee\u65f6\u51fa\u73b0\u957f\u65f6\u95f4\u7b49\u5f85&#xff1a;<\/p>\n<p># app.py<br \/>\ndef create_app():<br \/>\n    app &#061; Flask(__name__)<\/p>\n<p>    # \u5168\u5c40\u6a21\u578b\u5b9e\u4f8b&#xff08;\u5355\u4f8b&#xff09;<br \/>\n    with app.app_context():<br \/>\n        global translator<br \/>\n        translator &#061; pipeline(<br \/>\n            task&#061;Tasks.machine_translation,<br \/>\n            model&#061;&#039;damo\/nlp_csanmt_translation_zh2en&#039;,<br \/>\n            device&#061;&#039;cpu&#039;<br \/>\n        )<br \/>\n    return app<\/p>\n<p>\u6b64\u8bbe\u8ba1\u5c06\u5e73\u5747\u9996\u8bf7\u6c42\u5ef6\u8fdf\u4ece 8~12\u79d2 \u964d\u4f4e\u81f3 1.5\u79d2\u4ee5\u5185\u3002<\/p>\n<h5>&#xff08;3&#xff09;\u8f93\u5165\u957f\u5ea6\u9650\u5236\u4e0e\u5206\u6bb5\u5904\u7406<\/h5>\n<p>\u7531\u4e8e Transformer \u7c7b\u6a21\u578b\u5bf9\u957f\u6587\u672c\u5b58\u5728\u663e\u5b58\u538b\u529b&#xff08;\u5373\u4f7f\u662f CPU \u8fd0\u884c&#xff09;&#xff0c;\u6211\u4eec\u8bbe\u5b9a\u4e86\u6700\u5927\u8f93\u5165\u957f\u5ea6\u4e3a 512\u5b57\u7b26&#xff0c;\u5e76\u5bf9\u8d85\u957f\u6587\u672c\u8fdb\u884c\u667a\u80fd\u5207\u5206&#xff1a;<\/p>\n<p>def split_long_text(text, max_len&#061;500):<br \/>\n    sentences &#061; re.split(r&#039;(?&lt;&#061;[\u3002&#xff01;&#xff1f;.!?])\\\\s*&#039;, text)<br \/>\n    chunks &#061; []<br \/>\n    current_chunk &#061; &#034;&#034;<\/p>\n<p>    for sent in sentences:<br \/>\n        if len(current_chunk) &#043; len(sent) &lt;&#061; max_len:<br \/>\n            current_chunk &#043;&#061; sent &#043; &#034; &#034;<br \/>\n        else:<br \/>\n            if current_chunk:<br \/>\n                chunks.append(current_chunk.strip())<br \/>\n            current_chunk &#061; sent &#043; &#034; &#034;<\/p>\n<p>    if current_chunk:<br \/>\n        chunks.append(current_chunk.strip())<\/p>\n<p>    return chunks<\/p>\n<p>\u8be5\u51fd\u6570\u786e\u4fdd\u6bcf\u6bb5\u8f93\u5165\u4e0d\u4f1a\u8d85\u51fa\u6a21\u578b\u5904\u7406\u80fd\u529b&#xff0c;\u540c\u65f6\u4fdd\u7559\u53e5\u610f\u5b8c\u6574\u6027\u3002<\/p>\n<hr \/>\n<h3>&#x1f680; \u4f7f\u7528\u8bf4\u660e<\/h3>\n<h4>\u90e8\u7f72\u4e0e\u8fd0\u884c\u6d41\u7a0b<\/h4>\n<li>\u62c9\u53d6\u955c\u50cf\u5e76\u542f\u52a8\u5bb9\u5668<\/li>\n<p>docker run -p 5000:5000 your-image-name:latest<\/p>\n<li>\u8bbf\u95ee WebUI<\/li>\n<li>\u955c\u50cf\u542f\u52a8\u540e&#xff0c;\u70b9\u51fb\u5e73\u53f0\u63d0\u4f9b\u7684 HTTP \u8bbf\u95ee\u6309\u94ae&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/&lt;your-host&gt;:5000&#xff1b;<\/li>\n<li>\n<p>\u8fdb\u5165\u53cc\u680f\u7ffb\u8bd1\u754c\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f00\u59cb\u7ffb\u8bd1<\/p>\n<\/li>\n<li>\u5728\u5de6\u4fa7\u6587\u672c\u6846\u8f93\u5165\u60f3\u8981\u7ffb\u8bd1\u7684\u4e2d\u6587\u5185\u5bb9&#xff1b;<\/li>\n<li>\u70b9\u51fb \u201c\u7acb\u5373\u7ffb\u8bd1\u201d \u6309\u94ae&#xff1b;<\/li>\n<li>\u53f3\u4fa7\u5c06\u5b9e\u65f6\u663e\u793a\u5730\u9053\u7684\u82f1\u6587\u8bd1\u6587\u3002<\/li>\n<p><img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113122633-696639f998079.png\" \/><\/p>\n<hr \/>\n<h4>API \u63a5\u53e3\u8c03\u7528\u793a\u4f8b&#xff08;Python&#xff09;<\/h4>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u7ed5\u8fc7 WebUI&#xff0c;\u76f4\u63a5\u901a\u8fc7 API \u96c6\u6210\u5230\u81ea\u5df1\u7684\u7cfb\u7edf\u4e2d&#xff1a;<\/p>\n<p>import requests<\/p>\n<p>url &#061; &#034;http:\/\/localhost:5000\/api\/translate&#034;<br \/>\nheaders &#061; {&#034;Content-Type&#034;: &#034;application\/json&#034;}<\/p>\n<p>payload &#061; {<br \/>\n    &#034;text&#034;: &#034;\u4eca\u5929\u5929\u6c14\u5f88\u597d&#xff0c;\u9002\u5408\u51fa\u53bb\u6563\u6b65\u3002&#034;<br \/>\n}<\/p>\n<p>response &#061; requests.post(url, json&#061;payload, headers&#061;headers)<br \/>\nif response.status_code &#061;&#061; 200:<br \/>\n    result &#061; response.json()<br \/>\n    print(&#034;Translation:&#034;, result[&#039;result&#039;])<br \/>\nelse:<br \/>\n    print(&#034;Error:&#034;, response.text)<\/p>\n<p>\u8fd4\u56de\u793a\u4f8b&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;success&#034;: true,<br \/>\n  &#034;result&#034;: &#034;The weather is nice today, perfect for a walk outside.&#034;<br \/>\n}<\/p>\n<p>\u2705 \u5efa\u8bae\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u6dfb\u52a0 JWT \u8ba4\u8bc1\u6216 IP \u767d\u540d\u5355\u673a\u5236&#xff0c;\u9632\u6b62\u672a\u6388\u6743\u8c03\u7528\u3002<\/p>\n<hr \/>\n<h3>\u2696\ufe0f \u5b9e\u8df5\u5bf9\u6bd4&#xff1a;\u8f7b\u91cf\u7248 vs \u5927\u6a21\u578b\u7ffb\u8bd1\u65b9\u6848<\/h3>\n<p>| \u5bf9\u6bd4\u7ef4\u5ea6 | \u672c\u8f7b\u91cf\u7ea7\u65b9\u6848 | \u4e3b\u6d41\u5927\u6a21\u578b\u65b9\u6848&#xff08;\u5982 T5-XXL&#xff09; |<br \/>\n|&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;|<br \/>\n| \u6a21\u578b\u5927\u5c0f | ~300MB | &gt;5GB |<br \/>\n| \u5185\u5b58\u5360\u7528 | &lt;1.5GB | &gt;8GB |<br \/>\n| \u662f\u5426\u9700\u8981 GPU | \u274c \u4e0d\u9700\u8981&#xff08;\u7eafCPU\u8fd0\u884c&#xff09; | \u2705 \u5fc5\u987b\u914d\u5907GPU |<br \/>\n| \u9996\u6b21\u54cd\u5e94\u65f6\u95f4 | ~1.5\u79d2 | ~6\u79d2&#xff08;\u542b\u52a0\u8f7d\u65f6\u95f4&#xff09; |<br \/>\n| \u6301\u7eed\u541e\u5410\u80fd\u529b | \u652f\u6301\u5e76\u53d13~5\u8bf7\u6c42 | \u5355\u5361\u4ec5\u652f\u63011~2\u5e76\u53d1 |<br \/>\n| \u5b89\u88c5\u590d\u6742\u5ea6 | Docker\u4e00\u952e\u90e8\u7f72 | \u9700\u7f16\u8bd1\u73af\u5883&#043;\u9a71\u52a8\u914d\u7f6e |<br \/>\n| \u9002\u7528\u573a\u666f | \u5c0f\u578b\u5e94\u7528\u3001\u8fb9\u7f18\u8bbe\u5907\u3001\u6559\u5b66\u6f14\u793a | \u9ad8\u6027\u80fd\u8ba1\u7b97\u4e2d\u5fc3\u3001\u4f01\u4e1a\u7ea7\u670d\u52a1 |<\/p>\n<p>&#x1f4cc; \u51b3\u7b56\u5efa\u8bae&#xff1a;\u5982\u679c\u4f60\u7684\u9700\u6c42\u662f\u201c\u5feb\u901f\u4e0a\u7ebf &#043; \u6210\u672c\u53ef\u63a7 &#043; \u8d28\u91cf\u5c1a\u53ef\u201d&#xff0c;\u90a3\u4e48\u8f7b\u91cf\u7ea7\u65b9\u6848\u662f\u66f4\u4f18\u89e3&#xff1b;\u82e5\u8ffd\u6c42\u6781\u81f4\u7ffb\u8bd1\u8d28\u91cf\u4e14\u5177\u5907\u786c\u4ef6\u6761\u4ef6&#xff0c;\u5219\u53ef\u8003\u8651\u5927\u6a21\u578b\u5fae\u8c03\u65b9\u6848\u3002<\/p>\n<hr \/>\n<h3>&#x1f50d; \u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848&#xff08;FAQ&#xff09;<\/h3>\n<h4>Q1&#xff1a;\u80fd\u5426\u652f\u6301\u82f1\u6587\u8f6c\u4e2d\u6587&#xff1f;<\/h4>\n<p>\u76ee\u524d\u6a21\u578b\u4ec5\u652f\u6301 zh\u2192en \u65b9\u5411\u3002\u82e5\u9700\u53cd\u5411\u7ffb\u8bd1&#xff0c;\u8bf7\u5355\u72ec\u90e8\u7f72 nlp_csanmt_translation_en2zh \u6a21\u578b\u3002<\/p>\n<h4>Q2&#xff1a;\u7ffb\u8bd1\u7ed3\u679c\u5076\u5c14\u51fa\u73b0\u4e71\u7801\u6216\u622a\u65ad&#xff1f;<\/h4>\n<p>\u8fd9\u662f\u7531\u4e8e\u8f93\u5165\u6587\u672c\u8d85\u8fc7\u6a21\u578b\u6700\u5927\u957f\u5ea6\u6240\u81f4\u3002\u5efa\u8bae\u542f\u7528\u5206\u6bb5\u5904\u7406\u903b\u8f91&#xff0c;\u6216\u5c06\u539f\u6587\u6309\u6bb5\u843d\u62c6\u5206\u540e\u9010\u6761\u7ffb\u8bd1\u3002<\/p>\n<h4>Q3&#xff1a;\u5982\u4f55\u63d0\u5347\u7ffb\u8bd1\u901f\u5ea6&#xff1f;<\/h4>\n<ul>\n<li>\u786e\u4fdd\u670d\u52a1\u5668\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u540e\u53f0\u8fdb\u7a0b&#xff1b;<\/li>\n<li>\u4f7f\u7528 SSD \u5b58\u50a8\u52a0\u901f\u6a21\u578b\u6587\u4ef6\u8bfb\u53d6&#xff1b;<\/li>\n<li>\u82e5\u5141\u8bb8\u591a\u7ebf\u7a0b&#xff0c;\u53ef\u5728 Gunicorn \u4e0b\u90e8\u7f72\u591a\u4e2a Worker \u5b9e\u4f8b\u3002<\/li>\n<\/ul>\n<h4>Q4&#xff1a;\u662f\u5426\u652f\u6301\u6279\u91cf\u7ffb\u8bd1&#xff1f;<\/h4>\n<p>\u53ef\u901a\u8fc7\u5faa\u73af\u8c03\u7528 API \u5b9e\u73b0\u3002\u672a\u6765\u7248\u672c\u8ba1\u5212\u5f15\u5165 \/batch-translate \u6279\u91cf\u63a5\u53e3\u3002<\/p>\n<hr \/>\n<h3>&#x1f3af; \u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<li>\n<p>\u5408\u7406\u8bbe\u7f6e\u8d85\u65f6\u9608\u503c<br \/>\n   \u5728\u8c03\u7528 API \u65f6&#xff0c;\u5efa\u8bae\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\u4e3a 10\u79d2\u4ee5\u4e0a&#xff0c;\u4ee5\u9632\u7f51\u7edc\u6ce2\u52a8\u6216\u6a21\u578b\u52a0\u8f7d\u5ef6\u8fdf\u3002<\/p>\n<\/li>\n<li>\n<p>\u589e\u52a0\u7f13\u5b58\u5c42\u63d0\u5347\u6548\u7387<br \/>\n   \u5bf9\u5e38\u89c1\u77ed\u8bed&#xff08;\u5982\u4ea7\u54c1\u540d\u79f0\u3001\u56fa\u5b9a\u8bdd\u672f&#xff09;\u5efa\u7acb Redis \u7f13\u5b58&#xff0c;\u907f\u514d\u91cd\u590d\u7ffb\u8bd1\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u76d1\u63a7\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5<br \/>\n   \u4f7f\u7528 htop \u6216 psutil \u76d1\u63a7\u5185\u5b58\u4e0e CPU \u5360\u7528&#xff0c;\u53ca\u65f6\u53d1\u73b0\u6f5c\u5728\u74f6\u9888\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u8bb0\u5f55\u4e0e\u9519\u8bef\u8ffd\u8e2a<br \/>\n   \u6dfb\u52a0\u65e5\u5fd7\u4e2d\u95f4\u4ef6&#xff0c;\u8bb0\u5f55\u6bcf\u6b21\u7ffb\u8bd1\u8bf7\u6c42\u7684\u5185\u5bb9\u4e0e\u8017\u65f6&#xff0c;\u4fbf\u4e8e\u540e\u671f\u5206\u6790\u4f18\u5316\u3002<\/p>\n<\/li>\n<hr \/>\n<h3>&#x1f3c1; \u603b\u7ed3&#xff1a;\u8f7b\u4e0d\u662f\u59a5\u534f&#xff0c;\u800c\u662f\u7cbe\u51c6\u5b9a\u4f4d\u7684\u7ed3\u679c<\/h3>\n<p>\u5728 AI \u5e94\u7528\u65e5\u76ca\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u80fd\u4e0d\u80fd\u7528\u201d\u5f80\u5f80\u6bd4\u201c\u662f\u4e0d\u662f\u6700\u5f3a\u201d\u66f4\u91cd\u8981\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u8f7b\u91cf\u7ea7\u4e2d\u82f1\u7ffb\u8bd1\u670d\u52a1&#xff0c;\u901a\u8fc7\u7cbe\u9009\u6a21\u578b\u3001\u7cbe\u7b80\u4f9d\u8d56\u3001\u4f18\u5316\u67b6\u6784&#xff0c;\u6210\u529f\u5b9e\u73b0\u4e86\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u7684\u9ad8\u6548\u8fd0\u884c\u3002<\/p>\n<p>\u5b83\u4e0d\u662f\u4e00\u4e2a\u8bd5\u56fe\u6311\u6218\u9876\u5c16\u6027\u80fd\u7684\u201c\u5168\u80fd\u9009\u624b\u201d&#xff0c;\u800c\u662f\u4e00\u4e2a\u4e13\u6ce8\u4e8e\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u7684\u201c\u5b9e\u7528\u4e3b\u4e49\u8005\u201d\u3002\u65e0\u8bba\u662f\u4e2a\u4eba\u5f00\u53d1\u8005\u5c1d\u8bd5 AI \u7ffb\u8bd1&#xff0c;\u8fd8\u662f\u4e2d\u5c0f\u4f01\u4e1a\u642d\u5efa\u5185\u90e8\u5de5\u5177\u94fe&#xff0c;\u8fd9\u5957\u65b9\u6848\u90fd\u80fd\u63d0\u4f9b\u4e00\u6761\u4f4e\u6210\u672c\u3001\u6613\u7ef4\u62a4\u3001\u53ef\u6269\u5c55\u7684\u6280\u672f\u8def\u5f84\u3002<\/p>\n<p>&#x1f3af; \u6838\u5fc3\u4ef7\u503c\u603b\u7ed3&#xff1a;<br \/>\n&#8211; \u2705 \u8f7b\u91cf&#xff1a;300MB \u6a21\u578b&#xff0c;4GB \u5185\u5b58\u5373\u53ef\u8fd0\u884c<br \/>\n&#8211; \u2705 \u7a33\u5b9a&#xff1a;\u9501\u5b9a\u4f9d\u8d56\u7248\u672c&#xff0c;\u675c\u7edd\u73af\u5883\u62a5\u9519<br \/>\n&#8211; \u2705 \u6613\u7528&#xff1a;\u81ea\u5e26 WebUI &#043; API&#xff0c;\u5f00\u7bb1\u5373\u7528<br \/>\n&#8211; \u2705 \u53ef\u96c6\u6210&#xff1a;\u6807\u51c6 JSON \u63a5\u53e3&#xff0c;\u8f7b\u677e\u5d4c\u5165\u73b0\u6709\u7cfb\u7edf<\/p>\n<p>\u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u80fd\u5728\u666e\u901a VPS \u4e0a\u5b89\u9759\u5de5\u4f5c\u7684\u7ffb\u8bd1\u5f15\u64ce&#xff0c;\u4e0d\u59a8\u8bd5\u8bd5\u8fd9\u4e2a\u65b9\u6848\u2014\u2014\u4e5f\u8bb8\u5b83\u5c31\u662f\u4f60\u9700\u8981\u7684\u90a3\u4e2a\u201c\u521a\u521a\u597d\u201d\u7684\u7b54\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1&#xff1a;\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c<br \/>\n&#x1f310; AI \u667a\u80fd\u4e2d\u82f1\u7ffb\u8bd1\u670d\u52a1 (WebUI  API)<br \/>\n\u4ece\u8d44\u6e90\u6d88\u8017\u5230\u5b9e\u7528\u843d\u5730&#xff1a;\u4e3a\u4f55\u8f7b\u91cf\u5316\u662f\u7ffb\u8bd1\u670d\u52a1\u7684\u5173\u952e<br \/>\n\u5728\u5f53\u524d\u5927\u6a21\u578b\u4e3b\u5bfc\u7684AI\u751f\u6001\u4e2d&#xff0c;\u52a8\u8f84\u6570\u5341GB\u663e\u5b58\u9700\u6c42\u7684\u7ffb\u8bd1\u7cfb\u7edf\u8ba9\u8bb8\u591a\u4e2d\u5c0f\u578b\u9879\u76ee\u671b\u800c\u5374\u6b65\u3002\u5c24\u5176\u5bf9\u4e8e\u90e8\u7f72\u5728\u4f4e\u914d\u4e91\u4e3b\u673a\u3001\u8fb9\u7f18\u8bbe\u5907\u6216\u672c\u5730\u5f00\u53d1\u673a\u4e0a\u7684\u5e94\u7528\u800c\u8a00&#xff0c;\u4e00\u4e2a\u201c\u80fd\u8dd1\u8d77\u6765\u201d\u7684\u7ffb\u8bd1\u670d\u52a1\u8fdc\u6bd4\u201c\u7406\u8bba\u4e0a\u66f4\u5f3a\u201d\u4f46\u65e0\u6cd5\u8fd0\u884c\u7684\u65b9\u6848\u66f4\u5177\u5b9e\u9645\u4ef7\u503c\u3002<br \/>\n\u672c\u9879\u76ee\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e00\u75db\u70b9\u800c\u751f\u2014\u2014\u6211\u4eec\u57fa<\/p>\n","protected":false},"author":2,"featured_media":59417,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-59418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \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\/59418.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1&#xff1a;\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c &#x1f310; AI \u667a\u80fd\u4e2d\u82f1\u7ffb\u8bd1\u670d\u52a1 (WebUI API) \u4ece\u8d44\u6e90\u6d88\u8017\u5230\u5b9e\u7528\u843d\u5730&#xff1a;\u4e3a\u4f55\u8f7b\u91cf\u5316\u662f\u7ffb\u8bd1\u670d\u52a1\u7684\u5173\u952e \u5728\u5f53\u524d\u5927\u6a21\u578b\u4e3b\u5bfc\u7684AI\u751f\u6001\u4e2d&#xff0c;\u52a8\u8f84\u6570\u5341GB\u663e\u5b58\u9700\u6c42\u7684\u7ffb\u8bd1\u7cfb\u7edf\u8ba9\u8bb8\u591a\u4e2d\u5c0f\u578b\u9879\u76ee\u671b\u800c\u5374\u6b65\u3002\u5c24\u5176\u5bf9\u4e8e\u90e8\u7f72\u5728\u4f4e\u914d\u4e91\u4e3b\u673a\u3001\u8fb9\u7f18\u8bbe\u5907\u6216\u672c\u5730\u5f00\u53d1\u673a\u4e0a\u7684\u5e94\u7528\u800c\u8a00&#xff0c;\u4e00\u4e2a\u201c\u80fd\u8dd1\u8d77\u6765\u201d\u7684\u7ffb\u8bd1\u670d\u52a1\u8fdc\u6bd4\u201c\u7406\u8bba\u4e0a\u66f4\u5f3a\u201d\u4f46\u65e0\u6cd5\u8fd0\u884c\u7684\u65b9\u6848\u66f4\u5177\u5b9e\u9645\u4ef7\u503c\u3002 \u672c\u9879\u76ee\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e00\u75db\u70b9\u800c\u751f\u2014\u2014\u6211\u4eec\u57fa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59418.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-13T12:26:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113122633-696639f998079.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59418.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59418.html\",\"name\":\"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-13T12:26:34+00:00\",\"dateModified\":\"2026-01-13T12:26:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59418.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59418.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59418.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c\"}]},{\"@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":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \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\/59418.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1&#xff1a;\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c &#x1f310; AI \u667a\u80fd\u4e2d\u82f1\u7ffb\u8bd1\u670d\u52a1 (WebUI API) \u4ece\u8d44\u6e90\u6d88\u8017\u5230\u5b9e\u7528\u843d\u5730&#xff1a;\u4e3a\u4f55\u8f7b\u91cf\u5316\u662f\u7ffb\u8bd1\u670d\u52a1\u7684\u5173\u952e \u5728\u5f53\u524d\u5927\u6a21\u578b\u4e3b\u5bfc\u7684AI\u751f\u6001\u4e2d&#xff0c;\u52a8\u8f84\u6570\u5341GB\u663e\u5b58\u9700\u6c42\u7684\u7ffb\u8bd1\u7cfb\u7edf\u8ba9\u8bb8\u591a\u4e2d\u5c0f\u578b\u9879\u76ee\u671b\u800c\u5374\u6b65\u3002\u5c24\u5176\u5bf9\u4e8e\u90e8\u7f72\u5728\u4f4e\u914d\u4e91\u4e3b\u673a\u3001\u8fb9\u7f18\u8bbe\u5907\u6216\u672c\u5730\u5f00\u53d1\u673a\u4e0a\u7684\u5e94\u7528\u800c\u8a00&#xff0c;\u4e00\u4e2a\u201c\u80fd\u8dd1\u8d77\u6765\u201d\u7684\u7ffb\u8bd1\u670d\u52a1\u8fdc\u6bd4\u201c\u7406\u8bba\u4e0a\u66f4\u5f3a\u201d\u4f46\u65e0\u6cd5\u8fd0\u884c\u7684\u65b9\u6848\u66f4\u5177\u5b9e\u9645\u4ef7\u503c\u3002 \u672c\u9879\u76ee\u6b63\u662f\u4e3a\u89e3\u51b3\u8fd9\u4e00\u75db\u70b9\u800c\u751f\u2014\u2014\u6211\u4eec\u57fa","og_url":"https:\/\/www.wsisp.com\/helps\/59418.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-13T12:26:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260113122633-696639f998079.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59418.html","url":"https:\/\/www.wsisp.com\/helps\/59418.html","name":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-13T12:26:34+00:00","dateModified":"2026-01-13T12:26:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59418.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59418.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59418.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8f7b\u91cf\u7ea7\u7ffb\u8bd1\u670d\u52a1\uff1a\u5982\u4f55\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u9ad8\u6548\u8fd0\u884c"}]},{"@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\/59418","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=59418"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59418\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59417"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59418"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}