{"id":40670,"date":"2025-05-30T07:17:18","date_gmt":"2025-05-29T23:17:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/40670.html"},"modified":"2025-05-30T07:17:18","modified_gmt":"2025-05-29T23:17:18","slug":"%e3%80%90%e5%8d%8e%e4%b8%ba%e5%bc%80%e5%8f%91%e8%80%85%e7%a9%ba%e9%97%b4-x-deepseek%e3%80%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%90%e8%a1%8collama%e5%b9%b6%e5%9c%a8%e6%9c%ac%e5%9c%b0%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/40670.html","title":{"rendered":"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528"},"content":{"rendered":"<h3>\u6587\u7ae0\u6982\u8ff0<\/h3>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 \u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 \u4e2d\u5feb\u901f\u90e8\u7f72\u5e76\u4f7f\u7528 Ollama \u6a21\u578b\u8fd0\u884c\u6846\u67b6&#xff0c;\u5e76\u7ed3\u5408 deepseek-r1 \u6a21\u578b\u8fdb\u884c\u672c\u5730\u6216\u8fdc\u7a0b\u4ea4\u4e92\u63a8\u7406\u3002\u5185\u5bb9\u6db5\u76d6\u73af\u5883\u51c6\u5907\u3001\u6a21\u578b\u914d\u7f6e\u3001\u7f51\u5361\u7ed1\u5b9a\u3001\u5185\u7f51\u7a7f\u900f\u3001API\u8c03\u7528\u7b49\u591a\u4e2a\u73af\u8282&#xff0c;\u9002\u5408\u5e0c\u671b\u5728\u534e\u4e3a\u4e91\u4e0a\u5feb\u901f\u642d\u5efa\u672c\u5730\u7c7b\u5927\u6a21\u578b\u63a8\u7406\u73af\u5883\u7684\u5f00\u53d1\u8005\u53c2\u8003\u4f7f\u7528\u3002<\/p>\n<hr \/>\n<h3>\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u4ecb\u7ecd<\/h3>\n<p>\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4&#xff0c;\u662f\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6253\u9020\u7684\u4e13\u5c5e\u5f00\u53d1\u73af\u5883&#xff0c;\u81f4\u529b\u4e8e\u4e3a\u6bcf\u4f4d\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u53f0\u4e91\u4e3b\u673a\u3001\u4e00\u5957\u5f00\u53d1\u5de5\u5177\u548c\u4e91\u4e0a\u5b58\u50a8\u7a7a\u95f4\u3002\u8be5\u5e73\u53f0\u6c47\u805a\u4e86\u6607\u817e\u3001\u9e3f\u8499\u3001\u9cb2\u9e4f\u3001GaussDB\u3001\u6b27\u62c9\u7b49\u534e\u4e3a\u6838\u5fc3\u6280\u672f\u751f\u6001\u7684\u5f00\u53d1\u8d44\u6e90&#xff0c;\u5e76\u914d\u5957\u63d0\u4f9b\u6848\u4f8b\u6307\u5bfc&#xff0c;\u652f\u6301\u5f00\u53d1\u8005\u4ece\u5f00\u53d1\u7f16\u7801\u5230\u8c03\u6d4b\u90e8\u7f72\u7684\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<p>\u4f9d\u6258\u8fd9\u4e00\u5e73\u53f0&#xff0c;\u5f00\u53d1\u8005\u53ef\u5feb\u901f\u6784\u5efa\u548c\u90e8\u7f72 AI \u6a21\u578b\u5e94\u7528&#xff0c;\u5c24\u5176\u9002\u5408\u8fdb\u884c\u7c7b ChatGPT \u7b49\u672c\u5730\u90e8\u7f72\u5b9e\u9a8c&#xff0c;\u4e5f\u975e\u5e38\u9002\u7528\u4e8e LLM&#xff08;\u5927\u8bed\u8a00\u6a21\u578b&#xff09;\u7684\u5fae\u8c03\u3001\u63a8\u7406\u548c\u96c6\u6210\u6d4b\u8bd5\u3002<\/p>\n<hr \/>\n<h3>\u5b89\u88c5 Ollama<\/h3>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsSL<\/span> https:\/\/dtse-mirrors.obs.cn-north4.myhuaweicloud.com\/case\/0035\/install.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">bash<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc0437a.png\" alt=\"image-20250528142205991\" \/><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u5efa\u8bae\u7acb\u5373\u9a8c\u8bc1 Ollama \u662f\u5426\u90e8\u7f72\u6210\u529f&#xff1a;<\/p>\n<p>ollama <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc2efe4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c\u8fd4\u56de\u7248\u672c\u4fe1\u606f&#xff0c;\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<hr \/>\n<h3>\u914d\u7f6e deepseek \u6a21\u578b<\/h3>\n<p>\u6211\u4eec\u4ee5 deepseek-r1:1.5b \u6a21\u578b\u4e3a\u4f8b\u8fdb\u884c\u6f14\u793a&#xff1a;<\/p>\n<p>ollama run deepseek-r1:1.5b<\/p>\n<p>\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u81ea\u52a8\u4ece\u7f51\u7edc\u4e0b\u8f7d\u5bf9\u5e94\u6a21\u578b\u5230\u672c\u5730\u7f13\u5b58\u3002\u6b64\u6a21\u578b\u5177\u5907\u57fa\u7840\u7684\u8bed\u8a00\u7406\u89e3\u80fd\u529b&#xff0c;\u9002\u5408\u7528\u4e8e\u8f7b\u91cf\u7ea7\u63a8\u7406\u6216\u5d4c\u5165\u6d4b\u8bd5\u3002<\/p>\n<h4>\u6a21\u578b\u7248\u672c\u4e0e\u53c2\u6570\u89c4\u683c\u5bf9\u6bd4\u8868<\/h4>\n<table>\n<tr>\u6a21\u578b\u540d\u79f0\u6a21\u578b\u5927\u5c0f\u4e0a\u4e0b\u6587\u957f\u5ea6\u8f93\u5165\u7c7b\u578b<\/tr>\n<tbody>\n<tr>\n<td>deepseek-r1:latest<\/td>\n<td>4.7GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:1.5b<\/td>\n<td>1.1GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:7b latest<\/td>\n<td>4.7GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:8b<\/td>\n<td>4.9GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:14b<\/td>\n<td>9.0GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:32b<\/td>\n<td>20GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:70b<\/td>\n<td>43GB<\/td>\n<td>128K<\/td>\n<td>Text<\/td>\n<\/tr>\n<tr>\n<td>deepseek-r1:671b<\/td>\n<td>404GB<\/td>\n<td>160K<\/td>\n<td>Text<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e9b\u6a21\u578b\u9002\u914d\u4e0d\u540c\u89c4\u6a21\u7684\u670d\u52a1\u5668\u8d44\u6e90&#xff0c;\u4f60\u53ef\u4ee5\u53c2\u8003\u4e0b\u8868\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b\u90e8\u7f72&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u578b\u78c1\u76d8\u5927\u5c0f\u6a21\u578b\u53c2\u6570\u91cf&#xff08;\u4f30\u8ba1&#xff09;\u63a8\u8350\u663e\u5b58&#xff08;GPU&#xff09;\u63a8\u8350\u5185\u5b58&#xff08;CPU-only&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>1.1GB<\/td>\n<td>1.5B<\/td>\n<td>\u2265 4GB<\/td>\n<td>\u2265 6GB<\/td>\n<\/tr>\n<tr>\n<td>4.7GB<\/td>\n<td>7B<\/td>\n<td>\u2265 8GB<\/td>\n<td>\u2265 12GB<\/td>\n<\/tr>\n<tr>\n<td>9GB<\/td>\n<td>14B<\/td>\n<td>\u2265 16GB<\/td>\n<td>\u2265 20GB<\/td>\n<\/tr>\n<tr>\n<td>20GB<\/td>\n<td>32B<\/td>\n<td>\u2265 24GB<\/td>\n<td>\u2265 32GB<\/td>\n<\/tr>\n<tr>\n<td>43GB<\/td>\n<td>70B<\/td>\n<td>\u2265 48GB<\/td>\n<td>\u2265 64GB<\/td>\n<\/tr>\n<tr>\n<td>404GB<\/td>\n<td>671B<\/td>\n<td>\u591a\u5361\u5206\u5e03\u5f0f GPU<\/td>\n<td>\u4e0d\u63a8\u8350 CPU \u8fd0\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5efa\u8bae\u5f00\u53d1\u8005\u6839\u636e\u4e91\u4e3b\u673a\u6240\u5206\u914d\u7684 CPU \u5185\u5b58\u6216\u662f\u5426\u62e5\u6709 GPU \u8d44\u6e90\u6765\u5224\u65ad\u6a21\u578b\u9009\u62e9&#xff0c;\u4e0d\u8981\u8f7b\u6613\u52a0\u8f7d\u8d85\u8fc7\u81ea\u5df1\u786c\u4ef6\u627f\u8f7d\u80fd\u529b\u7684\u6a21\u578b&#xff0c;\u907f\u514d\u7cfb\u7edf\u5361\u987f\u6216\u5d29\u6e83\u3002<\/p>\n<p>\u8fd0\u884c\u6a21\u578b\u540e\u5373\u53ef\u8fdb\u5165 CLI \u4ea4\u4e92\u754c\u9762&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc3d258.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>ollama \u7ed1\u5b9a\u7f51\u5361<\/h3>\n<p>\u4e3a\u4e86\u4f7f\u672c\u5730\u7f51\u7edc\u53ef\u4ee5\u8bbf\u95ee\u90e8\u7f72\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u7684 Ollama \u670d\u52a1&#xff0c;\u9700\u8981\u7ed1\u5b9a\u76d1\u542c\u5168\u90e8\u7f51\u5361&#xff08;0.0.0.0&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">killall<\/span> ollama<br \/>\n<span class=\"token assign-left variable\">OLLAMA_HOST<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.0<\/span>.0.0 ollama serve<\/p>\n<p>\u82e5\u62a5\u9519&#xff1a;Error: listen tcp 0.0.0.0:11434: bind: address already in use&#xff0c;\u8bf4\u660e\u7aef\u53e3\u672a\u91ca\u653e\u3002<\/p>\n<h4>\u89e3\u51b3\u6b65\u9aa4&#xff1a;<\/h4>\n<li>\u67e5\u8be2\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tulpn<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token number\">11434<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc6779c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u5f3a\u5236\u7ec8\u6b62\u5bf9\u5e94\u8fdb\u7a0b&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">kill<\/span> <span class=\"token parameter variable\">-9<\/span> <span class=\"token operator\">&lt;<\/span>PID<span class=\"token operator\">&gt;<\/span><\/p>\n<li>\u82e5\u4ecd\u7136\u5f02\u5e38&#xff0c;\u786e\u8ba4\u662f\u5426\u5b58\u5728\u50f5\u5c38\u8fdb\u7a0b&#xff1a;<\/li>\n<p><span class=\"token function\">ps<\/span> aux <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> ollama<\/p>\n<li>\u518d\u6b21\u5c1d\u8bd5\u542f\u52a8\u670d\u52a1&#xff1a;<\/li>\n<p><span class=\"token assign-left variable\">OLLAMA_HOST<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.0<\/span>.0.0 ollama serve<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc7c21d.png\" alt=\"image-20250528160709990\" \/><\/p>\n<hr \/>\n<h3>\u5185\u7f51\u7a7f\u900f<\/h3>\n<p>\u7531\u4e8e\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u63d0\u4f9b\u7684\u662f Cloud IDE \u73af\u5883&#xff0c;\u9ed8\u8ba4\u4e0d\u63d0\u4f9b\u516c\u7f51 IP&#xff0c;\u56e0\u6b64\u9700\u8981\u501f\u52a9\u5185\u7f51\u7a7f\u900f\u5de5\u5177\u5c06\u4e91\u73af\u5883\u6620\u5c04\u5230\u516c\u7f51&#xff0c;\u672c\u6587\u9009\u7528 ngrok\u3002 \u5f53\u7136\u5982\u679c\u4f60\u7684\u662f\u6b63\u5e38\u7684\u670d\u52a1\u5668&#xff0c;\u5c31\u53ef\u4ee5\u7528\u516c\u7f51ip\u5730\u5740\u6765\u8bbf\u95ee&#xff0c;\u4e0d\u7528\u8fd9\u4e48\u9ebb\u70e6\u4e86\u3002<\/p>\n<h4>\u5de5\u5177\u5b98\u7f51&#xff1a;<\/h4>\n<p>https:\/\/ngrok.com\/<\/p>\n<h4>\u6b65\u9aa4\u4e00&#xff1a;\u6ce8\u518c ngrok \u5e76\u83b7\u53d6 token<\/h4>\n<li>\u6253\u5f00\u5b98\u7f51\u6ce8\u518c\u8d26\u53f7<\/li>\n<li>\u767b\u5f55\u540e\u53f0\u8fdb\u5165 Dashboard&#xff0c;\u590d\u5236 Authtoken<\/li>\n<h4>\u6b65\u9aa4\u4e8c&#xff1a;\u4e0b\u8f7d\u4e0e\u914d\u7f6e<\/h4>\n<p><span class=\"token function\">wget<\/span> https:\/\/bin.equinox.io\/c\/bNyj1mQVY4c\/ngrok-v3-stable-linux-amd64.tgz<br \/>\n<span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-xzf<\/span> ngrok-v3-stable-linux-amd64.tgz<br \/>\n.\/ngrok version  <span class=\"token comment\"># \u786e\u8ba4\u7248\u672c<\/span><\/p>\n<p>\u6dfb\u52a0\u8eab\u4efd\u4ee4\u724c&#xff1a;<\/p>\n<p>.\/ngrok config add-authtoken <span class=\"token operator\">&lt;<\/span>YOUR_AUTHTOKEN<span class=\"token operator\">&gt;<\/span><\/p>\n<p>\u542f\u52a8\u4ee3\u7406&#xff1a;<\/p>\n<p>.\/ngrok http <span class=\"token number\">11434<\/span><\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u6240\u793a&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231717-6838eafd00d0c.png\" alt=\"image-20250528160615535\" \/><\/p>\n<p>\u9875\u9762\u4e2d\u7ed9\u51fa\u7684 https:\/\/xxxx.ngrok-free.app \u5373\u4e3a\u4f60\u4e34\u65f6\u751f\u6210\u7684\u516c\u7f51\u8bbf\u95ee\u5730\u5740&#xff0c;\u53ef\u7528\u4e8e\u8bbf\u95ee Ollama \u63a5\u53e3\u3002<\/p>\n<hr \/>\n<h3>\u5728\u672c\u5730\u4f7f\u7528<\/h3>\n<p>Ollama \u6a21\u578b\u670d\u52a1\u9ed8\u8ba4\u517c\u5bb9 OpenAI API \u534f\u8bae&#xff0c;\u56e0\u6b64\u53ef\u4ee5\u901a\u8fc7 OpenAI SDK \u8c03\u7528\u90e8\u7f72\u5728\u8fdc\u7aef&#xff08;\u5185\u7f51\u7a7f\u900f\u540e&#xff09;\u7684\u6a21\u578b&#xff0c;\u4fbf\u4e8e\u5f00\u53d1\u96c6\u6210\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528 OpenAI Python SDK \u7684\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> openai <span class=\"token keyword\">import<\/span> OpenAI<\/p>\n<p>client <span class=\"token operator\">&#061;<\/span> OpenAI<span class=\"token punctuation\">(<\/span><br \/>\n    base_url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/&lt;\u4f60\u81ea\u5df1\u7684\u4e34\u65f6\u57df\u540d&gt;.ngrok-free.app\/v1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    api_key<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;ollama&#034;<\/span>  <span class=\"token comment\"># Ollama\u4e0d\u9700\u8981\u771f\u5b9eAPI Key&#xff0c;\u586b\u5199\u4efb\u610f\u5185\u5bb9<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>response <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>chat<span class=\"token punctuation\">.<\/span>completions<span class=\"token punctuation\">.<\/span>create<span class=\"token punctuation\">(<\/span><br \/>\n    model<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;deepseek-r1:1.5b&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    messages<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;role&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;system&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;content&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u4f60\u662f\u4e00\u4e2a\u6709\u5e2e\u52a9\u7684AI\u52a9\u624b&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;role&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;user&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;content&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u8bb2\u4e00\u4e0b\u534e\u4e3a\u4e91\u4e3b\u673a&#034;<\/span><span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    temperature<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.7<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>choices<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>message<span class=\"token punctuation\">.<\/span>content<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u7531\u4e8e\u4f7f\u7528\u4e86\u5185\u7f51\u7a7f\u900f\u670d\u52a1&#xff0c;\u901a\u4fe1\u8d28\u91cf\u8f83\u5dee\u65f6\u53ef\u80fd\u51fa\u73b0\u54cd\u5e94\u7f13\u6162\u7684\u60c5\u51b5&#xff0c;\u5efa\u8bae\u5c06\u5176\u4f5c\u4e3a\u4e34\u65f6\u6d4b\u8bd5\u6216\u8c03\u8bd5\u7528\u9014\u4f7f\u7528\u3002<\/p>\n<p>\u4e0b\u56fe\u662f\u8fd0\u884c\u7ed3\u679c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231717-6838eafd3b343.png\" alt=\"image-20250528164833954\" \/><\/p>\n<hr \/>\n<h3>\u66f4\u591a\u53c2\u8003<\/h3>\n<ul>\n<li>\u5f00\u53d1\u8005\u7a7a\u95f4\u5b98\u7f51<\/li>\n<li>\u5f00\u53d1\u8005\u7a7a\u95f4\u6d3b\u52a8\u4e13\u9898<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e38\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5feb\u901f\u90e8\u7f72Ollama\u6a21\u578b\u6846\u67b6\u5e76\u8fd0\u884cdeepseek-r1\u6a21\u578b\u7684\u65b9\u6cd5\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u7b80\u4ecb\u3001Ollama\u5b89\u88c5\u6b65\u9aa4\u3001deepseek\u6a21\u578b\u914d\u7f6e\u4e0e\u53c2\u6570\u9009\u62e9\u3001\u7f51\u7edc\u7ed1\u5b9a\u548c\u5185\u7f51\u7a7f\u900f\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u4ee5\u53ca\u4f7f\u7528OpenAI SDK\u8fdb\u884cAPI\u8c03\u7528\u7684\u793a\u4f8b\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u64cd\u4f5c\u6307\u5357\u548c\u53c2\u6570\u5bf9\u7167\u8868\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u534e\u4e3a\u4e91\u4e0a\u5feb\u901f\u642d\u5efa\u672c\u5730\u5927\u6a21\u578b\u63a8\u7406\u73af\u5883\uff0c\u9002\u7528\u4e8eAI\u6a21\u578b\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u96c6\u6210\u5e94\u7528\u573a\u666f\u3002<\/p>\n","protected":false},"author":2,"featured_media":40663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[67,575,43,44],"topic":[],"class_list":["post-40670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-67","tag-575","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \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\/40670.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e38\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5feb\u901f\u90e8\u7f72Ollama\u6a21\u578b\u6846\u67b6\u5e76\u8fd0\u884cdeepseek-r1\u6a21\u578b\u7684\u65b9\u6cd5\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u7b80\u4ecb\u3001Ollama\u5b89\u88c5\u6b65\u9aa4\u3001deepseek\u6a21\u578b\u914d\u7f6e\u4e0e\u53c2\u6570\u9009\u62e9\u3001\u7f51\u7edc\u7ed1\u5b9a\u548c\u5185\u7f51\u7a7f\u900f\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u4ee5\u53ca\u4f7f\u7528OpenAI SDK\u8fdb\u884cAPI\u8c03\u7528\u7684\u793a\u4f8b\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u64cd\u4f5c\u6307\u5357\u548c\u53c2\u6570\u5bf9\u7167\u8868\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u534e\u4e3a\u4e91\u4e0a\u5feb\u901f\u642d\u5efa\u672c\u5730\u5927\u6a21\u578b\u63a8\u7406\u73af\u5883\uff0c\u9002\u7528\u4e8eAI\u6a21\u578b\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u96c6\u6210\u5e94\u7528\u573a\u666f\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/40670.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-29T23:17:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc0437a.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=\"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\/40670.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/40670.html\",\"name\":\"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-29T23:17:18+00:00\",\"dateModified\":\"2025-05-29T23:17:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/40670.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/40670.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40670.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528\"}]},{\"@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":"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \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\/40670.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e38\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u5feb\u901f\u90e8\u7f72Ollama\u6a21\u578b\u6846\u67b6\u5e76\u8fd0\u884cdeepseek-r1\u6a21\u578b\u7684\u65b9\u6cd5\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u7b80\u4ecb\u3001Ollama\u5b89\u88c5\u6b65\u9aa4\u3001deepseek\u6a21\u578b\u914d\u7f6e\u4e0e\u53c2\u6570\u9009\u62e9\u3001\u7f51\u7edc\u7ed1\u5b9a\u548c\u5185\u7f51\u7a7f\u900f\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u4ee5\u53ca\u4f7f\u7528OpenAI SDK\u8fdb\u884cAPI\u8c03\u7528\u7684\u793a\u4f8b\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u64cd\u4f5c\u6307\u5357\u548c\u53c2\u6570\u5bf9\u7167\u8868\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u534e\u4e3a\u4e91\u4e0a\u5feb\u901f\u642d\u5efa\u672c\u5730\u5927\u6a21\u578b\u63a8\u7406\u73af\u5883\uff0c\u9002\u7528\u4e8eAI\u6a21\u578b\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u96c6\u6210\u5e94\u7528\u573a\u666f\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/40670.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-29T23:17:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529231716-6838eafc0437a.png"}],"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\/40670.html","url":"https:\/\/www.wsisp.com\/helps\/40670.html","name":"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-29T23:17:18+00:00","dateModified":"2025-05-29T23:17:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/40670.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/40670.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/40670.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4 x DeepSeek\u3011\u670d\u52a1\u5668\u8fd0\u884cOllama\u5e76\u5728\u672c\u5730\u8c03\u7528"}]},{"@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\/40670","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=40670"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40670\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/40663"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=40670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=40670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=40670"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=40670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}