{"id":16657,"date":"2025-04-18T23:07:18","date_gmt":"2025-04-18T15:07:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/16657.html"},"modified":"2025-04-18T23:07:18","modified_gmt":"2025-04-18T15:07:18","slug":"%e5%88%86%e4%ba%ab%e5%87%a0%e4%b8%aadeepseek%e5%a4%87%e7%94%a8%e7%bd%91%e7%ab%99%ef%bc%8c%e5%86%8d%e4%b9%9f%e4%b8%8d%e6%80%95%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%b9%81%e5%bf%99%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/16657.html","title":{"rendered":"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>1 \u524d\u8a00<\/li>\n<li>2 \u7f51\u9875\u5bf9\u8bdd\u5907\u9009\u7f51\u7ad9<\/li>\n<li>\n<ul>\n<li>2.1 DeepSeek\u5b98\u7f51<\/li>\n<li>2.2 \u817e\u8baf\u5143\u5b9d<\/li>\n<li>2.3 \u8d85\u7b97\u4e92\u8054\u7f51\u5e73\u53f0<\/li>\n<\/ul>\n<\/li>\n<li>3 api\u5907\u9009\u7f51\u7ad9<\/li>\n<li>\n<ul>\n<li>3.1 \u9996\u9009DeepSeek\u5b98\u7f51<\/li>\n<li>3.2 \u963f\u91cc\u7075\u79ef\u5e73\u53f0<\/li>\n<li>3.2 \u7845\u57fa\u6d41\u52a8<\/li>\n<\/ul>\n<\/li>\n<li>4 \u603b\u7ed3<\/li>\n<\/ul>\n<h2>1 \u524d\u8a00<\/h2>\n<p>\u2003\u2003\u5199\u5728\u6700\u524d\u9762\u3002\u6211\u4e4b\u524d\u5199\u7684\u672c\u5730\u90e8\u7f72\u5927\u6a21\u578b\u3001\u672c\u5730\u90e8\u7f72DeepSeek\u7684\u6559\u7a0b\u88ab\u522b\u4eba\u62ff\u53bb\u5728\u6dd8\u5b9d\u4e0a\u5356\u94b1\u53bb\u4e86&#xff0c;\u800c\u4e14\u6211\u5728\u6559\u7a0b\u91cc\u7528\u5230\u7684\u5404\u79cd\u5b89\u88c5\u5305&#xff0c;\u4e0a\u4f20\u5230\u767e\u5ea6\u7f51\u76d8\u4e4b\u540e\u88ab\u4e0b\u8f7d\u4e86\u8d85\u8fc7\u4e00\u4e07\u516d\u5343\u6b21\u3002\u968f\u4fbf\u6574\u7406\u4e00\u4e0b\u7f51\u4e0a\u7684\u4e1c\u897f\u5c31\u80fd\u62ff\u53bb\u5356\u94b1&#xff0c;\u5bf9\u6b64\u4f5c\u8005\u8868\u793a\u5f88\u4e0d\u723d&#xff0c;\u800c\u4e14\u4e70\u7684\u4eba\u8fd8\u633a\u591a&#xff0c;\u4f5c\u8005\u66f4\u4e0d\u723d\u4e86\u3002\u56e0\u4e3a\u672c\u6765\u6211\u7684\u90a3\u4e9b\u6559\u7a0b\u5c31\u662f\u514d\u8d39\u7684&#xff0c;\u8bfb\u8005\u53ea\u9700\u8981\u8ddf\u7740\u8ba4\u771f\u505a\u4e0b\u53bb&#xff0c;\u5c31\u4e00\u5b9a\u80fd\u81ea\u5df1\u5728\u672c\u5730\u90e8\u7f72\u7684&#xff0c;\u5e0c\u671b\u5927\u5bb6\u4e0d\u8981\u518d\u5f53\u97ed\u83dc\u4e86\u3002\u5177\u4f53\u6559\u7a0b\u53ef\u4ee5\u8bbf\u95ee\u4e0b\u9762\u4e24\u7bc7\u6587\u7ae0&#xff1a;<\/p>\n<p>Windows&#xff08;Win10\u3001Win11&#xff09;\u672c\u5730\u90e8\u7f72\u5f00\u6e90\u5927\u6a21\u578b\u4fdd\u59c6\u7ea7\u6559\u7a0b<\/p>\n<p>\u514d\u8d39&#xff01;&#xff01;&#xff01;Windows(Win10\u3001Win11)\u672c\u5730\u90e8\u7f72DeepSeek\u6559\u7a0b<\/p>\n<h2>2 \u7f51\u9875\u5bf9\u8bdd\u5907\u9009\u7f51\u7ad9<\/h2>\n<p>\u2003\u2003\u8fdb\u5165\u6b63\u9898\u3002DeepSeek\u8fd9\u4e00\u6ce2\u5b9e\u5728\u592a\u731b\u4e86&#xff0c;\u53ef\u4ee5\u8bf4\u76f4\u63a5\u5f15\u7206\u4e86\u56fd\u5185AI\u7684\u5168\u9762\u5e94\u7528\u3002\u4ee5\u524dChatGPT\u706b\u7684\u65f6\u5019&#xff0c;\u5f53\u65f6\u5f88\u591a\u4eba\u5c31\u662f\u4e86\u89e3\u4e86\u4e00\u4e0b&#xff0c;\u540e\u7eed\u5e76\u6ca1\u6709\u505a\u6df1\u5165\u7684\u7814\u7a76\u3002\u73b0\u5728\u4e0d\u4e00\u6837\u4e86&#xff0c;\u73b0\u5728\u6709\u7528DeepSeek\u505a\u5404\u79cd\u5de5\u4f5c\u7684&#xff0c;\u6bd4\u5982\u5199word\u3001\u505appt\u3001\u7b97\u547d\u3001\u7406\u8d22\u3001\u79c1\u4eba\u5065\u5eb7\u987e\u95ee\u3001\u516c\u4f17\u53f7\u6587\u7ae0\u3001\u63d2\u753b\u8bbe\u8ba1\u8f85\u52a9\u7b49\u7b49\u3002<\/p>\n<p>\u2003\u2003\u4f46\u662f\u8fd9\u4e9b\u6240\u6709\u5e94\u7528\u7b2c\u4e00\u6b65\u8fd8\u662f\u548cDeepSeek\u5bf9\u8bdd&#xff0c;\u800c\u5bf9\u8bdd\u5c31\u4f1a\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9\u95ee\u9898\u3002\u8fd9\u4e3b\u8981\u662f\u56e0\u4e3aDeepSeek\u5b98\u7f51\u76ee\u524d\u8bbf\u95ee\u91cf\u592a\u5927\u4e86\u5bfc\u81f4\u7684&#xff0c;\u670d\u52a1\u5668\u5fd9\u4e0d\u8fc7\u6765\u4e86\u3002\u8fd9\u5176\u4e2d\u4e0d\u4ec5\u6709\u666e\u901a\u7528\u6237\u7684\u8bbf\u95ee&#xff0c;\u8fd8\u6709\u7a0b\u5e8f\u5458\u4f7f\u7528\u4ee3\u7801\u8bbf\u95ee&#xff0c;\u8fd8\u6709\u4e00\u4e9b\u4e0d\u6cd5\u5206\u5b50\u6bd4\u5982\u8001\u7f8e\u7684\u8bbf\u95ee\u3002<\/p>\n<p>\u2003\u2003\u56e0\u6b64\u4eca\u5929\u4f5c\u8005\u5c31\u63a8\u8350\u51e0\u4e2a\u540c\u6837\u63a5\u5165\u4e86DeepSeek\u6ee1\u8840\u7248\u7684\u7f51\u7ad9\u3002\u9996\u5148\u662f\u7f51\u9875\u4e0a\u76f4\u63a5\u5bf9\u8bdd\u7684\u7f51\u7ad9&#xff1a;<\/p>\n<h3>2.1 DeepSeek\u5b98\u7f51<\/h3>\n<p>\u2003\u2003\u9996\u9009\u5f53\u7136\u662fDeepSeek\u5b98\u7f51\u4e86&#xff0c;\u867d\u7136\u6709\u65f6\u5019\u4f1a\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9&#xff0c;\u4f46\u662f\u5927\u591a\u65f6\u5019\u53ef\u7528\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150710-68026a9eb12df.png\" alt=\"\" \/><\/p>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/chat.deepseek.com\/<\/p>\n<h3>2.2 \u817e\u8baf\u5143\u5b9d<\/h3>\n<p>\u2003\u2003\u817e\u8baf\u5143\u5b9d\u662f\u817e\u8baf\u81ea\u5bb6\u7684\u5927\u6a21\u578b\u5e73\u53f0&#xff0c;\u9ed8\u8ba4\u662f\u4f7f\u7528\u7684\u817e\u8baf\u7684\u6df7\u5143\u5927\u6a21\u578b&#xff0c;\u6700\u8fd1\u521a\u4e0a\u7ebf\u4e86DeepSeek R1&#xff0c;\u5bf9\u8bdd\u7684\u65f6\u5019\u53ef\u4ee5\u5207\u6362\u6a21\u578b&#xff0c;\u4e5f\u652f\u6301\u8054\u7f51\u641c\u7d22&#xff0c;\u800c\u4e14\u901f\u5ea6\u548c\u5b98\u7f51\u4e0d\u76f8\u4e0a\u4e0b&#xff0c;\u5fc5\u987b\u70b9\u8d5e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150711-68026a9fd3025.png\" alt=\"\" \/><\/p>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/yuanbao.tencent.com\/chat<\/p>\n<h3>2.3 \u8d85\u7b97\u4e92\u8054\u7f51\u5e73\u53f0<\/h3>\n<p>\u2003\u2003\u8d85\u7b97\u4e92\u8054\u7f51\u5e73\u53f0\u4e0a\u6709\u591a\u4e2aDeepSeek\u6a21\u578b\u53ef\u9009&#xff0c;\u6ee1\u8840\u7248&#xff0c;\u4e5f\u5c31\u662f671B\u53c2\u6570\u7684\u5927\u6a21\u578b\u4e5f\u662f\u6700\u8fd1\u624d\u4e0a\u7684&#xff0c;\u540c\u6837\u4e5f\u652f\u6301\u8054\u7f51\u641c\u7d22&#xff0c;\u901f\u5ea6\u7a0d\u5fae\u6709\u70b9\u6162&#xff0c;\u56e0\u4e3a\u662f\u5907\u9009\u65b9\u6848&#xff0c;\u51d1\u5408\u7528\u5427\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150713-68026aa11a72d.png\" alt=\"\" \/><\/p>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/chat.scnet.cn\/#\/chat<\/p>\n<h2>3 api\u5907\u9009\u7f51\u7ad9<\/h2>\n<p>\u2003\u2003\u63a5\u4e0b\u6765\u6211\u4eec\u63a8\u8350\u51e0\u4e2a\u652f\u6301\u4ee3\u7801\u4e2d\u8c03\u7528&#xff0c;\u4e5f\u5c31\u662fapi\u8c03\u7528\u7684DeepSeek\u5e73\u53f0\u3002<\/p>\n<h3>3.1 \u9996\u9009DeepSeek\u5b98\u7f51<\/h3>\n<p>\u8c03\u7528\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\"># Please install OpenAI SDK first: &#096;pip3 install openai&#096;<\/span><\/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>api_key<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;&lt;DeepSeek API Key&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span> base_url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/api.deepseek.com&#034;<\/span><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-chat&#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;You are a helpful assistant&#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;Hello&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    stream<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/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>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/api-docs.deepseek.com\/zh-cn\/<\/p>\n<h3>3.2 \u963f\u91cc\u7075\u79ef\u5e73\u53f0<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150714-68026aa25ab09.png\" alt=\"\" \/><\/p>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/dashscope.console.aliyun.com\/model<\/p>\n<p>\u963f\u91cc\u7075\u79ef\u5e73\u53f0\u4e0a\u4e0d\u4ec5\u652f\u6301\u81ea\u5bb6\u7684qwen\u7cfb\u5217\u6a21\u578b&#xff0c;\u4e5f\u652f\u6301\u5404\u79cd\u5f00\u6e90\u5927\u6a21\u578b&#xff0c;\u5982\u56fe\u6240\u793a&#xff0c;\u5404\u79cd\u5f00\u6e90\u5927\u6a21\u578b\u90fd\u5728\u652f\u6301\u5217\u8868\u5185\u3002<\/p>\n<p>\u8c03\u7528\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> os<br \/>\n<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    <span class=\"token comment\"># \u82e5\u6ca1\u6709\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u8bf7\u7528\u767e\u70bcAPI Key\u5c06\u4e0b\u884c\u66ff\u6362\u4e3a&#xff1a;api_key&#061;&#034;sk-xxx&#034;,<\/span><br \/>\n    api_key<span class=\"token operator\">&#061;<\/span>os<span class=\"token punctuation\">.<\/span>getenv<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;DASHSCOPE_API_KEY&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\"># \u5982\u4f55\u83b7\u53d6API Key&#xff1a;https:\/\/help.aliyun.com\/zh\/model-studio\/developer-reference\/get-api-key<\/span><br \/>\n    base_url<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;https:\/\/dashscope.aliyuncs.com\/compatible-mode\/v1&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>completion <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&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\"># \u6b64\u5904\u4ee5 deepseek-r1 \u4e3a\u4f8b&#xff0c;\u53ef\u6309\u9700\u66f4\u6362\u6a21\u578b\u540d\u79f0\u3002<\/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\">&#039;role&#039;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;user&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;content&#039;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;9.9\u548c9.11\u8c01\u5927&#039;<\/span><span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u901a\u8fc7reasoning_content\u5b57\u6bb5\u6253\u5370\u601d\u8003\u8fc7\u7a0b<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u601d\u8003\u8fc7\u7a0b&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>completion<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>reasoning_content<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u901a\u8fc7content\u5b57\u6bb5\u6253\u5370\u6700\u7ec8\u7b54\u6848<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6700\u7ec8\u7b54\u6848&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>completion<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<h3>3.2 \u7845\u57fa\u6d41\u52a8<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150715-68026aa3adbca.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150716-68026aa48c205.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8bbf\u95ee\u5730\u5740&#xff1a;https:\/\/siliconflow.cn\/zh-cn\/models<\/p>\n<p>\u8fd9\u662f\u7845\u57fa\u6d41\u52a8\u548c\u534e\u4e3a\u4e91\u8054\u5408\u63a8\u51fa\u7684\u5e73\u53f0&#xff0c;\u4e5f\u652f\u6301\u5927\u591a\u6570\u5f00\u6e90\u6a21\u578b\u3002<\/p>\n<p>\u8c03\u7528\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> requests<\/p>\n<p>url <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;https:\/\/api.siliconflow.cn\/v1\/chat\/completions&#034;<\/span><\/p>\n<p>payload <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;model&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;deepseek-ai\/DeepSeek-R1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;messages&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <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><br \/>\n            <span class=\"token string\">&#034;content&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u4e2d\u56fd\u5927\u6a21\u578b\u884c\u4e1a2025\u5e74\u5c06\u4f1a\u8fce\u6765\u54ea\u4e9b\u673a\u9047\u548c\u6311\u6218&#xff1f;&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;stream&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">False<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;max_tokens&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">512<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;stop&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;null&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;temperature&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">0.7<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;top_p&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">0.7<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;top_k&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">50<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;frequency_penalty&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">0.5<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;n&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;response_format&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;type&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;tools&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string\">&#034;type&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;function&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;function&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token string\">&#034;description&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;&lt;string&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;name&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;&lt;string&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;parameters&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;strict&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">False<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nheaders <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;Authorization&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Bearer &lt;token&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;Content-Type&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;application\/json&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>response <span class=\"token operator\">&#061;<\/span> requests<span class=\"token punctuation\">.<\/span>request<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;POST&#034;<\/span><span class=\"token punctuation\">,<\/span> url<span class=\"token punctuation\">,<\/span> json<span class=\"token operator\">&#061;<\/span>payload<span class=\"token punctuation\">,<\/span> headers<span class=\"token operator\">&#061;<\/span>headers<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>text<span class=\"token punctuation\">)<\/span><\/p>\n<h2>4 \u603b\u7ed3<\/h2>\n<p>\u2003\u2003\u672c\u6587\u63a8\u8350\u4e86\u51e0\u4e2a\u5728\u7f51\u9875\u4e0a\u548cDeepSeek\u5bf9\u8bdd\u7684\u5907\u9009\u7f51\u7ad9&#xff0c;\u4ee5\u53ca\u901a\u8fc7api\u8c03\u7528DeepSeek\u7684\u5907\u9009\u7f51\u7ad9\u3002\u4f5c\u8005\u4e5f\u662f\u5728DeepSeek\u5b98\u7f51\u4f7f\u7528\u65f6\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9\u95ee\u9898\u624d\u60f3\u5230\u7684\u627e\u5907\u9009\u7f51\u7ad9&#xff0c;\u5e0c\u671b\u5bf9\u6709\u540c\u6837\u70e6\u607c\u7684\u540c\u5b66\u6709\u6240\u5e2e\u52a9&#xff0c;\u56de\u89c1~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u63a8\u8350\u4e86\u51e0\u4e2a\u5728\u7f51\u9875\u4e0a\u548cDeepSeek\u5bf9\u8bdd\u7684\u5907\u9009\u7f51\u7ad9\uff0c\u4ee5\u53ca\u901a\u8fc7api\u8c03\u7528DeepSeek\u7684\u5907\u9009\u7f51\u7ad9\u3002\u4f5c\u8005\u4e5f\u662f\u5728DeepSeek\u5b98\u7f51\u4f7f\u7528\u65f6\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9\u95ee\u9898\u624d\u60f3\u5230\u7684\u627e\u5907\u9009\u7f51\u7ad9\uff0c\u5e0c\u671b\u5bf9\u6709\u540c\u6837\u70e6\u607c\u7684\u540c\u5b66\u6709\u6240\u5e2e\u52a9_deepseek\u5907\u7528<\/p>\n","protected":false},"author":2,"featured_media":16651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[128,68,50,1176,112,1179,1177,957,1178],"topic":[],"class_list":["post-16657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-api","tag-deepseek","tag-50","tag-1176","tag-112","tag-1179","tag-1177","tag-957","tag-1178"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \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\/16657.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u63a8\u8350\u4e86\u51e0\u4e2a\u5728\u7f51\u9875\u4e0a\u548cDeepSeek\u5bf9\u8bdd\u7684\u5907\u9009\u7f51\u7ad9\uff0c\u4ee5\u53ca\u901a\u8fc7api\u8c03\u7528DeepSeek\u7684\u5907\u9009\u7f51\u7ad9\u3002\u4f5c\u8005\u4e5f\u662f\u5728DeepSeek\u5b98\u7f51\u4f7f\u7528\u65f6\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9\u95ee\u9898\u624d\u60f3\u5230\u7684\u627e\u5907\u9009\u7f51\u7ad9\uff0c\u5e0c\u671b\u5bf9\u6709\u540c\u6837\u70e6\u607c\u7684\u540c\u5b66\u6709\u6240\u5e2e\u52a9_deepseek\u5907\u7528\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/16657.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:07:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150710-68026a9eb12df.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\/16657.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/16657.html\",\"name\":\"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:07:18+00:00\",\"dateModified\":\"2025-04-18T15:07:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/16657.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/16657.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16657.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01\"}]},{\"@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":"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \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\/16657.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u672c\u6587\u63a8\u8350\u4e86\u51e0\u4e2a\u5728\u7f51\u9875\u4e0a\u548cDeepSeek\u5bf9\u8bdd\u7684\u5907\u9009\u7f51\u7ad9\uff0c\u4ee5\u53ca\u901a\u8fc7api\u8c03\u7528DeepSeek\u7684\u5907\u9009\u7f51\u7ad9\u3002\u4f5c\u8005\u4e5f\u662f\u5728DeepSeek\u5b98\u7f51\u4f7f\u7528\u65f6\u9047\u5230\u670d\u52a1\u5668\u7e41\u5fd9\u95ee\u9898\u624d\u60f3\u5230\u7684\u627e\u5907\u9009\u7f51\u7ad9\uff0c\u5e0c\u671b\u5bf9\u6709\u540c\u6837\u70e6\u607c\u7684\u540c\u5b66\u6709\u6240\u5e2e\u52a9_deepseek\u5907\u7528","og_url":"https:\/\/www.wsisp.com\/helps\/16657.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:07:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150710-68026a9eb12df.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\/16657.html","url":"https:\/\/www.wsisp.com\/helps\/16657.html","name":"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:07:18+00:00","dateModified":"2025-04-18T15:07:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/16657.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/16657.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/16657.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5206\u4eab\u51e0\u4e2aDeepSeek\u5907\u7528\u7f51\u7ad9\uff0c\u518d\u4e5f\u4e0d\u6015\u670d\u52a1\u5668\u7e41\u5fd9\u4e86\uff01"}]},{"@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\/16657","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=16657"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16657\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/16651"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=16657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=16657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=16657"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=16657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}