id: 4cd6a1080dbb4fa7adf0cad92787ae65
parent_id: 
item_type: 1
item_id: aad17168d1b246b9bc766be68b2575a8
item_updated_time: 1764345621796
title_diff: "[{\"diffs\":[[1,\"word成功接入DeepSeek，提升工作效率\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":23}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>word成功接入DeepSeek，提升工作效率</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"37841\\\"></a>\\\r\\\n<h1>word成功接入DeepSeek，提升工作效率</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=Mzg2NjE0ODc2MQ==&amp;mid=2247485395&amp;idx=1&amp;sn=ff64907e783c16602d260c5ec42270a1&amp;chksm=cf6d51e676b666ef16676d1299bb09a03e50e7b0f19d720de4ef06ea19379b38477c1b3c7105&amp;mpshare=1&amp;scene=1&amp;srcid=0214dn8qURma8bBOTRKwvbze&amp;sharer_shareinfo=dfc7ab738e2e96d6284007a4dfe1dc3f&amp;sharer_shareinfo_first=dfc7ab738e2e96d6284007a4dfe1dc3f#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=Mzg2NjE0ODc2MQ==&amp;mid=2247485...</span></a></div></div><p></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">原创</span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">cppbll</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 青藤之智 </a></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><em style=\\\"-webkit-tap-highlight-color: transparent;\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #05073B; letter-spacing: normal; text-align: start; background-color: #FDFDFE;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">DeepSeek公司，作为人工智能技术研发领域的佼佼者，近期推出了其旗舰产品——DeepSeek-V3 AI模型。该模型是对其前身DeepSeek-V2.5的全面升级，通过不断的优化工作，V3版本在性能表现、运算速度及成本控制上均实现了质的飞跃。这一进步标志着，在技术层面，国产AI模型如DeepSeek-V3已经能够与国际上最先进的模型，诸如GPT-4系列的模型，一较高下。</span></span></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #05073B; letter-spacing: normal; text-align: start; background-color: #FDFDFE;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">为了进一步挖掘DeepSeek-V3的潜力，我们计划将DeepSeek其集成到word中，旨在借助其强大的AI能力，为我们的工作提供智能辅助。</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: inline-block;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; border: 3px solid rgb(243,188,71); display: inline-block; vertical-align: middle; border-radius: 100%; background-color: rgb(52,110,183); width: 2.5em; height: 2.5em; text-align: center; color: #000; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: normal; text-align: start; background-color: #FDFDFE; color: #05073B;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">01</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent; width: 0; height: 0; display: inline-block; vertical-align: middle; border-left: 8px solid rgb(243,188,71); border-top: 5px solid transparent; border-bottom: 5px solid transparent; box-sizing: border-box; overflow: hidden;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></div><div style=\\\"-webkit-tap-highlight-color: transparent; display: block; background-color: rgb(52,110,183);\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: left; color: rgb(255,255,255);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; text-align: right;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: normal; text-align: start; background-color: #FDFDFE; color: #05073B;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">效果演示</span></span></p></div></div></div></div></div></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: normal; text-align: start; background-color: #FDFDFE; color: #05073B;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">依据详细的操作指南一步步实施后，Word的界面上将增添一个专属于“开启对话”的功能按钮。这表示DeepSeek已被成功嵌入到您的Word程序中。然后选中文本点击“开启对话”，即可实现与DeepSeekV3进行对话。例如我们将一段中文文本翻译为英文：</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/c3649dd68b2b4d8580bdf02ab9251a02\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: normal; text-align: start; background-color: #FDFDFE; color: #05073B;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">对话后的文档，被翻译成了英文文档。</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/ce7b6b4844f34abea86d8cca8a127453\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: normal; text-align: start; background-color: #FDFDFE; color: #05073B;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">接下来我们将逐步介绍，如何将word接入到DeepSeek中，让我们的办公效率飞起来。</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: inline-block;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; border: 3px solid rgb(243,188,71); display: inline-block; vertical-align: middle; border-radius: 100%; background-color: rgb(52,110,183); width: 2.5em; height: 2.5em; text-align: center; color: #000; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #fff;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">02</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent; width: 0; height: 0; display: inline-block; vertical-align: middle; border-left: 8px solid rgb(243,188,71); border-top: 5px solid transparent; border-bottom: 5px solid transparent; box-sizing: border-box; overflow: hidden;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></div><div style=\\\"-webkit-tap-highlight-color: transparent; display: block; background-color: rgb(52,110,183);\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: left; color: rgb(255,255,255);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; text-align: right;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">获取API key</span></strong></span></p></div></div></div></div></div></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #05073b; letter-spacing: normal; text-align: start; background-color: #fdfdfe;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #05073b; letter-spacing: normal; text-align: start; background-color: #fdfdfe;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1、进入DeepSeek官网，官网链接:https://www.deepseek.com/</span></span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/c6586c78b8ca48ee8751cc25ca96027b\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/1ee21e2349314986a5121256a1dc0350\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2、点击左侧“API Keys”，点击创建API key，输出名称为“AI接入word”，当然可以定义自己喜欢的名字</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/67820b4b1d754902b84d7ffe43a77b92\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3、输入自定义的名字后，点击“创建&quot;，这时会给我们创建一个API key，大家一定要记住自己的API key，可以先将API key复制到一个txt文件中，方便保存。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/ae9689efff7f477f845344a90174b00a\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: inline-block;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; border: 3px solid rgb(243,188,71); display: inline-block; vertical-align: middle; border-radius: 100%; background-color: rgb(52,110,183); width: 2.5em; height: 2.5em; text-align: center; color: #000; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #fff;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">03</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent; width: 0; height: 0; display: inline-block; vertical-align: middle; border-left: 8px solid rgb(243,188,71); border-top: 5px solid transparent; border-bottom: 5px solid transparent; box-sizing: border-box; overflow: hidden;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></div><div style=\\\"-webkit-tap-highlight-color: transparent; display: block; background-color: rgb(52,110,183);\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: left; color: rgb(255,255,255);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; text-align: right;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">配置word</span></strong></span></p></div></div></div></div></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">1、首先在自己电脑上新建一个Word文档，然后点击 文件 -&gt; 选项 -&gt; 自定义功能区，勾选“开发者工具”。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/b562b6f1871348ad90e6f49716ce2fdc\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">2、接下来点击 文件 -&gt; 选项-&gt;信任中心 -&gt; 信任中心设置，选择“启用所有宏”与“信任对VBA......”，然后确定就可以了。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/910fd9fcbfe24d1ea6f3dd3f10c85b70\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">3、这时我们会发现word选项卡中出现了一个“开发者工具”，点击开发者工具，然后点击左上角的Visual Basic，会弹出一个窗口。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/8a02705ccd5b4927bc947755123a5f7e\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">4、点击插入，选择模块，这时会弹出一个编辑器，然后输入以下脚本代码就可以了。（如需脚本文件，回复&quot;word&quot;即可）</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/21e63e41898f4a498c4a0d9926366eb5\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"--en-codeblock: true; --en-meta: {&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true}; box-sizing: border-box; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;\\\"><pre><span>Function CallDeepSeekAPI(api_key As String, inputText As String)</span><br/><span>    Dim API As String</span><br/><span>    Dim SendTxt As String</span><br/><span>    Dim Http As Object</span><br/><span>    Dim status_code As Integer</span><br/><span>    Dim response As String</span><br/><span>    </span><br/><span>    API = &quot;https://api.deepseek.com/chat/completions&quot;</span><br/><span>    SendTxt = &quot;{&quot;&quot;model&quot;&quot;: &quot;&quot;deepseek-chat&quot;&quot;, &quot;&quot;messages&quot;&quot;: [{&quot;&quot;role&quot;&quot;:&quot;&quot;system&quot;&quot;, &quot;&quot;content&quot;&quot;:&quot;&quot;You are a Word assistant&quot;&quot;}, {&quot;&quot;role&quot;&quot;:&quot;&quot;user&quot;&quot;, &quot;&quot;content&quot;&quot;:&quot;&quot;&quot; &amp; inputText &amp; &quot;&quot;&quot;}], &quot;&quot;stream&quot;&quot;: false}&quot;</span><br/><span>    Set Http = CreateObject(&quot;MSXML2.XMLHTTP&quot;)</span><br/><span>    With Http</span><br/><span>    .Open &quot;POST&quot;, API, False</span><br/><span>    .setRequestHeader &quot;Content-Type&quot;, &quot;application/json&quot;</span><br/><span>    .setRequestHeader &quot;Authorization&quot;, &quot;Bearer &quot; &amp; api_key</span><br/><span>    .send SendTxt</span><br/><span>    status_code = .Status</span><br/><span>    response = .responseText</span><br/><span>   End With</span><br/><span>   ' 弹出窗口显示 API 响应（调试用）</span><br/><span>   ' MsgBox &quot;API Response: &quot; &amp; response, vbInformation, &quot;Debug Info&quot;</span><br/><span>If status_code = 200 Then</span><br/><span>    CallDeepSeekAPI = response</span><br/><span>    Else</span><br/><span>      CallDeepSeekAPI = &quot;Error: &quot; &amp; status_code &amp; &quot; - &quot; &amp; response</span><br/><span> End If</span><br/><span>    Set Http = Nothing</span><br/><span>End Function</span><br/><span> </span><br/><span>Sub DeepSeekV3()</span><br/><span> </span><br/><span>    Dim api_key As String</span><br/><span>    Dim inputText As String</span><br/><span>    Dim response As String</span><br/><span>    Dim regex As Object</span><br/><span>    Dim matches As Object</span><br/><span>    Dim originalSelection As Object</span><br/><span>    api_key = &quot;自己的API key&quot;</span><br/><span>    If api_key = &quot;&quot; Then</span><br/><span>       MsgBox &quot;Please enter the API key.&quot;</span><br/><span>      Exit Sub</span><br/><span>    ElseIf Selection.Type &lt;&gt; wdSelectionNormal Then</span><br/><span>       MsgBox &quot;Please select text.&quot;</span><br/><span>     Exit Sub</span><br/><span>  End If</span><br/><span>   ' 保存原始选中的文本</span><br/><span>  Set originalSelection = Selection.Range.Duplicate</span><br/><span>   inputText = Replace(Replace(Replace(Replace(Replace(Selection.Text, &quot;\\\\&quot;, &quot;\\\\\\\\&quot;), vbCrLf, &quot;&quot;), vbCr, &quot;&quot;), vbLf, &quot;&quot;), Chr(34), &quot;\\\\&quot;&quot;&quot;)</span><br/><span>   response = CallDeepSeekAPI(api_key, inputText)</span><br/><span>   If Left(response, 5) &lt;&gt; &quot;Error&quot; Then</span><br/><span>        Set regex = CreateObject(&quot;VBScript.RegExp&quot;)</span><br/><span>       With regex</span><br/><span>           .Global = True</span><br/><span>           .MultiLine = True</span><br/><span>            .IgnoreCase = False</span><br/><span>             .Pattern = &quot;&quot;&quot;content&quot;&quot;:&quot;&quot;(.*?)&quot;&quot;&quot;</span><br/><span>       End With</span><br/><span>       Set matches = regex.Execute(response)</span><br/><span>     If matches.Count &gt; 0 Then</span><br/><span>      response = matches(0).SubMatches(0)</span><br/><span>      response = Replace(Replace(response, &quot;&quot;&quot;&quot;, Chr(34)), &quot;&quot;&quot;&quot;, Chr(34))</span><br/><span>    ' 取消选中原始文本</span><br/><span>       Selection.Collapse Direction:=wdCollapseEnd</span><br/><span>     ' 将内容插入到选中文字的下一行</span><br/><span>      Selection.TypeParagraph ' 插入新行</span><br/><span>      Selection.TypeText Text:=response</span><br/><span>    ' 将光标移回原来选中文本的末尾</span><br/><span>     originalSelection.Select</span><br/><span>     Else</span><br/><span>      MsgBox &quot;Failed to parse API response.&quot;, vbExclamation</span><br/><span>     End If</span><br/><span>     Else</span><br/><span>    MsgBox response, vbCritical</span><br/><span>   End If</span><br/><span>End Sub</span><br/></pre></div></div></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/65b2181bb8794e9083d2e0d7e4da360b\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">5、点击  文件 -&gt; 选项 -&gt; 自定义功能区，右键开发工具，点击添加新组。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/1ba61d3bae7f4999985839dc3a0905de\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">6、右键新建组（自定义），点击重命名。将其命名为DeepSeek，并选择自己喜欢的图标，点击确定。</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/22b265cbc5464e38b9adf450422d957a\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">7、首先选择DeepSeek（自定义），选择左侧的命令为“宏”，找到要添加的DeepSeekV3，选中后点击添加。</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/aad3a653359541cf90052099cbfd1b43\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">8、选中添加的命令，右键点击重命名，重命名为“开始对话”，并选自己喜欢的符号作为图标。</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/5f3dda6b10e24cad8886a503f49070ec\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">至此，我们已经成功的将Word接入DeepSeek大模型中了，接下来我们将验证一下配置是否成功。</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: inline-block;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; display: flex;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; border: 3px solid rgb(243,188,71); display: inline-block; vertical-align: middle; border-radius: 100%; background-color: rgb(52,110,183); width: 2.5em; height: 2.5em; text-align: center; color: #000; box-sizing: border-box;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; font-weight: bold;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: #fff;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">04</span></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent; width: 0; height: 0; display: inline-block; vertical-align: middle; border-left: 8px solid rgb(243,188,71); border-top: 5px solid transparent; border-bottom: 5px solid transparent; box-sizing: border-box; overflow: hidden;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></div><div style=\\\"-webkit-tap-highlight-color: transparent; display: block; background-color: rgb(52,110,183);\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; text-align: left; color: rgb(255,255,255);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px; text-align: right;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; letter-spacing: 2px;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">测试</span></strong></span></p></div></div></div></div></div></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">这时我们在word中，输入一行文字“请用300字介绍一下DeepSeek”，然后点击我们选型卡中我们命名的“开始对话”按钮，这时大模型会按照我们选中的文本给出相应的回应。</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/9fe90b61283946fcb4e1f56eb0bfcb68\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/fbba4d17d21945fcbc659056154e8e37\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; vertical-align: bottom; height: auto; width: auto;\\\" width=\\\"auto\\\"/></div><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":27707}]"
metadata_diff: {"new":{"id":"aad17168d1b246b9bc766be68b2575a8","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348828392,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:03.620Z
created_time: 2025-11-28T21:04:03.620Z
type_: 13