{"id":17990,"date":"2025-04-19T00:27:53","date_gmt":"2025-04-18T16:27:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/17990.html"},"modified":"2025-04-19T00:27:53","modified_gmt":"2025-04-18T16:27:53","slug":"deepseek%e6%a8%a1%e5%9e%8br1%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%b9%81%e5%bf%99%ef%bc%8c%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/17990.html","title":{"rendered":"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f"},"content":{"rendered":"<p>\u5728\u5f53\u4eca\u79d1\u6280\u98de\u901f\u53d1\u5c55\u7684\u65f6\u4ee3&#xff0c;\u4eba\u5de5\u667a\u80fd\u9886\u57df\u4e0d\u65ad\u6d8c\u73b0\u51fa\u4ee4\u4eba\u77a9\u76ee\u7684\u521b\u65b0\u6210\u679c&#xff0c;\u5176\u4e2dDeepSeek\u6a21\u578b\u65e0\u7591\u6210\u4e3a\u4e86\u4f17\u591a\u5173\u6ce8\u7126\u70b9\u3002\u5b83\u51ed\u501f\u7740\u5148\u8fdb\u7684\u6280\u672f\u548c\u5353\u8d8a\u7684\u6027\u80fd&#xff0c;\u5728\u884c\u4e1a\u5185\u6380\u8d77\u4e86\u4e00\u80a1\u70ed\u6f6e&#xff0c;\u5438\u5f15\u4e86\u65e0\u6570\u76ee\u5149\u3002\u7136\u800c&#xff0c;\u5982\u540c\u8bb8\u591a\u524d\u6cbf\u6280\u672f\u5728\u53d1\u5c55\u521d\u671f\u6240\u9762\u4e34\u7684\u6311\u6218\u4e00\u6837&#xff0c;DeepSeek\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4e5f\u66b4\u9732\u51fa\u4e86\u4e00\u7cfb\u5217\u4e9f\u5f85\u89e3\u51b3\u7684\u95ee\u9898&#xff0c;\u8fd9\u4e9b\u95ee\u9898\u72b9\u5982\u4e00\u9053\u9053\u5c4f\u969c&#xff0c;\u9650\u5236\u4e86\u5176\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u548c\u6df1\u5165\u7684\u53d1\u5c55\u3002\u800c\u8baf\u98de\u5f00\u653e\u5e73\u53f0&#xff0c;\u51ed\u501f\u5176\u5f3a\u5927\u7684\u5b9e\u529b\u548c\u4e30\u5bcc\u7684\u7ecf\u9a8c&#xff0c;\u6b63\u81f4\u529b\u4e8e\u4e3a\u89e3\u51b3\u8fd9\u4e9b\u75db\u70b9\u63d0\u4f9b\u5168\u9762\u800c\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u9996\u5148&#xff0c;\u670d\u52a1\u4e0d\u7a33\u5b9a\u662fDeepSeek\u6a21\u578b\u5f53\u524d\u9762\u4e34\u7684\u4e00\u4e2a\u7a81\u51fa\u95ee\u9898\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff0c;\u7528\u6237\u5bf9\u4e8e\u670d\u52a1\u7684\u7a33\u5b9a\u6027\u6709\u7740\u6781\u9ad8\u7684\u8981\u6c42\u3002\u65e0\u8bba\u662f\u4f01\u4e1a\u7684\u751f\u4ea7\u8fd0\u8425&#xff0c;\u8fd8\u662f\u4e2a\u4eba\u7684\u65e5\u5e38\u4f7f\u7528&#xff0c;\u90fd\u5e0c\u671b\u80fd\u591f\u83b7\u5f97\u6301\u7eed\u3001\u7a33\u5b9a\u7684\u670d\u52a1\u652f\u6301\u3002\u7136\u800c&#xff0c;DeepSeek\u6a21\u578b\u7531\u4e8e\u5404\u79cd\u56e0\u7d20\u7684\u5f71\u54cd&#xff0c;\u65f6\u5e38\u51fa\u73b0\u670d\u52a1\u6ce2\u52a8\u7684\u60c5\u51b5&#xff0c;\u8fd9\u7ed9\u7528\u6237\u5e26\u6765\u4e86\u6781\u5927\u7684\u56f0\u6270\u3002\u6bd4\u5982&#xff0c;\u5728\u8fdb\u884c\u91cd\u8981\u4efb\u52a1\u5904\u7406\u65f6&#xff0c;\u7a81\u7136\u7684\u670d\u52a1\u4e2d\u65ad\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3001\u5de5\u4f5c\u5ef6\u8bef\u7b49\u4e00\u7cfb\u5217\u4e25\u91cd\u540e\u679c\u3002\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u6df1\u77e5\u670d\u52a1\u7a33\u5b9a\u6027\u7684\u91cd\u8981\u6027&#xff0c;\u901a\u8fc7\u4f18\u5316\u81ea\u8eab\u7684\u6280\u672f\u67b6\u6784\u548c\u670d\u52a1\u4f53\u7cfb&#xff0c;\u91c7\u7528\u5148\u8fdb\u7684\u4e91\u8ba1\u7b97\u6280\u672f\u548c\u5206\u5e03\u5f0f\u5b58\u50a8\u65b9\u6848&#xff0c;\u786e\u4fdd\u5e73\u53f0\u7684\u9ad8\u53ef\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u540c\u65f6&#xff0c;\u8baf\u98de\u8fd8\u5efa\u7acb\u4e86\u5b8c\u5584\u7684\u76d1\u63a7\u548c\u9884\u8b66\u673a\u5236&#xff0c;\u80fd\u591f\u5b9e\u65f6\u76d1\u6d4b\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001&#xff0c;\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u6f5c\u5728\u7684\u95ee\u9898&#xff0c;\u4e3a\u7528\u6237\u7684\u4f7f\u7528\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u4fdd\u969c\u3002<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"935\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418162751-68027d875e5a5.png\" width=\"1200\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1005\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418162752-68027d8808928.png\" width=\"1200\" \/><\/p>\n<p>HTTP\u8c03\u7528\u6e90\u4ee3\u7801&#xff1a; \u00a0<\/p>\n<p>package day;<\/p>\n<p>import com.google.gson.Gson;<br \/>\nimport org.json.JSONArray;<br \/>\nimport org.json.JSONObject;<\/p>\n<p>import java.io.*;<br \/>\nimport java.net.HttpURLConnection;<br \/>\nimport java.net.URL;<br \/>\nimport java.nio.charset.StandardCharsets;<br \/>\nimport java.util.List;<\/p>\n<p>public class MaasApiClient {<br \/>\n    public static Gson gson &#061; new Gson();<\/p>\n<p>    public static void main(String[] args) {<br \/>\n        try {<br \/>\n            URL url &#061; new URL(&#034;http:\/\/maas-api.cn-huabei-1.xf-yun.com\/v1\/chat\/completions&#034;);<br \/>\n            HttpURLConnection connection &#061; (HttpURLConnection) url.openConnection();<\/p>\n<p>            \/\/ \u8bbe\u7f6e\u8bf7\u6c42\u5934<br \/>\n            connection.setRequestMethod(&#034;POST&#034;);<br \/>\n            connection.setRequestProperty(&#034;Content-Type&#034;, &#034;application\/json&#034;);<br \/>\n            connection.setRequestProperty(&#034;Authorization&#034;, &#034;Bearer &#034;);<br \/>\n            connection.setDoOutput(true);<br \/>\n            connection.setChunkedStreamingMode(0); \/\/ \u5553\u7528\u5206\u584a\u50b3\u8f38<\/p>\n<p>            \/\/ \u6784\u5efaJSON\u8bf7\u6c42\u4f53<br \/>\n            JSONObject requestBody &#061; new JSONObject();<br \/>\n            requestBody.put(&#034;model&#034;, &#034;xdeepseekr1&#034;);<\/p>\n<p>            JSONArray messages &#061; new JSONArray();<br \/>\n            JSONObject message &#061; new JSONObject();<br \/>\n            message.put(&#034;role&#034;, &#034;user&#034;);<br \/>\n            message.put(&#034;content&#034;, &#034;\u4f60\u662f\u8c01&#xff1f;&#034;);<br \/>\n            messages.put(message);<\/p>\n<p>            requestBody.put(&#034;messages&#034;, messages);<br \/>\n            requestBody.put(&#034;temperature&#034;, 0.01);<br \/>\n            requestBody.put(&#034;stream&#034;, true);<br \/>\n            requestBody.put(&#034;max_tokens&#034;, 4096);<\/p>\n<p>            \/\/ \u53d1\u9001\u8bf7\u6c42<br \/>\n            try (OutputStream os &#061; connection.getOutputStream()) {<br \/>\n                byte[] input &#061; requestBody.toString().getBytes(StandardCharsets.UTF_8);<br \/>\n                os.write(input, 0, input.length);<br \/>\n            }<\/p>\n<p>            \/\/ \u5904\u7406\u6d41\u5f0f\u8fd4\u56de<br \/>\n            try (BufferedReader reader &#061; new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8))) {<\/p>\n<p>                String line;<br \/>\n                while ((line &#061; reader.readLine()) !&#061; null) {<br \/>\n                    \/\/ System.out.println(line);<br \/>\n                    if (!line.contains(&#034;[DONE]&#034;)) {<br \/>\n                        line &#061; line.replace(&#034;data: &#034;, &#034;&#034;);<br \/>\n                        \/\/ System.out.println(line);<br \/>\n                        JsonParse jsonParse &#061; gson.fromJson(line, JsonParse.class);<br \/>\n                        if (!line.isEmpty()) {<br \/>\n                            List&lt;Choices&gt; choicesList &#061; jsonParse.choices;<br \/>\n                            for (Choices temp : choicesList) {<br \/>\n                                System.out.print(temp.delta.reasoning_content);<br \/>\n                            }<br \/>\n                        }<br \/>\n                    }<br \/>\n                }<br \/>\n            }<\/p>\n<p>            connection.disconnect();<\/p>\n<p>        } catch (Exception e) {<br \/>\n            e.printStackTrace();<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>class JsonParse {<br \/>\n    List&lt;Choices&gt; choices;<br \/>\n}<\/p>\n<p>class Choices {<br \/>\n    Delta delta;<br \/>\n}<\/p>\n<p>class Delta {<br \/>\n    String reasoning_content;<br \/>\n}<\/p>\n<p>Webscoket\u8c03\u7528\u6e90\u4ee3\u7801&#xff1a;<\/p>\n<p>package org.example;<\/p>\n<p>import com.alibaba.fastjson.JSON;<br \/>\nimport com.alibaba.fastjson.JSONArray;<br \/>\nimport com.alibaba.fastjson.JSONObject;<br \/>\nimport com.google.gson.Gson;<br \/>\nimport okhttp3.*;<\/p>\n<p>import javax.crypto.Mac;<br \/>\nimport javax.crypto.spec.SecretKeySpec;<br \/>\nimport java.io.IOException;<br \/>\nimport java.net.URL;<br \/>\nimport java.nio.charset.StandardCharsets;<br \/>\nimport java.text.SimpleDateFormat;<br \/>\nimport java.util.*;<\/p>\n<p>public class BigModelNew extends WebSocketListener {<br \/>\n    \/\/ \u4ee5\u4e0b\u4fe1\u606f\u4ece\u670d\u52a1\u7ba1\u63a7\u9875\u9762\u83b7\u53d6&#xff1a;https:\/\/training.xfyun.cn\/modelService<br \/>\n    public static final String hostUrl &#061; &#034;wss:\/\/maas-api.cn-huabei-1.xf-yun.com\/v1.1\/chat&#034;; \/\/ \u670d\u52a1\u5730\u5740<br \/>\n    public static final String appid &#061; &#034;&#034;;<br \/>\n    public static final String apiSecret &#061; &#034;&#034;;<br \/>\n    public static final String apiKey &#061; &#034;&#034;;<br \/>\n    public static final String patch_id &#061; &#034;0&#034;;    \/\/\u8c03\u7528\u5fae\u8c03\u5927\u6a21\u578b\u65f6\u5fc5\u4f20,\u5426\u5219\u4e0d\u4f20\u3002\u5bf9\u5e94\u4e3a\u6a21\u578b\u670d\u52a1\u5361\u7247\u4e0a\u7684resourceId<br \/>\n    public static final String domain &#061; &#034;xdeepseekr1&#034;;    \/\/\u4ece\u670d\u52a1\u7ba1\u63a7\u83b7\u53d6\u8981\u8bbf\u95ee\u670d\u52a1\u7684serviceID&#xff1a;https:\/\/training.xfyun.cn\/modelService<\/p>\n<p>    public static List&lt;RoleContent&gt; historyList &#061; new ArrayList&lt;&gt;(); \/\/ \u5bf9\u8bdd\u5386\u53f2\u5b58\u50a8\u96c6\u5408<\/p>\n<p>    public static String totalAnswer &#061; &#034;&#034;; \/\/ \u5927\u6a21\u578b\u7684\u7b54\u6848\u6c47\u603b  \u4f60\u662f\u6ee1\u8840671b\u7248\u672c\u5417<\/p>\n<p>    \/\/ \u73af\u5883\u6cbb\u7406\u7684\u91cd\u8981\u6027  \u73af\u4fdd  \u4eba\u53e3\u8001\u9f84\u5316  \u6211\u7231\u6211\u7684\u7956\u56fd \u4f60\u662f\u8c01 \u660e\u5929\u5408\u80a5\u7684\u5929\u6c14 \u6211\u7684\u540d\u5b57\u53eb\u5927\u738b \u6211\u53eb\u4ec0\u4e48\u540d\u5b57<br \/>\n    \/\/ \u70b9\u8bc4\u4e00\u4e0b\u5b89\u5fbd\u7684\u53d1\u5c55\u548c\u7ecf\u6d4e&#xff0c;\u4ee5\u53ca\u5de5\u8d44\u548c\u53d1\u5c55\u7684\u5dee\u8ddd&#xff0c;\u8bf4\u7684\u8981\u76f4\u63a5&#xff0c;\u53ef\u4ee5<br \/>\n    public static String NewQuestion &#061; &#034;&#034;;<\/p>\n<p>    public static final Gson gson &#061; new Gson();<\/p>\n<p>    \/\/ \u4e2a\u6027\u5316\u53c2\u6570<br \/>\n    private String userId;<br \/>\n    private Boolean wsCloseFlag;<\/p>\n<p>    private static Boolean totalFlag &#061; true; \/\/ \u63a7\u5236\u63d0\u793a\u7528\u6237\u662f\u5426\u8f93\u5165<\/p>\n<p>    \/\/ \u6784\u9020\u51fd\u6570<br \/>\n    public BigModelNew(String userId, Boolean wsCloseFlag) {<br \/>\n        this.userId &#061; userId;<br \/>\n        this.wsCloseFlag &#061; wsCloseFlag;<br \/>\n    }<\/p>\n<p>    \/\/ \u4e3b\u51fd\u6570<br \/>\n    public static void main(String[] args) throws Exception {<br \/>\n        \/\/ \u4e2a\u6027\u5316\u53c2\u6570\u5165\u53e3&#xff0c;\u5982\u679c\u662f\u5e76\u53d1\u4f7f\u7528&#xff0c;\u53ef\u4ee5\u5728\u8fd9\u91cc\u6a21\u62df<br \/>\n        while (true) {<br \/>\n            if (totalFlag) {<br \/>\n                Scanner scanner &#061; new Scanner(System.in);<br \/>\n                System.out.print(&#034;\u6211&#xff1a;&#034;);<br \/>\n                totalFlag &#061; false;<br \/>\n                NewQuestion &#061; scanner.nextLine();<br \/>\n                \/\/ \u6784\u5efa\u9274\u6743url<br \/>\n                String authUrl &#061; getAuthUrl(hostUrl, apiKey, apiSecret);<br \/>\n                OkHttpClient client &#061; new OkHttpClient.Builder().build();<br \/>\n                String url &#061; authUrl.toString().replace(&#034;http:\/\/&#034;, &#034;ws:\/\/&#034;).replace(&#034;https:\/\/&#034;, &#034;wss:\/\/&#034;);<br \/>\n                Request request &#061; new Request.Builder().url(url).build();<br \/>\n                for (int i &#061; 0; i &lt; 1; i&#043;&#043;) {<br \/>\n                    totalAnswer &#061; &#034;&#034;;<br \/>\n                    WebSocket webSocket &#061; client.newWebSocket(request, new BigModelNew(i &#043; &#034;&#034;, false));<br \/>\n                }<br \/>\n            } else {<br \/>\n                Thread.sleep(200);<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public static boolean canAddHistory() {  \/\/ \u7531\u4e8e\u5386\u53f2\u8bb0\u5f55\u6700\u5927\u4e0a\u7ebf1.2W\u5de6\u53f3&#xff0c;\u9700\u8981\u5224\u65ad\u662f\u80fd\u80fd\u52a0\u5165\u5386\u53f2<br \/>\n        int history_length &#061; 0;<br \/>\n        for (RoleContent temp : historyList) {<br \/>\n            history_length &#061; history_length &#043; temp.content.length();<br \/>\n        }<br \/>\n        if (history_length &gt; 12000) {<br \/>\n            historyList.remove(0);<br \/>\n            historyList.remove(1);<br \/>\n            historyList.remove(2);<br \/>\n            historyList.remove(3);<br \/>\n            historyList.remove(4);<br \/>\n            return false;<br \/>\n        } else {<br \/>\n            return true;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u7ebf\u7a0b\u6765\u53d1\u9001\u97f3\u9891\u4e0e\u53c2\u6570<br \/>\n    class MyThread extends Thread {<br \/>\n        private WebSocket webSocket;<\/p>\n<p>        public MyThread(WebSocket webSocket) {<br \/>\n            this.webSocket &#061; webSocket;<br \/>\n        }<\/p>\n<p>        public void run() {<br \/>\n            try {<br \/>\n                JSONObject requestJson &#061; new JSONObject();<br \/>\n                String[] arr &#061; new String[1];<br \/>\n                arr[0] &#061; patch_id;<br \/>\n                JSONObject header &#061; new JSONObject();  \/\/ header\u53c2\u6570<br \/>\n                header.put(&#034;app_id&#034;, appid);<br \/>\n                header.put(&#034;uid&#034;, UUID.randomUUID().toString().substring(0, 10));<br \/>\n                header.put(&#034;patch_id&#034;, arr);<\/p>\n<p>                JSONObject parameter &#061; new JSONObject(); \/\/ parameter\u53c2\u6570<br \/>\n                JSONObject chat &#061; new JSONObject();<br \/>\n                chat.put(&#034;domain&#034;, domain); \/\/\u8c03\u7528\u5fae\u8c03\u5927\u6a21\u578b\u65f6&#xff0c;\u5bf9\u5e94\u4e3a\u6a21\u578b\u670d\u52a1\u5361\u7247\u4e0a\u7684serviceid<br \/>\n                chat.put(&#034;temperature&#034;, 0.5);<br \/>\n                chat.put(&#034;max_tokens&#034;, 4096);  \/\/\u8bf7\u6839\u636e\u4e0d\u540c\u6a21\u578b\u652f\u6301\u8303\u56f4&#xff0c;\u9002\u5f53\u8c03\u6574\u8be5\u503c\u7684\u5927\u5c0f<br \/>\n                parameter.put(&#034;chat&#034;, chat);<\/p>\n<p>                JSONObject payload &#061; new JSONObject(); \/\/ payload\u53c2\u6570<br \/>\n                JSONObject message &#061; new JSONObject();<br \/>\n                JSONArray text &#061; new JSONArray();<\/p>\n<p>                \/\/ \u5386\u53f2\u95ee\u9898\u83b7\u53d6<br \/>\n                if (historyList.size() &gt; 0) {<br \/>\n                    for (RoleContent tempRoleContent : historyList) {<br \/>\n                        text.add(JSON.toJSON(tempRoleContent));<br \/>\n                    }<br \/>\n                }<\/p>\n<p>                \/\/ \u6700\u65b0\u95ee\u9898<br \/>\n                RoleContent roleContent &#061; new RoleContent();<br \/>\n                roleContent.role &#061; &#034;user&#034;;<br \/>\n                roleContent.content &#061; NewQuestion;<br \/>\n                text.add(JSON.toJSON(roleContent));<br \/>\n                historyList.add(roleContent);<\/p>\n<p>                message.put(&#034;text&#034;, text);<br \/>\n                payload.put(&#034;message&#034;, message);<\/p>\n<p>                requestJson.put(&#034;header&#034;, header);<br \/>\n                requestJson.put(&#034;parameter&#034;, parameter);<br \/>\n                requestJson.put(&#034;payload&#034;, payload);<br \/>\n                System.err.println(requestJson); \/\/ \u53ef\u4ee5\u6253\u5370\u770b\u6bcf\u6b21\u7684\u4f20\u53c2\u660e\u7ec6<br \/>\n                webSocket.send(requestJson.toString());<br \/>\n                \/\/ \u7b49\u5f85\u670d\u52a1\u7aef\u8fd4\u56de\u5b8c\u6bd5\u540e\u5173\u95ed<br \/>\n                while (true) {<br \/>\n                    \/\/ System.err.println(wsCloseFlag &#043; &#034;&#8212;&#034;);<br \/>\n                    Thread.sleep(200);<br \/>\n                    if (wsCloseFlag) {<br \/>\n                        break;<br \/>\n                    }<br \/>\n                }<br \/>\n                webSocket.close(1000, &#034;&#034;);<br \/>\n            } catch (Exception e) {<br \/>\n                e.printStackTrace();<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    &#064;Override<br \/>\n    public void onOpen(WebSocket webSocket, Response response) {<br \/>\n        super.onOpen(webSocket, response);<br \/>\n        System.out.print(&#034;\u5927\u6a21\u578b&#xff1a;&#034;);<br \/>\n        MyThread myThread &#061; new MyThread(webSocket);<br \/>\n        myThread.start();<br \/>\n    }<\/p>\n<p>    &#064;Override<br \/>\n    public void onMessage(WebSocket webSocket, String text) {<br \/>\n        \/\/ System.out.println(userId &#043; &#034;\u7528\u6765\u533a\u5206\u90a3\u4e2a\u7528\u6237\u7684\u7ed3\u679c&#034; &#043; text);<br \/>\n        JsonParse myJsonParse &#061; gson.fromJson(text, JsonParse.class);<br \/>\n        if (myJsonParse.header.code !&#061; 0) {<br \/>\n            System.out.println(&#034;\u53d1\u751f\u9519\u8bef&#xff0c;\u9519\u8bef\u7801\u4e3a&#xff1a;&#034; &#043; myJsonParse.header.code);<br \/>\n            System.out.println(&#034;\u672c\u6b21\u8bf7\u6c42\u7684sid\u4e3a&#xff1a;&#034; &#043; myJsonParse.header.sid);<br \/>\n            webSocket.close(1000, &#034;&#034;);<br \/>\n        }<br \/>\n        List&lt;Text&gt; textList &#061; myJsonParse.payload.choices.text;<br \/>\n        for (Text temp : textList) {<br \/>\n            System.out.print(temp.content);<br \/>\n            totalAnswer &#061; totalAnswer &#043; temp.content;<br \/>\n        }<br \/>\n        if (myJsonParse.header.status &#061;&#061; 2) {<br \/>\n            \/\/ \u53ef\u4ee5\u5173\u95ed\u8fde\u63a5&#xff0c;\u91ca\u653e\u8d44\u6e90<br \/>\n            System.out.println();<br \/>\n            System.out.println(&#034;*************************************************************************************&#034;);<br \/>\n            if (canAddHistory()) {<br \/>\n                RoleContent roleContent &#061; new RoleContent();<br \/>\n                roleContent.setRole(&#034;assistant&#034;);<br \/>\n                roleContent.setContent(totalAnswer);<br \/>\n                historyList.add(roleContent);<br \/>\n            } else {<br \/>\n                historyList.remove(0);<br \/>\n                RoleContent roleContent &#061; new RoleContent();<br \/>\n                roleContent.setRole(&#034;assistant&#034;);<br \/>\n                roleContent.setContent(totalAnswer);<br \/>\n                historyList.add(roleContent);<br \/>\n            }<br \/>\n            wsCloseFlag &#061; true;<br \/>\n            totalFlag &#061; true;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    &#064;Override<br \/>\n    public void onFailure(WebSocket webSocket, Throwable t, Response response) {<br \/>\n        super.onFailure(webSocket, t, response);<br \/>\n        try {<br \/>\n            if (null !&#061; response) {<br \/>\n                int code &#061; response.code();<br \/>\n                System.out.println(&#034;onFailure code:&#034; &#043; code);<br \/>\n                System.out.println(&#034;onFailure body:&#034; &#043; response.body().string());<br \/>\n                if (101 !&#061; code) {<br \/>\n                    System.out.println(&#034;connection failed&#034;);<br \/>\n                    System.exit(0);<br \/>\n                }<br \/>\n            }<br \/>\n        } catch (IOException e) {<br \/>\n            \/\/ TODO Auto-generated catch block<br \/>\n            e.printStackTrace();<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u9274\u6743\u65b9\u6cd5<br \/>\n    public static String getAuthUrl(String hostUrl, String apiKey, String apiSecret) throws Exception {<\/p>\n<p>        String newUrl &#061; hostUrl.toString().replace(&#034;ws:\/\/&#034;, &#034;http:\/\/&#034;).replace(&#034;wss:\/\/&#034;, &#034;https:\/\/&#034;);<br \/>\n        URL url &#061; new URL(newUrl);<br \/>\n        \/\/ \u65f6\u95f4<br \/>\n        SimpleDateFormat format &#061; new SimpleDateFormat(&#034;EEE, dd MMM yyyy HH:mm:ss z&#034;, Locale.US);<br \/>\n        format.setTimeZone(TimeZone.getTimeZone(&#034;GMT&#034;));<br \/>\n        String date &#061; format.format(new Date());<br \/>\n        \/\/ \u62fc\u63a5<br \/>\n        String preStr &#061; &#034;host: &#034; &#043; url.getHost() &#043; &#034;\\\\n&#034; &#043; &#034;date: &#034; &#043; date &#043; &#034;\\\\n&#034; &#043; &#034;GET &#034; &#043; url.getPath() &#043; &#034; HTTP\/1.1&#034;;<br \/>\n        \/\/ System.err.println(preStr);<br \/>\n        \/\/ SHA256\u52a0\u5bc6<br \/>\n        Mac mac &#061; Mac.getInstance(&#034;hmacsha256&#034;);<br \/>\n        SecretKeySpec spec &#061; new SecretKeySpec(apiSecret.getBytes(StandardCharsets.UTF_8), &#034;hmacsha256&#034;);<br \/>\n        mac.init(spec);<\/p>\n<p>        byte[] hexDigits &#061; mac.doFinal(preStr.getBytes(StandardCharsets.UTF_8));<br \/>\n        \/\/ Base64\u52a0\u5bc6<br \/>\n        String sha &#061; Base64.getEncoder().encodeToString(hexDigits);<br \/>\n        \/\/ System.err.println(sha);<br \/>\n        \/\/ \u62fc\u63a5<br \/>\n        String authorization &#061; String.format(&#034;api_key&#061;\\\\&#034;%s\\\\&#034;, algorithm&#061;\\\\&#034;%s\\\\&#034;, headers&#061;\\\\&#034;%s\\\\&#034;, signature&#061;\\\\&#034;%s\\\\&#034;&#034;, apiKey, &#034;hmac-sha256&#034;, &#034;host date request-line&#034;, sha);<br \/>\n        \/\/ \u62fc\u63a5\u5730\u5740<br \/>\n        HttpUrl httpUrl &#061; Objects.requireNonNull(HttpUrl.parse(&#034;https:\/\/&#034; &#043; url.getHost() &#043; url.getPath())).newBuilder().\/\/<br \/>\n                addQueryParameter(&#034;authorization&#034;, Base64.getEncoder().encodeToString(authorization.getBytes(StandardCharsets.UTF_8))).\/\/<br \/>\n                addQueryParameter(&#034;date&#034;, date).\/\/<br \/>\n                addQueryParameter(&#034;host&#034;, url.getHost()).\/\/<br \/>\n                build();<\/p>\n<p>        \/\/System.err.println(httpUrl.toString());<br \/>\n        return httpUrl.toString();<br \/>\n    }<\/p>\n<p>    \/\/\u8fd4\u56de\u7684json\u7ed3\u679c\u62c6\u89e3<br \/>\n    class JsonParse {<br \/>\n        Header header;<br \/>\n        Payload payload;<br \/>\n    }<\/p>\n<p>    class Header {<br \/>\n        int code;<br \/>\n        int status;<br \/>\n        String sid;<br \/>\n    }<\/p>\n<p>    class Payload {<br \/>\n        Choices choices;<br \/>\n    }<\/p>\n<p>    class Choices {<br \/>\n        List&lt;Text&gt; text;<br \/>\n    }<\/p>\n<p>    class Text {<br \/>\n        String role;<br \/>\n        String content;<br \/>\n    }<\/p>\n<p>    class RoleContent {<br \/>\n        String role;<br \/>\n        String content;<\/p>\n<p>        public String getRole() {<br \/>\n            return role;<br \/>\n        }<\/p>\n<p>        public void setRole(String role) {<br \/>\n            this.role &#061; role;<br \/>\n        }<\/p>\n<p>        public String getContent() {<br \/>\n            return content;<br \/>\n        }<\/p>\n<p>        public void setContent(String content) {<br \/>\n            this.content &#061; content;<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb752\u6b21\u3002\u65e0\u8bba\u662f\u4f01\u4e1a\u7684\u751f\u4ea7\u8fd0\u8425\uff0c\u8fd8\u662f\u4e2a\u4eba\u7684\u65e5\u5e38\u4f7f\u7528\uff0c\u90fd\u5e0c\u671b\u80fd\u591f\u83b7\u5f97\u6301\u7eed\u3001\u7a33\u5b9a\u7684\u670d\u52a1\u652f\u6301\u3002\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u6df1\u77e5\u670d\u52a1\u7a33\u5b9a\u6027\u7684\u91cd\u8981\u6027\uff0c\u901a\u8fc7\u4f18\u5316\u81ea\u8eab\u7684\u6280\u672f\u67b6\u6784\u548c\u670d\u52a1\u4f53\u7cfb\uff0c\u91c7\u7528\u5148\u8fdb\u7684\u4e91\u8ba1\u7b97\u6280\u672f\u548c\u5206\u5e03\u5f0f\u5b58\u50a8\u65b9\u6848\uff0c\u786e\u4fdd\u5e73\u53f0\u7684\u9ad8\u53ef\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u540c\u65f6\uff0c\u8baf\u98de\u8fd8\u5efa\u7acb\u4e86\u5b8c\u5584\u7684\u76d1\u63a7\u548c\u9884\u8b66\u673a\u5236\uff0c\u80fd\u591f\u5b9e\u65f6\u76d1\u6d4b\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u6f5c\u5728\u7684\u95ee\u9898\uff0c\u4e3a\u7528\u6237\u7684\u4f7f\u7528\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u4fdd\u969c\u3002\u7136\u800c\uff0c\u5982\u540c\u8bb8\u591a\u524d\u6cbf\u6280\u672f\u5728\u53d1\u5c55\u521d\u671f\u6240\u9762\u4e34\u7684\u6311\u6218\u4e00\u6837\uff0cDeepSeek\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4e5f\u66b4\u9732\u51fa\u4e86\u4e00\u7cfb\u5217\u4e9f\u5f85\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u8fd9\u4e9b\u95ee\u9898\u72b9\u5982\u4e00\u9053\u9053\u5c4f\u969c\uff0c\u9650\u5236\u4e86\u5176\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u548c\u6df1\u5165\u7684\u53d1\u5c55\u3002_fail to access model(deepseek-r1:14b).**error**: [errno 111] connection refu<\/p>\n","protected":false},"author":2,"featured_media":17988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[68,43,44],"topic":[],"class_list":["post-17990","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-deepseek","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>DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \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\/17990.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb752\u6b21\u3002\u65e0\u8bba\u662f\u4f01\u4e1a\u7684\u751f\u4ea7\u8fd0\u8425\uff0c\u8fd8\u662f\u4e2a\u4eba\u7684\u65e5\u5e38\u4f7f\u7528\uff0c\u90fd\u5e0c\u671b\u80fd\u591f\u83b7\u5f97\u6301\u7eed\u3001\u7a33\u5b9a\u7684\u670d\u52a1\u652f\u6301\u3002\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u6df1\u77e5\u670d\u52a1\u7a33\u5b9a\u6027\u7684\u91cd\u8981\u6027\uff0c\u901a\u8fc7\u4f18\u5316\u81ea\u8eab\u7684\u6280\u672f\u67b6\u6784\u548c\u670d\u52a1\u4f53\u7cfb\uff0c\u91c7\u7528\u5148\u8fdb\u7684\u4e91\u8ba1\u7b97\u6280\u672f\u548c\u5206\u5e03\u5f0f\u5b58\u50a8\u65b9\u6848\uff0c\u786e\u4fdd\u5e73\u53f0\u7684\u9ad8\u53ef\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u540c\u65f6\uff0c\u8baf\u98de\u8fd8\u5efa\u7acb\u4e86\u5b8c\u5584\u7684\u76d1\u63a7\u548c\u9884\u8b66\u673a\u5236\uff0c\u80fd\u591f\u5b9e\u65f6\u76d1\u6d4b\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u6f5c\u5728\u7684\u95ee\u9898\uff0c\u4e3a\u7528\u6237\u7684\u4f7f\u7528\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u4fdd\u969c\u3002\u7136\u800c\uff0c\u5982\u540c\u8bb8\u591a\u524d\u6cbf\u6280\u672f\u5728\u53d1\u5c55\u521d\u671f\u6240\u9762\u4e34\u7684\u6311\u6218\u4e00\u6837\uff0cDeepSeek\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4e5f\u66b4\u9732\u51fa\u4e86\u4e00\u7cfb\u5217\u4e9f\u5f85\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u8fd9\u4e9b\u95ee\u9898\u72b9\u5982\u4e00\u9053\u9053\u5c4f\u969c\uff0c\u9650\u5236\u4e86\u5176\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u548c\u6df1\u5165\u7684\u53d1\u5c55\u3002_fail to access model(deepseek-r1:14b).**error**: [errno 111] connection refu\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/17990.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-18T16:27:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418162751-68027d875e5a5.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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17990.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/17990.html\",\"name\":\"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T16:27:53+00:00\",\"dateModified\":\"2025-04-18T16:27:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/17990.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/17990.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17990.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f\"}]},{\"@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":"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \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\/17990.html","og_locale":"zh_CN","og_type":"article","og_title":"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb752\u6b21\u3002\u65e0\u8bba\u662f\u4f01\u4e1a\u7684\u751f\u4ea7\u8fd0\u8425\uff0c\u8fd8\u662f\u4e2a\u4eba\u7684\u65e5\u5e38\u4f7f\u7528\uff0c\u90fd\u5e0c\u671b\u80fd\u591f\u83b7\u5f97\u6301\u7eed\u3001\u7a33\u5b9a\u7684\u670d\u52a1\u652f\u6301\u3002\u8baf\u98de\u5f00\u653e\u5e73\u53f0\u6df1\u77e5\u670d\u52a1\u7a33\u5b9a\u6027\u7684\u91cd\u8981\u6027\uff0c\u901a\u8fc7\u4f18\u5316\u81ea\u8eab\u7684\u6280\u672f\u67b6\u6784\u548c\u670d\u52a1\u4f53\u7cfb\uff0c\u91c7\u7528\u5148\u8fdb\u7684\u4e91\u8ba1\u7b97\u6280\u672f\u548c\u5206\u5e03\u5f0f\u5b58\u50a8\u65b9\u6848\uff0c\u786e\u4fdd\u5e73\u53f0\u7684\u9ad8\u53ef\u7528\u6027\u548c\u53ef\u9760\u6027\u3002\u540c\u65f6\uff0c\u8baf\u98de\u8fd8\u5efa\u7acb\u4e86\u5b8c\u5584\u7684\u76d1\u63a7\u548c\u9884\u8b66\u673a\u5236\uff0c\u80fd\u591f\u5b9e\u65f6\u76d1\u6d4b\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u6f5c\u5728\u7684\u95ee\u9898\uff0c\u4e3a\u7528\u6237\u7684\u4f7f\u7528\u63d0\u4f9b\u4e86\u575a\u5b9e\u7684\u4fdd\u969c\u3002\u7136\u800c\uff0c\u5982\u540c\u8bb8\u591a\u524d\u6cbf\u6280\u672f\u5728\u53d1\u5c55\u521d\u671f\u6240\u9762\u4e34\u7684\u6311\u6218\u4e00\u6837\uff0cDeepSeek\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4e5f\u66b4\u9732\u51fa\u4e86\u4e00\u7cfb\u5217\u4e9f\u5f85\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u8fd9\u4e9b\u95ee\u9898\u72b9\u5982\u4e00\u9053\u9053\u5c4f\u969c\uff0c\u9650\u5236\u4e86\u5176\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\u548c\u6df1\u5165\u7684\u53d1\u5c55\u3002_fail to access model(deepseek-r1:14b).**error**: [errno 111] connection refu","og_url":"https:\/\/www.wsisp.com\/helps\/17990.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T16:27:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418162751-68027d875e5a5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/17990.html","url":"https:\/\/www.wsisp.com\/helps\/17990.html","name":"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T16:27:53+00:00","dateModified":"2025-04-18T16:27:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/17990.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/17990.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/17990.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DeepSeek\u6a21\u578bR1\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u600e\u4e48\u89e3\u51b3\uff1f"}]},{"@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\/17990","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=17990"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17990\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/17988"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=17990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=17990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=17990"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=17990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}