{"id":91460,"date":"2026-08-07T23:14:55","date_gmt":"2026-08-07T15:14:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91460.html"},"modified":"2026-08-07T23:14:55","modified_gmt":"2026-08-07T15:14:55","slug":"llm-%e5%a4%a7%e6%a8%a1%e5%9e%8b%e4%b8%89%e7%a7%8d%e4%b8%bb%e6%b5%81%e6%8e%a5%e5%85%a5%e6%96%b9%e5%bc%8f%e8%af%a6%e8%a7%a3%ef%bc%88api-%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2-sdk%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91460.html","title":{"rendered":"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151447-6a75f667dc741.jpg\" width=\"200\" \/><\/p>\n<p>\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5165\u8bb2\u89e3 <span style=\"color:#a2e043\">LLM \u7684\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f<\/span>\u2014\u2014<span style=\"color:#38d8f0\">API \u63a5\u5165<\/span>\u3001<span style=\"color:#38d8f0\">\u672c\u5730\u90e8\u7f72\u63a5\u5165<\/span>\u3001<span style=\"color:#38d8f0\">SDK \u63a5\u5165<\/span>&#xff0c;\u4ece\u73af\u5883\u51c6\u5907\u5230\u4ee3\u7801\u5b9e\u6218&#xff0c;\u624b\u628a\u624b\u6559\u4f60\u5c06\u5927\u6a21\u578b\u80fd\u529b\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\u3002\u6587\u7ae0\u5305\u542b\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u3001\u4f18\u7f3a\u70b9\u5bf9\u6bd4\u548c\u5e38\u89c1\u95ee\u9898\u5206\u6790&#xff0c;\u52a9\u4f60\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u6700\u5408\u9002\u7684\u63a5\u5165\u65b9\u6848\u3002<\/p>\n<h2 id=\"\u516d\u3001llm-\u7684\u63a5\u5165\u65b9\u5f0f\">\u4e00\u3001LLM \u7684\u63a5\u5165\u65b9\u5f0f<\/h2>\n<p>\u5728\u524d\u9762\u7684\u7ae0\u8282\u4e2d&#xff0c;\u6211\u4eec\u5df2\u7ecf\u7cfb\u7edf\u4e86\u89e3\u4e86\u5927\u8bed\u8a00\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u3001\u6838\u5fc3\u80fd\u529b\u548c\u63d0\u793a\u8bcd\u7f16\u5199\u6280\u5de7\u3002\u90a3\u4e48&#xff0c;\u5982\u4f55\u5c06\u8fd9\u4e9b\u5f3a\u5927\u7684\u80fd\u529b\u771f\u6b63\u63a5\u5165\u5230\u81ea\u5df1\u7684\u9879\u76ee\u6216\u4ea7\u54c1\u4e2d\u5462&#xff1f;<\/p>\n<p>\u76ee\u524d\u4e1a\u754c\u4e3b\u6d41\u7684 LLM \u63a5\u5165\u65b9\u5f0f\u6709\u4e09\u79cd&#xff1a;<\/p>\n<table>\n<tbody>\n<tr>\n<p>\u63a5\u5165\u65b9\u5f0f<\/p>\n<p>\u6280\u672f\u95e8\u69db<\/p>\n<p>\u6210\u672c<\/p>\n<p>\u6570\u636e\u5b89\u5168<\/p>\n<p>\u9002\u7528\u573a\u666f<\/p>\n<\/tr>\n<tr>\n<td>\n<p>API \u63a5\u5165<\/p>\n<\/td>\n<td>\n<p>\u4f4e<\/p>\n<\/td>\n<td>\n<p>\u6309\u91cf\u4ed8\u8d39<\/p>\n<\/td>\n<td>\n<p>\u6570\u636e\u4e0a\u4f20\u81f3\u670d\u52a1\u5546<\/p>\n<\/td>\n<td>\n<p>\u5feb\u901f\u9a8c\u8bc1\u3001\u4e2d\u5c0f\u89c4\u6a21\u5e94\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u672c\u5730\u63a5\u5165<\/p>\n<\/td>\n<td>\n<p>\u9ad8<\/p>\n<\/td>\n<td>\n<p>\u786c\u4ef6\u6295\u5165\u5927<\/p>\n<\/td>\n<td>\n<p>\u5b8c\u5168\u672c\u5730\u53ef\u63a7<\/p>\n<\/td>\n<td>\n<p>\u9690\u79c1\u8981\u6c42\u9ad8\u3001\u5927\u89c4\u6a21\u5e94\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SDK \u63a5\u5165<\/p>\n<\/td>\n<td>\n<p>\u4e2d<\/p>\n<\/td>\n<td>\n<p>\u6309\u9700\u4ed8\u8d39<\/p>\n<\/td>\n<td>\n<p>\u53d6\u51b3\u4e8e SDK \u63d0\u4f9b\u5546<\/p>\n<\/td>\n<td>\n<p>\u79fb\u52a8\u7aef\/\u684c\u9762\u7aef\u5e94\u7528\u96c6\u6210<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u9762\u6211\u4eec\u5c06\u9010\u4e00\u6df1\u5165\u8bb2\u89e3\u6bcf\u79cd\u63a5\u5165\u65b9\u5f0f\u7684\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<h3 id=\"6.1-api-\u63a5\u5165\">1.1 API \u63a5\u5165<\/h3>\n<p>API&#xff08;Application Programming Interface&#xff09;\u63a5\u5165\u662f<span style=\"color:#ff9900\">\u6700\u7b80\u5355<\/span>\u3001<span style=\"color:#ff9900\">\u6700\u5feb\u901f<\/span>\u7684\u65b9\u5f0f&#xff0c;\u9002\u5408\u7edd\u5927\u591a\u6570\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u5feb\u901f\u96c6\u6210\u5927\u6a21\u578b\u80fd\u529b\u3002<\/p>\n<h4 id=\"6.1.1-\u4e3b\u6d41-llm-api-\u6982\u89c8\">1.1.1 \u4e3b\u6d41 LLM API \u6982\u89c8<\/h4>\n<table>\n<tbody>\n<tr>\n<p>\u670d\u52a1\u5546<\/p>\n<p>API \u6587\u6863<\/p>\n<p>\u7279\u70b9<\/p>\n<p>\u8ba1\u8d39\u65b9\u5f0f<\/p>\n<\/tr>\n<tr>\n<td>\n<p>OpenAI<\/p>\n<\/td>\n<td>\n<p>platform.openai.com<\/p>\n<\/td>\n<td>\n<p>\u80fd\u529b\u6700\u5f3a&#xff0c;\u751f\u6001\u6700\u5b8c\u5584<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Anthropic<\/p>\n<\/td>\n<td>\n<p>docs.anthropic.com<\/p>\n<\/td>\n<td>\n<p>\u957f\u4e0a\u4e0b\u6587&#xff0c;\u5b89\u5168\u6027\u9ad8<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u963f\u91cc\u4e91&#xff08;\u901a\u4e49\u5343\u95ee&#xff09;<\/p>\n<\/td>\n<td>\n<p>help.aliyun.com<\/p>\n<\/td>\n<td>\n<p>\u56fd\u5185\u8bbf\u95ee\u7a33\u5b9a&#xff0c;\u4e2d\u6587\u4f18\u5316<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u767e\u5ea6\u667a\u80fd\u4e91&#xff08;\u6587\u5fc3&#xff09;<\/p>\n<\/td>\n<td>\n<p>cloud.baidu.com<\/p>\n<\/td>\n<td>\n<p>\u4e2d\u6587\u7406\u89e3\u5f3a&#xff0c;\u641c\u7d22\u878d\u5408<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DeepSeek<\/p>\n<\/td>\n<td>\n<p>platform.deepseek.com<\/p>\n<\/td>\n<td>\n<p>\u5f00\u6e90\u6a21\u578b&#xff0c;\u6027\u4ef7\u6bd4\u6781\u9ad8<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6708\u4e4b\u6697\u9762&#xff08;Kimi&#xff09;<\/p>\n<\/td>\n<td>\n<p>platform.moonshot.cn<\/p>\n<\/td>\n<td>\n<p>\u8d85\u957f\u4e0a\u4e0b\u6587&#xff0c;\u6587\u6863\u5904\u7406\u5f3a<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8baf\u98de\u661f\u706b<\/p>\n<\/td>\n<td>\n<p>xinghuo.xfyun.cn<\/p>\n<\/td>\n<td>\n<p>\u8bed\u97f3\u80fd\u529b\u5f3a<\/p>\n<\/td>\n<td>\n<p>\u6309 token \u8ba1\u8d39<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u7845\u57fa\u6d41\u52a8 \/ OneAPI<\/p>\n<\/td>\n<td>\n<p>&#8211;<\/p>\n<\/td>\n<td>\n<p>\u7edf\u4e00\u805a\u5408\u63a5\u53e3&#xff0c;\u5207\u6362\u65b9\u4fbf<\/p>\n<\/td>\n<td>\n<p>\u5404\u5e73\u53f0\u539f\u4ef7<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>1.1.2\u4ee5deepseek\u4e3a\u4f8b\u63a5\u5165<\/h4>\n<h5>1.\u7533\u8bf7API Key<\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"738\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151448-6a75f6681e0ab.png\" width=\"1561\" \/><\/p>\n<h5>2.\u67e5\u9605API\u6587\u6863<\/h5>\n<p>\u4e86\u89e3\u8bf7\u6c42\u7684\u7aef\u70b9\u3001\u53c2\u6570&#xff08;\u5982\u6a21\u578b\u540d\u79f0\u3001\u63d0\u793a\u8bcd\u3001\u6e29\u5ea6\u3001\u6700\u5927\u751f\u6210\u957f\u5ea6\u7b49&#xff09;\u548c\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"666\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151448-6a75f66898931.png\" width=\"1563\" \/><\/p>\n<h5>3.\u6784\u5efa HTTP \u8bf7\u6c42<\/h5>\n<p>\u5728\u4f60\u7684\u4ee3\u7801\u4e2d&#xff0c;\u4f7f\u7528 HTTP \u5ba2\u6237\u7aef\u5e93&#xff08;\u5982 Python \u7684 requests&#xff09;\u6784\u5efa\u4e00\u4e2a\u5305\u542b API Key&#xff08;\u901a\u5e38\u5728 Header \u4e2d&#xff09;\u548c\u8bf7\u6c42\u4f53&#xff08;JSON \u683c\u5f0f&#xff0c;\u5305\u542b\u4f60\u7684\u63d0\u793a\u548c\u53c2\u6570&#xff09;\u7684\u8bf7\u6c42\u3002<\/p>\n<h6>1.\u4e0b\u8f7dapifox<\/h6>\n<p>https:\/\/apifox.com\/<\/p>\n<p>\u4e0b\u8f7d\u8fdb\u5165<\/p>\n<p>1\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"591\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151449-6a75f6690eaba.png\" width=\"2502\" \/><\/p>\n<p>2\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"632\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151449-6a75f669963f4.png\" width=\"2559\" \/><\/p>\n<p>3\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"913\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151450-6a75f66a37204.png\" width=\"1908\" \/><\/p>\n<p>https:\/\/api.deepseek.com\/v1\/chat\/completions <\/p>\n<p>4\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"807\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151450-6a75f66ac3949.png\" width=\"1503\" \/><\/p>\n<p>5\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"708\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151451-6a75f66b205b6.png\" width=\"1245\" \/><\/p>\n<p>6\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"568\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151451-6a75f66b69d83.png\" width=\"1527\" \/><\/p>\n<p>7\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1436\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151451-6a75f66ba6524.png\" width=\"2092\" \/><\/p>\n<h3 id=\"6.2-\u672c\u5730\u63a5\u5165\">1.2 \u672c\u5730\u63a5\u5165<\/h3>\n<p>\u5927\u6a21\u578b\u672c\u5730\u90e8\u7f72&#xff0c;\u8fd9\u79cd\u65b9\u5f0f\u5c31\u662f\u5c06<span style=\"color:#fe2c24\">\u5f00\u6e90<\/span>\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b&#xff08;\u5982 Llama\u3001ChatGLM\u3001Qwen \u7b49&#xff09;<span style=\"color:#38d8f0\">\u90e8\u7f72\u5728\u4f60\u81ea\u5df1\u7684\u786c\u4ef6\u73af\u5883<\/span>&#xff08;\u672c\u5730\u670d\u52a1\u5668\u6216\u79c1\u6709\u4e91&#xff09;\u4e2d\u3002\u6838\u5fc3\u6982\u5ff5\u5c31\u662f&#xff0c;\u5c06\u4e0b\u8f7d\u6a21\u578b\u7684\u6587\u4ef6&#xff08;\u6743\u91cd\u548c\u914d\u7f6e\u6587\u4ef6&#xff09;&#xff0c;\u4f7f\u7528\u4e13\u95e8\u7684\u63a8\u7406\u6846\u67b6\u5728\u672c\u5730\u670d\u52a1\u5668\u6216 GPU \u4e0a\u52a0\u8f7d\u5e76\u8fd0\u884c\u6a21\u578b&#xff0c;\u7136\u540e\u901a\u8fc7\u7c7b\u4f3c API \u7684\u65b9\u5f0f\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<p>\u5178\u578b\u6d41\u7a0b\u662f&#xff1a;<\/p>\n<li>\u83b7\u53d6\u6a21\u578b&#xff1a;\u4ece Hugging Face&#xff08;\u56fd\u5916&#xff09;\u3001\u9b54\u642d\u793e\u533a&#xff08;\u56fd\u5185&#xff09;\u7b49\u5e73\u53f0\u4e0b\u8f7d\u5f00\u6e90\u6a21\u578b\u7684\u6743\u91cd\u3002<\/li>\n<li>\u51c6\u5907\u73af\u5883&#xff1a;\u914d\u7f6e\u5177\u6709\u8db3\u591f\u663e\u5b58&#xff08;\u5982 NVIDIA GPU&#xff09;\u7684\u670d\u52a1\u5668&#xff0c;\u5b89\u88c5\u5fc5\u8981\u7684\u9a71\u52a8\u548c\u63a8\u7406\u6846\u67b6\u3002<\/li>\n<li>\u9009\u62e9\u63a8\u7406\u6846\u67b6&#xff1a;\u4f7f\u7528\u4e13\u4e3a\u751f\u4ea7\u73af\u5883\u8bbe\u8ba1\u7684\u6846\u67b6\u6765\u90e8\u7f72\u6a21\u578b&#xff0c;\u4f8b\u5982&#xff1a;\n<ul>\n<li>vLLM&#xff1a;\u7279\u522b\u6ce8\u91cd\u9ad8\u541e\u5410\u91cf\u7684\u63a8\u7406\u670d\u52a1&#xff0c;\u6027\u80fd\u6781\u4f73\u3002<\/li>\n<li>TGI&#xff1a;Hugging Face \u63a8\u51fa\u7684\u63a8\u7406\u6846\u67b6&#xff0c;\u529f\u80fd\u5168\u9762\u3002<\/li>\n<li>Ollama&#xff1a;\u975e\u5e38\u7528\u6237\u53cb\u597d&#xff0c;\u53ef\u4ee5\u4e00\u952e\u62c9\u53d6\u548c\u8fd0\u884c\u6a21\u578b&#xff0c;\u9002\u5408\u5feb\u901f\u5165\u95e8\u548c\u672c\u5730\u5f00\u53d1\u3002<\/li>\n<li>LM Studio&#xff1a;\u63d0\u4f9b\u56fe\u5f62\u5316\u754c\u9762&#xff0c;\u8ba9\u672c\u5730\u8fd0\u884c\u6a21\u578b\u50cf\u4f7f\u7528\u8f6f\u4ef6\u4e00\u6837\u7b80\u5355\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u542f\u52a8\u670d\u52a1\u5e76\u8c03\u7528&#xff1a;\u6846\u67b6\u4f1a\u542f\u52a8\u4e00\u4e2a\u672c\u5730 API \u670d\u52a1\u5668&#xff08;\u5982 http:\/\/localhost:8000&#xff09;&#xff0c;\u4f60\u53ef\u4ee5\u50cf\u8c03\u7528\u4e91\u7aef API \u4e00\u6837\u5411\u8fd9\u4e2a\u672c\u5730\u5730\u5740\u53d1\u9001\u8bf7\u6c42\u3002<\/li>\n<p>\u4ee5 Ollama \u4e3a\u4f8b&#xff0c;\u4e0b\u9762\u6211\u4eec\u6765\u6f14\u793a\u4e0b\u5177\u4f53\u8fc7\u7a0b\u3002<\/p>\n<h4 id=\"6.2.1-\u672c\u5730\u90e8\u7f72\u7684\u6838\u5fc3\u6311\u6218\">1.1.1 \u672c\u5730\u90e8\u7f72\u7684\u6838\u5fc3\u6311\u6218<\/h4>\n<table>\n<tbody>\n<tr>\n<p>\u6311\u6218<\/p>\n<p>\u8bf4\u660e<\/p>\n<\/tr>\n<tr>\n<td>\n<p>\u786c\u4ef6\u8981\u6c42<\/p>\n<\/td>\n<td>\n<p>\u5927\u6a21\u578b\u9700\u8981 GPU\/TPU&#xff0c;\u663e\u5b58\u9700\u6c42\u5927<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u663e\u5b58\u8ba1\u7b97<\/p>\n<\/td>\n<td>\n<p>\u6bcf 10 \u4ebf\u53c2\u6570\u7ea6\u9700 2~4GB \u663e\u5b58&#xff08;FP16&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u63a8\u7406\u901f\u5ea6<\/p>\n<\/td>\n<td>\n<p>\u672c\u5730\u786c\u4ef6\u53ef\u80fd\u4e0d\u5982\u4e91\u7aef API \u5feb<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8fd0\u7ef4\u6210\u672c<\/p>\n<\/td>\n<td>\n<p>\u9700\u8981\u81ea\u884c\u7ef4\u62a4\u6a21\u578b\u3001\u6846\u67b6\u3001\u9a71\u52a8<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u663e\u5b58\u9700\u6c42\u53c2\u8003\u8868&#xff1a;<\/p>\n<table>\n<tbody>\n<tr>\n<p>\u6a21\u578b<\/p>\n<p>\u53c2\u6570\u91cf<\/p>\n<p>FP16 \u663e\u5b58<\/p>\n<p>INT8 \u91cf\u5316<\/p>\n<p>INT4 \u91cf\u5316<\/p>\n<\/tr>\n<tr>\n<td>\n<p>Llama 3<\/p>\n<\/td>\n<td>\n<p>8B<\/p>\n<\/td>\n<td>\n<p>~16GB<\/p>\n<\/td>\n<td>\n<p>~8GB<\/p>\n<\/td>\n<td>\n<p>~4GB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Llama 3<\/p>\n<\/td>\n<td>\n<p>70B<\/p>\n<\/td>\n<td>\n<p>~140GB<\/p>\n<\/td>\n<td>\n<p>~70GB<\/p>\n<\/td>\n<td>\n<p>~35GB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Qwen2<\/p>\n<\/td>\n<td>\n<p>7B<\/p>\n<\/td>\n<td>\n<p>~14GB<\/p>\n<\/td>\n<td>\n<p>~7GB<\/p>\n<\/td>\n<td>\n<p>~3.5GB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Qwen2<\/p>\n<\/td>\n<td>\n<p>72B<\/p>\n<\/td>\n<td>\n<p>~144GB<\/p>\n<\/td>\n<td>\n<p>~72GB<\/p>\n<\/td>\n<td>\n<p>~36GB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>DeepSeek<\/p>\n<\/td>\n<td>\n<p>7B<\/p>\n<\/td>\n<td>\n<p>~14GB<\/p>\n<\/td>\n<td>\n<p>~7GB<\/p>\n<\/td>\n<td>\n<p>~3.5GB<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>1.1.2 \u4f7f\u7528 Ollama \u5feb\u901f\u672c\u5730\u90e8\u7f72&#xff08;\u6700\u7b80\u5355&#xff09;<\/h4>\n<p>Ollama \u662f\u76ee\u524d\u6700\u7b80\u5355\u7684\u672c\u5730\u5927\u6a21\u578b\u8fd0\u884c\u5de5\u5177&#xff0c;\u4e00\u884c\u547d\u4ee4\u5373\u53ef\u542f\u52a8&#xff1a;<\/p>\n<h5>1.\u4e0b\u8f7d\u5e76\u5b89\u88c5ollama<\/h5>\n<p>Ollama \u5b98\u2f79: https:\/\/ollama.ai<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"459\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151453-6a75f66d0fee5.png\" width=\"1035\" \/><\/p>\n<\/p>\n<h5>2.\u9a8c\u8bc1<\/h5>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;Ollama \u9ed8\u8ba4\u4f1a\u542f\u52a8\u3002<\/p>\n<p>\u8bbf\u95ee: http:\/\/127.0.0.1:11434<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"103\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151453-6a75f66d467d5.png\" width=\"513\" \/><\/p>\n<h5>3.\u62c9\u53d6\u6a21\u578b<\/h5>\n<p># \u62c9\u53d6\u5e76\u8fd0\u884c\u6a21\u578b<br \/>\nollama run llama3    # \u8fd0\u884c Llama 3 8B<br \/>\nollama run qwen2     # \u8fd0\u884c\u901a\u4e49\u5343\u95ee 2<br \/>\nollama run deepseek-coder  # \u8fd0\u884c DeepSeek Coder<\/p>\n<p># \u5217\u51fa\u5df2\u4e0b\u8f7d\u7684\u6a21\u578b<br \/>\nollama list<\/p>\n<p># API \u65b9\u5f0f\u8c03\u7528\u672c\u5730\u6a21\u578b<br \/>\ncurl http:\/\/localhost:11434\/api\/generate -d &#039;{<br \/>\n  &#034;model&#034;: &#034;llama3&#034;,<br \/>\n  &#034;prompt&#034;: &#034;\u4f60\u597d&#xff0c;\u8bf7\u4ecb\u7ecd\u4e00\u4e0b\u81ea\u5df1&#034;<br \/>\n}&#039; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"144\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151453-6a75f66d520df.png\" width=\"1332\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"315\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151453-6a75f66d6ac43.png\" width=\"1237\" \/><\/p>\n<h5>4.\u8fd0\u884c\u6a21\u578b<\/h5>\n<p>ollama run &#043; \u81ea\u5df1\u62c9\u53d6\u7684\u6a21\u578b\u5b8c\u6574\u540d <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"749\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151453-6a75f66d95e01.png\" width=\"1718\" \/><\/p>\n<h5>5.\u901a\u8fc7\u63a5\u53e3\u8c03\u7528<\/h5>\n<p>curl &#034;http:\/\/127.0.0.1:11434\/api\/chat&#034; \\\\<br \/>\n-d &#039;{<br \/>\n&#034;model&#034;: &#034;deepseek-r1:1.5b&#034;,<br \/>\n&#034;messages&#034;:[<br \/>\n{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u5938\u5938\u6211&#034;}<br \/>\n],<br \/>\n&#034;stream&#034;: false<br \/>\n}&#039; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"791\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151454-6a75f66e25379.png\" width=\"1668\" \/><\/p>\n<h3>1.3 SDK\u63a5\u5165<\/h3>\n<p>\u8fd9\u5e76\u975e\u4e00\u79cd\u72ec\u7acb\u7684\u63a5\u5165\u65b9\u5f0f&#xff0c;\u800c\u662f<span style=\"color:#ff9900\">\u5bf9\u7b2c\u4e00\u79cd API \u63a5\u5165\u7684\u5c01\u88c5\u548c\u7b80\u5316<\/span>\u3002\u6a21\u578b\u63d0\u4f9b\u5546\u901a\u5e38\u4f1a\u53d1\u5e03\u5b98\u65b9\u7f16\u7a0b\u8bed\u8a00 SDK&#xff0c;\u4e3a\u6211\u4eec\u5c01\u88c5\u597d\u4e86\u5e95\u5c42\u7684 HTTP \u8bf7\u6c42\u7ec6\u8282&#xff0c;\u63d0\u4f9b\u4e00\u4e2a\u66f4\u7b26\u5408\u7f16\u7a0b\u4e60\u60ef\u7684\u3001\u8bed\u8a00\u7279\u5b9a\u7684\u51fd\u6570\u5e93\u3002<\/p>\n<p>\u5178\u578b\u6d41\u7a0b&#xff08;\u4ee5 Deepseek\u00a0Python SDK \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>DeepSeek \u7684\u63a5\u53e3\u5b8c\u5168\u517c\u5bb9 OpenAI \u63a5\u53e3\u534f\u8bae&#xff0c;\u65e0\u9700\u5355\u72ec\u5b89\u88c5 DeepSeek \u4e13\u5c5e SDK&#xff0c;\u76f4\u63a5\u4f7f\u7528 openai \u5b98\u65b9 SDK \u5373\u53ef\u8c03\u7528&#xff1a;<\/p>\n<h4>1.3.1 \u5b89\u88c5\u4f9d\u8d56\u5e93<\/h4>\n<p>pip install openai <\/p>\n<h4>1.3.2 \u6253\u5f00\u7f16\u8bd1\u5668\u5efa\u4e00\u4e2apython\u6587\u4ef6<\/h4>\n<h4>1.3.3\u00a0\u53d1\u9001HTTP\u8bf7\u6c42<\/h4>\n<p>\u76f4\u63a5\u590d\u5236\u5230\u6587\u4ef6\u4e2d<\/p>\n<p>from openai import OpenAI<\/p>\n<p>client &#061; OpenAI(<br \/>\n    api_key&#061;&#034;\u4f60\u7684DeepSeek\u5bc6\u94a5&#034;,<br \/>\n    base_url&#061;&#034;https:\/\/api.deepseek.com&#034;  # \u5bf9\u63a5DeepSeek\u63a5\u53e3\u5730\u5740<br \/>\n)<\/p>\n<p>res &#061; client.chat.completions.create(<br \/>\n    model&#061;&#034;deepseek-chat&#034;,  # \u6a21\u578b&#xff1a;deepseek-chat\u901a\u7528\u5bf9\u8bdd \/ deepseek-reasoner\u63a8\u7406\u6a21\u578b<br \/>\n    messages&#061;[{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u4f60\u597d&#034;}]<br \/>\n)<br \/>\nprint(res.choices[0].message.content) <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"304\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151454-6a75f66eb0e38.png\" width=\"1251\" \/><\/p>\n<h2>\u4e8c\u3001\u95ee\u9898\u4e0e\u601d\u8003<\/h2>\n<h3>1. \u4e09\u79cd\u63a5\u5165\u65b9\u5f0f\u5982\u4f55\u9009\u62e9&#xff1f;<\/h3>\n<li>\u770b\u6570\u636e\u654f\u611f\u6027 \u5982\u679c\u6570\u636e\u6781\u5176\u654f\u611f&#xff0c;\u5fc5\u987b\u7559\u5728\u5185\u90e8&#xff0c;\u672c\u5730\u90e8\u7f72\u662f\u552f\u4e00\u9009\u62e9\u3002<\/li>\n<li>\u770b\u6280\u672f\u5b9e\u529b\u548c\u8d44\u6e90 \u5982\u679c\u56e2\u961f\u6ca1\u6709\u5f3a\u5927\u7684 MLops&#xff08;\u673a\u5668\u5b66\u4e60\u8fd0\u7ef4&#xff09;\u80fd\u529b&#xff0c;\u4e5f\u6ca1\u6709\u9884\u7b97\u8d2d\u4e70\u548c\u7ef4\u62a4 GPU \u670d\u52a1\u5668&#xff0c;\u4e91\u7aef API \u662f\u66f4\u5b9e\u9645\u7684\u9009\u62e9\u3002<\/li>\n<li>\u770b\u6210\u672c\u548c\u89c4\u6a21 \u5982\u679c\u5e94\u7528\u89c4\u6a21\u5f88\u5927&#xff0c;\u957f\u671f\u6765\u770b&#xff0c;\u672c\u5730\u90e8\u7f72\u7684\u56fa\u5b9a\u6210\u672c\u53ef\u80fd\u4f4e\u4e8e\u6301\u7eed\u7684 API \u8c03\u7528\u8d39\u7528\u3002\u53cd\u4e4b&#xff0c;\u5c0f\u89c4\u6a21\u5e94\u7528\u7528 API \u66f4\u5212\u7b97\u3002<\/li>\n<li>\u770b\u5b9a\u5236\u9700\u6c42 \u5982\u679c\u53ea\u662f\u4f7f\u7528\u6a21\u578b\u7684\u901a\u7528\u80fd\u529b&#xff0c;\u4e91\u7aef API \u8db3\u591f\u3002\u5982\u679c\u9700\u8981\u7528\u81ea\u5df1\u7684\u6570\u636e\u5fae\u8c03\u6a21\u578b&#xff0c;\u5219\u9700\u8981\u9009\u62e9\u652f\u6301\u5fae\u8c03\u7684 API \u6216\u76f4\u63a5\u672c\u5730\u90e8\u7f72\u3002<\/li>\n<hr \/>\n<h3>2. \u539f\u751f LLM \u65e0\u8bba\u54ea\u79cd\u63a5\u5165\u65b9\u5f0f\u90fd\u5b58\u5728\u9650\u5236&#xff0c;\u539f\u56e0&#xff1a;<\/h3>\n<h4>1. \u8f93\u5165\u957f\u5ea6\u9650\u5236<\/h4>\n<p>\u6240\u6709 LLM \u90fd\u6709\u56fa\u5b9a\u7684\u8f93\u5165\u957f\u5ea6&#xff08;\u5982 4K\u30018K\u3001128K\u3001400K Token&#xff09;\u3002\u6211\u4eec\u65e0\u6cd5\u5c06\u4e00\u672c\u51e0\u767e\u9875\u7684 PDF \u6216\u6574\u4e2a\u516c\u53f8\u77e5\u8bc6\u5e93\u76f4\u63a5\u585e\u7ed9\u6a21\u578b\u3002 \u793a\u4f8b&#xff1a;GPT-5 \u6700\u5927\u62e5\u6709 400000 \u4e0a\u4e0b\u6587\u7a97\u53e3\u5927\u5c0f\u3002<\/p>\n<h4>2. \u7f3a\u4e4f\u79c1\u6709\u77e5\u8bc6<\/h4>\n<p>\u6a21\u578b\u7684\u8bad\u7ec3\u6570\u636e\u6709\u622a\u6b62\u65e5\u671f&#xff0c;\u4e14\u4e0d\u5305\u542b\u6211\u4eec\u7684\u79c1\u4eba\u6570\u636e&#xff08;\u5982\u516c\u53f8\u5185\u90e8\u6587\u6863\u3001\u4e2a\u4eba\u7b14\u8bb0\u7b49&#xff09;\u3002\u8ba9\u5b83\u57fa\u4e8e\u8fd9\u4e9b\u77e5\u8bc6\u56de\u7b54\u95ee\u9898&#xff0c;\u975e\u5e38\u56f0\u96be\u3002\u00a0<\/p>\n<h4>3. \u590d\u6742\u4efb\u52a1\u5904\u7406\u80fd\u529b\u5f31<\/h4>\n<p>\u539f\u751f API \u672c\u8d28\u662f\u4e00\u4e2a\u300c\u4e00\u95ee\u4e00\u7b54\u300d\u7684\u63a5\u53e3\u3002\u5bf9\u4e8e\u9700\u8981\u591a\u4e2a\u6b65\u9aa4\u7684\u590d\u6742\u4efb\u52a1&#xff08;\u5982\u300c\u5206\u6790\u8fd9\u4efd\u8d22\u62a5&#xff0c;\u603b\u7ed3\u8981\u70b9&#xff0c;\u5e76\u751f\u6210\u4e00\u4efd PPT \u5927\u7eb2\u300d&#xff09;&#xff0c;\u9700\u8981\u81ea\u884c\u7f16\u5199\u590d\u6742\u903b\u8f91\u62c6\u89e3\u4efb\u52a1\u3001\u591a\u6b21\u8c03\u7528 API \u5e76\u7ba1\u7406\u4e2d\u95f4\u72b6\u6001\u3002<\/p>\n<h4>4. \u8f93\u51fa\u683c\u5f0f\u4e0d\u53ef\u63a7<\/h4>\n<p>\u867d\u7136\u53ef\u4ee5\u901a\u8fc7\u63d0\u793a\u8bcd\u8981\u6c42\u6a21\u578b\u8f93\u51fa JSON \u6216\u7279\u5b9a\u683c\u5f0f&#xff0c;\u4f46\u6a21\u578b\u4ecd\u53ef\u80fd\u4ea7\u751f\u683c\u5f0f\u9519\u8bef\u6216\u4e0d\u5408\u89c4\u5185\u5bb9&#xff0c;\u9700\u8981\u81ea\u884c\u7f16\u5199\u540e\u5904\u7406\u4ee3\u7801\u6821\u9a8c\u548c\u6e05\u6d17\u3002<\/p>\n<p>\u6587\u672b\u8865\u5145&#xff1a;\u50cf LangChain \u8fd9\u7c7b\u6846\u67b6&#xff0c;\u6b63\u662f\u4e3a\u7cfb\u7edf\u6027\u89e3\u51b3\u4ee5\u4e0a\u95ee\u9898\u800c\u8bde\u751f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5165\u8bb2\u89e3 LLM \u7684\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u2014\u2014API \u63a5\u5165\u3001\u672c\u5730\u90e8\u7f72\u63a5\u5165\u3001SDK \u63a5\u5165&#xff0c;\u4ece\u73af\u5883\u51c6\u5907\u5230\u4ee3\u7801\u5b9e\u6218&#xff0c;\u624b\u628a\u624b\u6559\u4f60\u5c06\u5927\u6a21\u578b\u80fd\u529b\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\u3002\u6587\u7ae0\u5305\u542b\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u3001\u4f18\u7f3a\u70b9\u5bf9\u6bd4\u548c\u5e38\u89c1\u95ee\u9898\u5206\u6790&#xff0c;\u52a9\u4f60\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u6700\u5408\u9002\u7684\u63a5\u5165\u65b9\u6848\u3002 \u4e00\u3001LLM \u7684\u63a5\u5165\u65b9\u5f0f<br \/>\n\u5728\u524d\u9762\u7684\u7ae0\u8282\u4e2d&#xff0c;\u6211\u4eec\u5df2\u7ecf\u7cfb\u7edf\u4e86\u89e3\u4e86\u5927\u8bed\u8a00\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u3001\u6838\u5fc3\u80fd\u529b\u548c\u63d0\u793a\u8bcd\u7f16\u5199\u6280\u5de7\u3002\u90a3\u4e48&#xff0c;\u5982\u4f55\u5c06\u8fd9\u4e9b\u5f3a\u5927\u7684\u80fd\u529b\u771f\u6b63\u63a5\u5165\u5230\u81ea\u5df1\u7684<\/p>\n","protected":false},"author":2,"featured_media":91443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[997,75],"topic":[],"class_list":["post-91460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-langchain","tag-llm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \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\/91460.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5165\u8bb2\u89e3 LLM \u7684\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u2014\u2014API \u63a5\u5165\u3001\u672c\u5730\u90e8\u7f72\u63a5\u5165\u3001SDK \u63a5\u5165&#xff0c;\u4ece\u73af\u5883\u51c6\u5907\u5230\u4ee3\u7801\u5b9e\u6218&#xff0c;\u624b\u628a\u624b\u6559\u4f60\u5c06\u5927\u6a21\u578b\u80fd\u529b\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\u3002\u6587\u7ae0\u5305\u542b\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u3001\u4f18\u7f3a\u70b9\u5bf9\u6bd4\u548c\u5e38\u89c1\u95ee\u9898\u5206\u6790&#xff0c;\u52a9\u4f60\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u6700\u5408\u9002\u7684\u63a5\u5165\u65b9\u6848\u3002 \u4e00\u3001LLM \u7684\u63a5\u5165\u65b9\u5f0f \u5728\u524d\u9762\u7684\u7ae0\u8282\u4e2d&#xff0c;\u6211\u4eec\u5df2\u7ecf\u7cfb\u7edf\u4e86\u89e3\u4e86\u5927\u8bed\u8a00\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u3001\u6838\u5fc3\u80fd\u529b\u548c\u63d0\u793a\u8bcd\u7f16\u5199\u6280\u5de7\u3002\u90a3\u4e48&#xff0c;\u5982\u4f55\u5c06\u8fd9\u4e9b\u5f3a\u5927\u7684\u80fd\u529b\u771f\u6b63\u63a5\u5165\u5230\u81ea\u5df1\u7684\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91460.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-07T15:14:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151447-6a75f667dc741.jpg\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91460.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91460.html\",\"name\":\"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-07T15:14:55+00:00\",\"dateModified\":\"2026-08-07T15:14:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91460.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91460.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91460.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09\"}]},{\"@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":"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \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\/91460.html","og_locale":"zh_CN","og_type":"article","og_title":"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6458\u8981&#xff1a;\u672c\u6587\u6df1\u5165\u8bb2\u89e3 LLM \u7684\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u2014\u2014API \u63a5\u5165\u3001\u672c\u5730\u90e8\u7f72\u63a5\u5165\u3001SDK \u63a5\u5165&#xff0c;\u4ece\u73af\u5883\u51c6\u5907\u5230\u4ee3\u7801\u5b9e\u6218&#xff0c;\u624b\u628a\u624b\u6559\u4f60\u5c06\u5927\u6a21\u578b\u80fd\u529b\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\u3002\u6587\u7ae0\u5305\u542b\u5b8c\u6574\u7684\u4ee3\u7801\u793a\u4f8b\u3001\u4f18\u7f3a\u70b9\u5bf9\u6bd4\u548c\u5e38\u89c1\u95ee\u9898\u5206\u6790&#xff0c;\u52a9\u4f60\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u6700\u5408\u9002\u7684\u63a5\u5165\u65b9\u6848\u3002 \u4e00\u3001LLM \u7684\u63a5\u5165\u65b9\u5f0f \u5728\u524d\u9762\u7684\u7ae0\u8282\u4e2d&#xff0c;\u6211\u4eec\u5df2\u7ecf\u7cfb\u7edf\u4e86\u89e3\u4e86\u5927\u8bed\u8a00\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u3001\u6838\u5fc3\u80fd\u529b\u548c\u63d0\u793a\u8bcd\u7f16\u5199\u6280\u5de7\u3002\u90a3\u4e48&#xff0c;\u5982\u4f55\u5c06\u8fd9\u4e9b\u5f3a\u5927\u7684\u80fd\u529b\u771f\u6b63\u63a5\u5165\u5230\u81ea\u5df1\u7684","og_url":"https:\/\/www.wsisp.com\/helps\/91460.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-07T15:14:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807151447-6a75f667dc741.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/91460.html","url":"https:\/\/www.wsisp.com\/helps\/91460.html","name":"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-07T15:14:55+00:00","dateModified":"2026-08-07T15:14:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91460.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91460.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91460.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LLM \u5927\u6a21\u578b\u4e09\u79cd\u4e3b\u6d41\u63a5\u5165\u65b9\u5f0f\u8be6\u89e3\uff08API \/ \u672c\u5730\u90e8\u7f72 \/ SDK\uff09"}]},{"@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\/91460","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=91460"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91460\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/91443"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91460"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}