{"id":553,"date":"2026-03-23T13:53:08","date_gmt":"2026-03-23T05:53:08","guid":{"rendered":"http:\/\/ai.taichi-maker.com\/?page_id=553"},"modified":"2026-03-23T13:56:17","modified_gmt":"2026-03-23T05:56:17","slug":"aid101-1-2-03-user-role-explained","status":"publish","type":"page","link":"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/ai-basics\/aid101-1-2-03-user-role-explained\/","title":{"rendered":"AI\u521b\u5ba2\u9879\u76ee\u5f00\u53d1\u6559\u7a0b -AID101-1-2-03 \u2013 User Role\u8be6\u89e3"},"content":{"rendered":"\n<p>\u5bfc\u822a\u680f\uff1a<a href=\"http:\/\/ai.taichi-maker.com\/\">\u9996\u9875<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/\">AI\u6559\u7a0b\u76ee\u5f55<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/\">AI\u521b\u5ba2\u9879\u76ee\u5f00\u53d1\u6559\u7a0b\u76ee\u5f55<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/ai-basics\/\">\u7b2c1\u7bc7 \u57fa\u7840\u77e5\u8bc6\u7bc7<\/a> \/ AID101-1-2-03 \u2013 User Role\u8be6\u89e3<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u672c\u8282\u5185\u5bb9\u7b80\u4ecb<\/h2>\n\n\n\n<p>\u672c\u8282\u5c06\u8be6\u7ec6\u8bb2\u89e3\u00a0<code>user_role.ino<\/code>\u00a0\u7a0b\u5e8f\u7684\u5de5\u4f5c\u539f\u7406\u3002\u8fd9\u4e2a\u7a0b\u5e8f\u6f14\u793a\u4e86\u5982\u4f55\u5728 ESP32 \u5f00\u53d1\u677f\u4e0a\u901a\u8fc7 User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u5411 AI \u53d1\u9001\u7528\u6237\u7684\u95ee\u9898\u548c\u6307\u4ee4\u3002\u901a\u8fc7\u672c\u8282\u8bfe\u7a0b\uff0c\u60a8\u5c06\u7406\u89e3 System Role \u4e0e User Role \u7684\u533a\u522b\uff0c\u4ee5\u53ca\u5982\u4f55\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u914d\u5408\u4f7f\u7528\u4e24\u8005\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u8be6\u89e3<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4ec0\u4e48\u662f-user-role\"><strong>\u4ec0\u4e48\u662f User Role\uff1f<\/strong><\/h3>\n\n\n\n<p>User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u7528\u4e8e\u627f\u8f7d\u7528\u6237\u7684\u8f93\u5165\u5185\u5bb9\uff0c\u662f\u4e0e AI \u5bf9\u8bdd\u7684\u4e3b\u8981\u8f7d\u4f53\u3002\u5728\u8c03\u7528 AI \u5e73\u53f0 API \u65f6\uff0cUser Role \u53d1\u9001\u7684\u662f\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u3001\u6307\u4ee4\u6216\u9700\u8981 AI \u5904\u7406\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u4e0e System Role \u5b9a\u4e49 AI \u7684\u884c\u4e3a\u6a21\u5f0f\u4e0d\u540c\uff0cUser Role \u5173\u6ce8\u7684\u662f&#8221;\u7528\u6237\u60f3\u8981\u4ec0\u4e48&#8221;\u3002\u5982\u679c\u8bf4 System Role \u662f\u7ed9 AI \u8bbe\u5b9a\u4e00\u4e2a\u4eba\u8bbe\u548c\u89c4\u5219\uff0c\u90a3\u4e48 User Role \u5c31\u662f\u7528\u6237\u5411 AI \u63d0\u51fa\u7684\u5177\u4f53\u95ee\u9898\u6216\u6307\u4ee4\u3002<\/p>\n\n\n\n<p><strong>User Role \u7684\u6838\u5fc3\u7279\u70b9\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udcdd\u00a0<strong>\u5185\u5bb9\u627f\u8f7d<\/strong>\uff1a\u627f\u8f7d\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u3001\u6307\u4ee4\u6216\u4fe1\u606f<\/li>\n\n\n\n<li>\ud83c\udfaf\u00a0<strong>\u76ee\u6807\u5bfc\u5411<\/strong>\uff1a\u660e\u786e\u544a\u8bc9 AI \u7528\u6237\u60f3\u8981\u4ec0\u4e48<\/li>\n\n\n\n<li>\ud83d\udd04\u00a0<strong>\u52a8\u6001\u53d8\u5316<\/strong>\uff1a\u6bcf\u8f6e\u5bf9\u8bdd\u90fd\u53ef\u4ee5\u53d1\u9001\u4e0d\u540c\u7684\u5185\u5bb9<\/li>\n\n\n\n<li>\ud83d\udccb\u00a0<strong>\u683c\u5f0f\u8981\u6c42<\/strong>\uff1a\u53ef\u4ee5\u5305\u542b\u683c\u5f0f\u5316\u8f93\u51fa\u8981\u6c42<\/li>\n<\/ul>\n\n\n\n<p><strong>User Role \u7684\u5178\u578b\u5e94\u7528\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7b80\u5355\u95ee\u7b54\uff1a\u7528\u6237\u76f4\u63a5\u63d0\u95ee\uff0cAI \u56de\u7b54<\/li>\n\n\n\n<li>\u683c\u5f0f\u5316\u6307\u4ee4\uff1a\u7528\u6237\u8981\u6c42 AI \u6309\u7279\u5b9a\u683c\u5f0f\u8f93\u51fa<\/li>\n\n\n\n<li>\u591a\u8f6e\u5bf9\u8bdd\uff1a\u6bcf\u8f6e\u5bf9\u8bdd\u4e2d\u7528\u6237\u53d1\u9001\u65b0\u6d88\u606f<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"user-role-\u4e0e-system-role-\u7684\u533a\u522b\"><strong>User Role \u4e0e System Role \u7684\u533a\u522b<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">\u7279\u6027<\/th><th class=\"has-text-align-left\" data-align=\"left\">System Role<\/th><th class=\"has-text-align-left\" data-align=\"left\">User Role<\/th><\/tr><\/thead><tbody><tr><td><strong>\u5b9a\u4e49\u8005<\/strong><\/td><td>\u5f00\u53d1\u8005\/\u7cfb\u7edf\u7ba1\u7406\u5458<\/td><td>\u7528\u6237<\/td><\/tr><tr><td><strong>\u4f5c\u7528<\/strong><\/td><td>\u8bbe\u5b9a AI \u7684\u884c\u4e3a\u89c4\u5219<\/td><td>\u53d1\u9001\u7528\u6237\u7684\u95ee\u9898\u6216\u6307\u4ee4<\/td><\/tr><tr><td><strong>\u53d8\u5316\u9891\u7387<\/strong><\/td><td>\u901a\u5e38\u56fa\u5b9a\u4e0d\u53d8<\/td><td>\u6bcf\u6b21\u5bf9\u8bdd\u90fd\u53ef\u80fd\u53d8\u5316<\/td><\/tr><tr><td><strong>\u5185\u5bb9\u7c7b\u578b<\/strong><\/td><td>AI \u7684\u8eab\u4efd\u3001\u98ce\u683c\u3001\u683c\u5f0f\u8981\u6c42<\/td><td>\u95ee\u9898\u3001\u6307\u4ee4\u3001\u4fe1\u606f<\/td><\/tr><tr><td><strong>\u793a\u4f8b<\/strong><\/td><td>&#8220;\u4f60\u662f\u5f20\u98de\uff0c\u8bf4\u8bdd\u8981\u7c97\u72b7&#8221;<\/td><td>&#8220;\u8bf7\u89e3\u91ca\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u7b80\u5355\u7406\u89e3\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>System Role<\/strong>\u00a0= \u7ed9 AI \u8bbe\u5b9a&#8221;\u4eba\u8bbe&#8221;\u548c&#8221;\u89c4\u5219&#8221;<\/li>\n\n\n\n<li><strong>User Role<\/strong>\u00a0= \u7528\u6237\u5bf9 AI \u8bf4\u7684\u8bdd<\/li>\n<\/ul>\n\n\n\n<p>\u4e24\u8005\u914d\u5408\u4f7f\u7528\uff1aSystem Role \u544a\u8bc9 AI&#8221;\u4f60\u662f\u8c01\u3001\u600e\u4e48\u56de\u7b54&#8221;\uff0cUser Role \u544a\u8bc9 AI&#8221;\u7528\u6237\u60f3\u95ee\u4ec0\u4e48&#8221;\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u672c\u8282\u4ee3\u7801 \u2013 User Role \u6f14\u793a\u793a\u4f8b<\/h2>\n\n\n\n<p style=\"border-width:1px;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px\"><strong>\u6ce8\u610f<\/strong><br><br>\u672c\u7a0b\u5e8f\u9700\u8981\u914d\u5408my_info.h\u4ee3\u7801\u4f7f\u7528\uff0c\u5426\u5219\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u6b63\u5e38\u7f16\u8bd1\u3002<br>\u8bf7\u70b9\u51fb\u4ee5\u4e0b\u94fe\u63a5\u524d\u5f80\u8be5\u4ee3\u7801\u9875\u9762\uff0c\u590d\u5236\u4e0b\u8f7d\u8be5\u4ee3\u7801\uff1a<br><br><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/my_info_h-code-description\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/my_info_h-code-description\/<\/a><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/*\n * ESP32 AI\u5e73\u53f0 User Role \u6f14\u793a\u793a\u4f8b\n *\n * \u529f\u80fd\u63cf\u8ff0\uff1a\n * \u672c\u7a0b\u5e8f\u6f14\u793a\u5982\u4f55\u5728 ESP32 \u5f00\u53d1\u677f\u4e0a\u901a\u8fc7 User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u5411 AI \u53d1\u9001\u7528\u6237\u7684\u95ee\u9898\u548c\u6307\u4ee4\u3002\n * \u4e0e System Role \u5b9a\u4e49 AI \u7684\u884c\u4e3a\u6a21\u5f0f\u4e0d\u540c\uff0cUser Role \u627f\u8f7d\u7684\u662f\u7528\u6237\u7684\u5177\u4f53\u8f93\u5165\u5185\u5bb9\u3002\n * \u901a\u8fc7\u672c\u793a\u4f8b\uff0c\u60a8\u5c06\u7406\u89e3 System Role \u4e0e User Role \u7684\u533a\u522b\uff0c\u4ee5\u53ca\u5982\u4f55\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u914d\u5408\u4f7f\u7528\u4e24\u8005\u3002\n *\n * \u672c\u793a\u4f8b\u7279\u70b9\uff1a\n * 1. User Role \u6f14\u793a\uff1a\u901a\u8fc7 User Role \u53d1\u9001\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u548c\u6307\u4ee4\n * 2. \u914d\u5408 System Role \u4f7f\u7528\uff1a\u5c55\u793a\u5982\u4f55\u540c\u65f6\u4f7f\u7528 System Role \u548c User Role\n * 3. \u591a\u79cd User Role \u793a\u4f8b\uff1a\u5c55\u793a User Role \u5728\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u5e94\u7528\n *\n * \u4f5c\u8005\uff1aTaichi-Maker\n * \u4f5c\u8005\u5b98\u7f51\uff1ahttp:\/\/ai.taichi-maker.com\n * \u521b\u5efa\u65e5\u671f\uff1a2026\u5e7403\u670823\u65e5\n * \u7248\u672c\uff1a1.0.2\n *\n * \u786c\u4ef6\u8981\u6c42\uff1a\n * - \u652f\u6301 Wi-Fi \u7684 ESP32 \u5f00\u53d1\u677f\uff08\u63a8\u8350\u4f7f\u7528 ESP32-S3-DevKitC-1\uff0c\u56e0\u5176\u6027\u80fd\u66f4\u597d\u3001\u5185\u5b58\u66f4\u5927\uff09\n *\n * \u914d\u7f6e\u8bf4\u660e\uff1a\n * 1. \u5728 my_info.h \u4e2d\u586b\u5199 Wi-Fi \u540d\u79f0\uff08ssid\uff09\u548c\u5bc6\u7801\uff08password\uff09\n * 2. \u5728 my_info.h \u4e2d\u8bbe\u7f6e ai_api_key\uff08\u4ece AI \u5e73\u53f0\u83b7\u53d6\u7684 API \u5bc6\u94a5\uff09\n *\n * \u4f7f\u7528\u65b9\u6cd5\uff1a\n * \u5c06\u672c\u7a0b\u5e8f\u4e0a\u4f20\u81f3 ESP32 \u540e\uff0c\u6253\u5f00\u4e32\u53e3\u76d1\u89c6\u5668\uff08\u6ce2\u7279\u7387\u8bbe\u7f6e\u4e3a 115200\uff09\uff0c\n * \u7a0b\u5e8f\u4f1a\u81ea\u52a8\u8fde\u63a5 Wi-Fi \u5e76\u5411 AI \u5e73\u53f0\u53d1\u9001\u4e00\u6b21\u8bf7\u6c42\uff0c\u968f\u540e\u6253\u5370\u5b8c\u6574\u7684 HTTP \u54cd\u5e94\u5185\u5bb9\u3002\n *\n * \u6ce8\u610f\u4e8b\u9879\uff1a\n * - \u672c\u4f8b\u4f7f\u7528 client.setInsecure() \u8df3\u8fc7\u4e86 SSL \u8bc1\u4e66\u9a8c\u8bc1\uff0c\u4ec5\u9002\u7528\u4e8e\u6d4b\u8bd5\u73af\u5883\uff1b\n *   \u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5e94\u4f7f\u7528\u6709\u6548\u8bc1\u4e66\u4ee5\u786e\u4fdd\u901a\u4fe1\u5b89\u5168\u3002\n * - \u8bf7\u6c42\u4ec5\u5728 setup() \u4e2d\u6267\u884c\u4e00\u6b21\uff0cloop() \u4e3a\u7a7a\uff0c\u4e0d\u4f1a\u91cd\u590d\u53d1\u9001\u3002\n *\n * \u517c\u5bb9\u6027\u8bf4\u660e\uff1a\n * \u672c\u7a0b\u5e8f\u5df2\u5728 ESP32-S3-DevKitC-1 \u5f00\u53d1\u677f\u4e0a\u6d4b\u8bd5\u901a\u8fc7\u3002\n *\n * \u8bb8\u53ef\u8bc1\uff1aMIT License\n *\n * \u7a0b\u5e8f\u6e90\uff1a\n * \u672c\u7a0b\u5e8f\u6e90\u81ea\u592a\u6781\u521b\u5ba2\u56e2\u961f\u7cbe\u5fc3\u5f00\u53d1\u7684\u300aAI\u521b\u5ba2\u9879\u76ee\u5f00\u53d1\u6559\u7a0b\u300b\u3002\u8be5\u6559\u7a0b\u4e13\u4e3a\u70ed\u7231\u79d1\u6280\u521b\u65b0\u3001\u70ed\u8877\u4e8e\u52a8\u624b\u5b9e\u8df5\n * \u521b\u5ba2\u7231\u597d\u8005\u4e0e\u521d\u5b66\u8005\u91cf\u8eab\u6253\u9020\uff0c\u662f\u4e00\u5957\u5b8c\u5168\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u6ce8\u91cd\u5b9e\u6218\u7684AIoT\uff08\u4eba\u5de5\u667a\u80fd\u7269\u8054\u7f51\uff09\u5165\u95e8\u5b66\u4e60\u8d44\u6e90\u3002\n *\n * \u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u53ef\u4ee5\u7cfb\u7edf\u5730\u638c\u63e1\u4ece\u9879\u76ee\u6784\u601d\u3001\u65b9\u6848\u8bbe\u8ba1\u3001\u8f6f\u786c\u4ef6\u9009\u578b\uff0c\u5230\u5b9e\u9645\u642d\u5efa\u3001\u7cfb\u7edf\u96c6\u6210\u4e0e\u8c03\u8bd5\u4f18\u5316\u7684\n * \u5b8c\u6574\u5f00\u53d1\u6d41\u7a0b\u3002\n * \n * \u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u94fe\u63a5\u83b7\u5f97\u66f4\u591a\u5173\u4e8e\u672c\u6559\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a\n * http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial\/\n *\/\n\n#include &lt;WiFi.h>\n#include &lt;WiFiClientSecure.h>\n#include &lt;HTTPClient.h>\n#include \"my_info.h\"\n\n\/*\n * -------------- User Role \u8be6\u89e3 --------------\n *\n * User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u7528\u4e8e\u627f\u8f7d\u7528\u6237\u7684\u8f93\u5165\u5185\u5bb9\uff0c\u662f\u4e0e AI \u5bf9\u8bdd\u7684\u4e3b\u8981\u8f7d\u4f53\u3002\n * \u4e0e System Role \u5b9a\u4e49 AI \u7684\u884c\u4e3a\u6a21\u5f0f\u4e0d\u540c\uff0cUser Role \u53d1\u9001\u7684\u662f\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u3001\u6307\u4ee4\u6216\u4fe1\u606f\u3002\n *\n * User Role \u7684\u5178\u578b\u5e94\u7528\u573a\u666f\uff1a\n *\n * 1. \u7b80\u5355\u95ee\u7b54\uff1a\n *    \u7528\u6237\u76f4\u63a5\u63d0\u95ee\uff0cAI \u56de\u7b54\n *    {\n *      \"role\": \"user\",\n *      \"content\": \"\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd\uff1f\"\n *    }\n *\n * 2. \u683c\u5f0f\u5316\u6307\u4ee4\uff1a\n *    \u7528\u6237\u8981\u6c42 AI \u6309\u7279\u5b9a\u683c\u5f0f\u8f93\u51fa\n *    {\n *      \"role\": \"user\",\n *      \"content\": \"\u8bf7\u7528 JSON \u683c\u5f0f\u8f93\u51fa\u4ee5\u4e0b\u4ea7\u54c1\u7684\u4fe1\u606f\uff1a\u540d\u79f0\u3001\u4ef7\u683c\u3001\u5e93\u5b58\"\n *    }\n *\n *\n * \u63d0\u793a\uff1a\n * 1. User Role \u7684\u5185\u5bb9\u5c31\u662f\u7528\u6237\u60f3\u8981 AI \u56de\u7b54\u7684\u95ee\u9898\u6216\u6267\u884c\u7684\u6307\u4ee4\n * 2. User Role \u53ef\u4ee5\u5305\u542b\u683c\u5f0f\u5316\u8981\u6c42\uff0c\u6307\u5b9a AI \u7684\u8f93\u51fa\u7ed3\u6784\n * \n *\/\nconst char* ai_payload = R\"rawliteral({\n  \"model\": \"qwen-flash\",\n  \"messages\": &#91;\n    {\n      \"role\": \"system\",\n      \"content\": \"\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002\"\n    },\n    {\n      \"role\": \"user\",\n      \"content\": \"\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01\"\n    }\n  &#93;,\n  \"temperature\": 0.7\n})rawliteral\";\n\n\/\/ \u521b\u5efa\u4e00\u4e2a\u5b89\u5168\u7684 Wi-Fi \u5ba2\u6237\u7aef\uff08\u7528\u4e8e HTTPS \u8fde\u63a5\uff09\nWiFiClientSecure client;\n\n\/\/ \u521b\u5efa HTTP \u5ba2\u6237\u7aef\u5bf9\u8c61\uff0c\u7528\u4e8e\u53d1\u9001\u8bf7\u6c42\nHTTPClient https;\n\nvoid setup() {\n  \/\/ \u521d\u59cb\u5316\u4e32\u53e3\u901a\u4fe1\uff0c\u6ce2\u7279\u7387\u4e3a 115200\n  Serial.begin(115200);\n  delay(1000); \/\/ \u77ed\u6682\u7b49\u5f85\u4e32\u53e3\u7a33\u5b9a\n\n  \/\/ \u5f00\u59cb\u8fde\u63a5 Wi-Fi\n  Serial.print(\"Connecting WiFi\");\n  WiFi.begin(ssid, password);\n\n  \/\/ \u5faa\u73af\u7b49\u5f85\u76f4\u5230\u6210\u529f\u8fde\u63a5\n  while (WiFi.status() != WL_CONNECTED) {\n    delay(500);\n    Serial.print(\".\");\n  }\n\n  \/\/ \u6210\u529f\u8fde\u63a5\u540e\u6362\u884c\n  Serial.println();\n\n  \/\/ \u3010\u91cd\u8981\u3011\u8df3\u8fc7 SSL \u8bc1\u4e66\u9a8c\u8bc1\uff08\u4ec5\u7528\u4e8e\u5f00\u53d1\u6d4b\u8bd5\uff01\uff09\n  \/\/ \u5728\u771f\u5b9e\u4ea7\u54c1\u4e2d\u5e94\u52a0\u8f7d\u6709\u6548\u8bc1\u4e66\u4ee5\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb\n  client.setInsecure();\n\n  \/\/ \u8bbe\u7f6eSSL\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\n  client.setTimeout(15); \/\/ 15\u79d2\u8d85\u65f6\n\n  Serial.println();\n  Serial.println(\"---------- AI Platform Config ----------\");\n  Serial.print(\"AI Platform API Endpoint: \");\n  Serial.print(ai_host);\n  Serial.println(ai_endpoint);\n  Serial.println();\n\n  \/\/ \u8c03\u7528\u51fd\u6570\uff0c\u5411 AI \u5e73\u53f0\u53d1\u9001\u8bf7\u6c42\n  callAIPlatform();\n}\n\n\/\/ \u4e3b\u5faa\u73af\u7559\u7a7a\uff0c\u56e0\u4e3a\u672c\u4f8b\u53ea\u9700\u53d1\u9001\u4e00\u6b21\u8bf7\u6c42\nvoid loop() {\n  \/\/ \u7a7a\n}\n\n\/*\n * -------------- \u5411 AI \u5e73\u53f0\u53d1\u9001 HTTPS \u8bf7\u6c42\u7684\u6838\u5fc3\u51fd\u6570 --------------\n *\/\nvoid callAIPlatform() {\n  Serial.println(\"\\n>>> Calling AI Platform API...\");\n\n  \/\/ \u6253\u5370\u8bf7\u6c42\u4f53\u5927\u5c0f\uff0c\u7528\u4e8e\u8c03\u8bd5\n  Serial.printf(\"Request payload size: %d bytes\\n\", strlen(ai_payload));\n\n  \/\/ \u6784\u9020 Authorization \u8bf7\u6c42\u5934\uff1a\u683c\u5f0f\u4e3a \"Bearer &lt;your-api-key>\"\n  String auth = \"Bearer \";\n  auth += ai_api_key;\n\n  \/\/ \u521d\u59cb\u5316 HTTPS \u8fde\u63a5\uff08\u4f7f\u7528 client\u3001\u4e3b\u673a\u540d\u3001\u7aef\u53e3\u3001API \u8def\u5f84\uff09\n  if (https.begin(client, ai_host, ai_port, ai_endpoint)) {\n\n    \/\/ \u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\uff08\u6beb\u79d2\uff09- \u589e\u52a0\u8d85\u65f6\u65f6\u95f4\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u8bf7\u6c42\n    https.setTimeout(20000); \/\/ 20\u79d2\u8d85\u65f6\n    https.setConnectTimeout(10000); \/\/ 10\u79d2\u8fde\u63a5\u8d85\u65f6\n\n    Serial.println(\"HTTPS connection initialized, sending request...\");\n\n    \/\/ \u6dfb\u52a0\u5fc5\u8981\u7684 HTTP \u8bf7\u6c42\u5934\n    https.addHeader(\"Content-Type\", \"application\/json\");\n    https.addHeader(\"Authorization\", auth);\n\n    \/\/ \u53d1\u9001 POST \u8bf7\u6c42\uff0c\u5e76\u83b7\u53d6 HTTP \u72b6\u6001\u7801\n    int httpCode = https.POST(ai_payload);\n\n    if (httpCode > 0) {\n      \/\/ \u6253\u5370 HTTP \u54cd\u5e94\u72b6\u6001\u7801\uff08\u5982 200 \u8868\u793a\u6210\u529f\uff09\n      Serial.printf(\"HTTP Response code: %d\\n\", httpCode);\n\n      \/\/ \u5982\u679c\u54cd\u5e94\u6210\u529f\uff08HTTP 200 OK\uff09\n      if (httpCode == HTTP_CODE_OK) {\n        \/\/ \u83b7\u53d6\u5b8c\u6574\u7684\u54cd\u5e94\u5b57\u7b26\u4e32\n        String resp = https.getString();\n        Serial.println(\"----- Response -----\");\n        Serial.println(resp);  \/\/ \u6253\u5370 AI \u8fd4\u56de\u7684\u5b8c\u6574 JSON\uff08\u542b\u6a21\u578b\u751f\u6210\u7684\u56de\u7b54\uff09\n        Serial.println(\"----- End -----\");\n      }\n    } else {\n      \/\/ \u6253\u5370 HTTP \u9519\u8bef\u4fe1\u606f\uff08\u5982\u8fde\u63a5\u5931\u8d25\u3001\u8d85\u65f6\u7b49\uff09\n      Serial.printf(\"HTTP error: %s\\n\", https.errorToString(httpCode).c_str());\n      Serial.printf(\"Error code: %d\\n\", httpCode);\n    }\n\n    \/\/ \u7ed3\u675f\u672c\u6b21 HTTP \u4f1a\u8bdd\uff0c\u91ca\u653e\u8d44\u6e90\n    https.end();\n  } else {\n    \/\/ \u5982\u679c\u65e0\u6cd5\u5efa\u7acb HTTPS \u8fde\u63a5\uff0c\u6253\u5370\u9519\u8bef\u63d0\u793a\n    Serial.println(\"Unable to connect to server\");\n  }\n}\n\n\/*\n----- AI\u5e73\u53f0\u54cd\u5e94\u793a\u4f8b -----\n\u8bf7\u6ce8\u610f\uff0c\u7531\u4e8e\u4e0d\u540cAI\u5e73\u53f0\u7684\u54cd\u5e94\u4fe1\u606f\u6216\u591a\u6216\u5c11\u7684\u5b58\u5728\u4e00\u5b9a\u5dee\u5f02\uff0c\u4ee5\u4e0b\u54cd\u5e94\u793a\u4f8b\u4ec5\u4f9b\u5b66\u4e60\u53c2\u8003\u3002\n{\n  \"choices\": &#91;\n    {\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"Hello, World!\"\n      },\n      \"finish_reason\": \"stop\",\n      \"index\": 0,\n      \"logprobs\": null\n    }\n  &#93;,\n  \"object\": \"chat.completion\",\n  \"usage\": {\n    \"prompt_tokens\": 32,\n    \"completion_tokens\": 4,\n    \"total_tokens\": 36,\n    \"prompt_tokens_details\": {\n      \"cached_tokens\": 0\n    }\n  },\n  \"created\": 1767370001,\n  \"system_fingerprint\": null,\n  \"model\": \"qwen-flash\",\n  \"id\": \"chatcmpl-12345678-1234-1234-1234-123456789012\"\n}\n*\/\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #616E88\">\/*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * ESP32 AI\u5e73\u53f0 User Role \u6f14\u793a\u793a\u4f8b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u529f\u80fd\u63cf\u8ff0\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u672c\u7a0b\u5e8f\u6f14\u793a\u5982\u4f55\u5728 ESP32 \u5f00\u53d1\u677f\u4e0a\u901a\u8fc7 User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u5411 AI \u53d1\u9001\u7528\u6237\u7684\u95ee\u9898\u548c\u6307\u4ee4\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u4e0e System Role \u5b9a\u4e49 AI \u7684\u884c\u4e3a\u6a21\u5f0f\u4e0d\u540c\uff0cUser Role \u627f\u8f7d\u7684\u662f\u7528\u6237\u7684\u5177\u4f53\u8f93\u5165\u5185\u5bb9\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u901a\u8fc7\u672c\u793a\u4f8b\uff0c\u60a8\u5c06\u7406\u89e3 System Role \u4e0e User Role \u7684\u533a\u522b\uff0c\u4ee5\u53ca\u5982\u4f55\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u914d\u5408\u4f7f\u7528\u4e24\u8005\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u672c\u793a\u4f8b\u7279\u70b9\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 1. User Role \u6f14\u793a\uff1a\u901a\u8fc7 User Role \u53d1\u9001\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u548c\u6307\u4ee4<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 2. \u914d\u5408 System Role \u4f7f\u7528\uff1a\u5c55\u793a\u5982\u4f55\u540c\u65f6\u4f7f\u7528 System Role \u548c User Role<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 3. \u591a\u79cd User Role \u793a\u4f8b\uff1a\u5c55\u793a User Role \u5728\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u5e94\u7528<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u4f5c\u8005\uff1aTaichi-Maker<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u4f5c\u8005\u5b98\u7f51\uff1ahttp:\/\/ai.taichi-maker.com<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u521b\u5efa\u65e5\u671f\uff1a2026\u5e7403\u670823\u65e5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u7248\u672c\uff1a1.0.2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u786c\u4ef6\u8981\u6c42\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * - \u652f\u6301 Wi-Fi \u7684 ESP32 \u5f00\u53d1\u677f\uff08\u63a8\u8350\u4f7f\u7528 ESP32-S3-DevKitC-1\uff0c\u56e0\u5176\u6027\u80fd\u66f4\u597d\u3001\u5185\u5b58\u66f4\u5927\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u914d\u7f6e\u8bf4\u660e\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 1. \u5728 my_info.h \u4e2d\u586b\u5199 Wi-Fi \u540d\u79f0\uff08ssid\uff09\u548c\u5bc6\u7801\uff08password\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 2. \u5728 my_info.h \u4e2d\u8bbe\u7f6e ai_api_key\uff08\u4ece AI \u5e73\u53f0\u83b7\u53d6\u7684 API \u5bc6\u94a5\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u4f7f\u7528\u65b9\u6cd5\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u5c06\u672c\u7a0b\u5e8f\u4e0a\u4f20\u81f3 ESP32 \u540e\uff0c\u6253\u5f00\u4e32\u53e3\u76d1\u89c6\u5668\uff08\u6ce2\u7279\u7387\u8bbe\u7f6e\u4e3a 115200\uff09\uff0c<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u7a0b\u5e8f\u4f1a\u81ea\u52a8\u8fde\u63a5 Wi-Fi \u5e76\u5411 AI \u5e73\u53f0\u53d1\u9001\u4e00\u6b21\u8bf7\u6c42\uff0c\u968f\u540e\u6253\u5370\u5b8c\u6574\u7684 HTTP \u54cd\u5e94\u5185\u5bb9\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u6ce8\u610f\u4e8b\u9879\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * - \u672c\u4f8b\u4f7f\u7528 client.setInsecure() \u8df3\u8fc7\u4e86 SSL \u8bc1\u4e66\u9a8c\u8bc1\uff0c\u4ec5\u9002\u7528\u4e8e\u6d4b\u8bd5\u73af\u5883\uff1b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *   \u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5e94\u4f7f\u7528\u6709\u6548\u8bc1\u4e66\u4ee5\u786e\u4fdd\u901a\u4fe1\u5b89\u5168\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * - \u8bf7\u6c42\u4ec5\u5728 setup() \u4e2d\u6267\u884c\u4e00\u6b21\uff0cloop() \u4e3a\u7a7a\uff0c\u4e0d\u4f1a\u91cd\u590d\u53d1\u9001\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u517c\u5bb9\u6027\u8bf4\u660e\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u672c\u7a0b\u5e8f\u5df2\u5728 ESP32-S3-DevKitC-1 \u5f00\u53d1\u677f\u4e0a\u6d4b\u8bd5\u901a\u8fc7\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u8bb8\u53ef\u8bc1\uff1aMIT License<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u7a0b\u5e8f\u6e90\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u672c\u7a0b\u5e8f\u6e90\u81ea\u592a\u6781\u521b\u5ba2\u56e2\u961f\u7cbe\u5fc3\u5f00\u53d1\u7684\u300aAI\u521b\u5ba2\u9879\u76ee\u5f00\u53d1\u6559\u7a0b\u300b\u3002\u8be5\u6559\u7a0b\u4e13\u4e3a\u70ed\u7231\u79d1\u6280\u521b\u65b0\u3001\u70ed\u8877\u4e8e\u52a8\u624b\u5b9e\u8df5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u521b\u5ba2\u7231\u597d\u8005\u4e0e\u521d\u5b66\u8005\u91cf\u8eab\u6253\u9020\uff0c\u662f\u4e00\u5957\u5b8c\u5168\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u6ce8\u91cd\u5b9e\u6218\u7684AIoT\uff08\u4eba\u5de5\u667a\u80fd\u7269\u8054\u7f51\uff09\u5165\u95e8\u5b66\u4e60\u8d44\u6e90\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u53ef\u4ee5\u7cfb\u7edf\u5730\u638c\u63e1\u4ece\u9879\u76ee\u6784\u601d\u3001\u65b9\u6848\u8bbe\u8ba1\u3001\u8f6f\u786c\u4ef6\u9009\u578b\uff0c\u5230\u5b9e\u9645\u642d\u5efa\u3001\u7cfb\u7edf\u96c6\u6210\u4e0e\u8c03\u8bd5\u4f18\u5316\u7684<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u5b8c\u6574\u5f00\u53d1\u6d41\u7a0b\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * <\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u94fe\u63a5\u83b7\u5f97\u66f4\u591a\u5173\u4e8e\u672c\u6559\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *\/<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #5E81AC; font-weight: bold\">#<\/span><span style=\"color: #81A1C1\">include<\/span><span style=\"color: #5E81AC\"> <\/span><span style=\"color: #ECEFF4\">&lt;<\/span><span style=\"color: #A3BE8C\">WiFi.h<\/span><span style=\"color: #ECEFF4\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #5E81AC; font-weight: bold\">#<\/span><span style=\"color: #81A1C1\">include<\/span><span style=\"color: #5E81AC\"> <\/span><span style=\"color: #ECEFF4\">&lt;<\/span><span style=\"color: #A3BE8C\">WiFiClientSecure.h<\/span><span style=\"color: #ECEFF4\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #5E81AC; font-weight: bold\">#<\/span><span style=\"color: #81A1C1\">include<\/span><span style=\"color: #5E81AC\"> <\/span><span style=\"color: #ECEFF4\">&lt;<\/span><span style=\"color: #A3BE8C\">HTTPClient.h<\/span><span style=\"color: #ECEFF4\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #5E81AC; font-weight: bold\">#<\/span><span style=\"color: #81A1C1\">include<\/span><span style=\"color: #5E81AC\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">my_info.h<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * -------------- User Role \u8be6\u89e3 --------------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * User Role\uff08\u7528\u6237\u89d2\u8272\uff09\u7528\u4e8e\u627f\u8f7d\u7528\u6237\u7684\u8f93\u5165\u5185\u5bb9\uff0c\u662f\u4e0e AI \u5bf9\u8bdd\u7684\u4e3b\u8981\u8f7d\u4f53\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u4e0e System Role \u5b9a\u4e49 AI \u7684\u884c\u4e3a\u6a21\u5f0f\u4e0d\u540c\uff0cUser Role \u53d1\u9001\u7684\u662f\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u3001\u6307\u4ee4\u6216\u4fe1\u606f\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * User Role \u7684\u5178\u578b\u5e94\u7528\u573a\u666f\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 1. \u7b80\u5355\u95ee\u7b54\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    \u7528\u6237\u76f4\u63a5\u63d0\u95ee\uff0cAI \u56de\u7b54<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *      &quot;role&quot;: &quot;user&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *      &quot;content&quot;: &quot;\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd\uff1f&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 2. \u683c\u5f0f\u5316\u6307\u4ee4\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    \u7528\u6237\u8981\u6c42 AI \u6309\u7279\u5b9a\u683c\u5f0f\u8f93\u51fa<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *      &quot;role&quot;: &quot;user&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *      &quot;content&quot;: &quot;\u8bf7\u7528 JSON \u683c\u5f0f\u8f93\u51fa\u4ee5\u4e0b\u4ea7\u54c1\u7684\u4fe1\u606f\uff1a\u540d\u79f0\u3001\u4ef7\u683c\u3001\u5e93\u5b58&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * \u63d0\u793a\uff1a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 1. User Role \u7684\u5185\u5bb9\u5c31\u662f\u7528\u6237\u60f3\u8981 AI \u56de\u7b54\u7684\u95ee\u9898\u6216\u6267\u884c\u7684\u6307\u4ee4<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * 2. User Role \u53ef\u4ee5\u5305\u542b\u683c\u5f0f\u5316\u8981\u6c42\uff0c\u6307\u5b9a AI \u7684\u8f93\u51fa\u7ed3\u6784<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * <\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">const<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">char*<\/span><span style=\"color: #D8DEE9FF\"> ai_payload <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">R&quot;rawliteral(<\/span><span style=\"color: #A3BE8C\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">  &quot;model&quot;: &quot;qwen-flash&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">  &quot;messages&quot;: &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">      &quot;role&quot;: &quot;system&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">      &quot;content&quot;: &quot;\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">    },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">      &quot;role&quot;: &quot;user&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">      &quot;content&quot;: &quot;\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">  &#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">  &quot;temperature&quot;: 0.7<\/span><\/span>\n<span class=\"line\"><span style=\"color: #A3BE8C\">}<\/span><span style=\"color: #ECEFF4\">)rawliteral&quot;<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/\/ \u521b\u5efa\u4e00\u4e2a\u5b89\u5168\u7684 Wi-Fi \u5ba2\u6237\u7aef\uff08\u7528\u4e8e HTTPS \u8fde\u63a5\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">WiFiClientSecure client<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/\/ \u521b\u5efa HTTP \u5ba2\u6237\u7aef\u5bf9\u8c61\uff0c\u7528\u4e8e\u53d1\u9001\u8bf7\u6c42<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">HTTPClient https<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">void<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">setup<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u521d\u59cb\u5316\u4e32\u53e3\u901a\u4fe1\uff0c\u6ce2\u7279\u7387\u4e3a 115200<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">begin<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">115200<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #88C0D0\">delay<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">1000<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #616E88\"> \/\/ \u77ed\u6682\u7b49\u5f85\u4e32\u53e3\u7a33\u5b9a<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u5f00\u59cb\u8fde\u63a5 Wi-Fi<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Connecting WiFi<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">WiFi<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">begin<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">ssid<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> password<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u5faa\u73af\u7b49\u5f85\u76f4\u5230\u6210\u529f\u8fde\u63a5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">while<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9\">WiFi<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">status<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">!=<\/span><span style=\"color: #D8DEE9FF\"> WL_CONNECTED<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #88C0D0\">delay<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">500<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">.<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u6210\u529f\u8fde\u63a5\u540e\u6362\u884c<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u3010\u91cd\u8981\u3011\u8df3\u8fc7 SSL \u8bc1\u4e66\u9a8c\u8bc1\uff08\u4ec5\u7528\u4e8e\u5f00\u53d1\u6d4b\u8bd5\uff01\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u5728\u771f\u5b9e\u4ea7\u54c1\u4e2d\u5e94\u52a0\u8f7d\u6709\u6548\u8bc1\u4e66\u4ee5\u9632\u6b62\u4e2d\u95f4\u4eba\u653b\u51fb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">client<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">setInsecure<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u8bbe\u7f6eSSL\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">client<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">setTimeout<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #616E88\"> \/\/ 15\u79d2\u8d85\u65f6<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">---------- AI Platform Config ----------<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">AI Platform API Endpoint: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">ai_host<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">ai_endpoint<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u8c03\u7528\u51fd\u6570\uff0c\u5411 AI \u5e73\u53f0\u53d1\u9001\u8bf7\u6c42<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #88C0D0\">callAIPlatform<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/\/ \u4e3b\u5faa\u73af\u7559\u7a7a\uff0c\u56e0\u4e3a\u672c\u4f8b\u53ea\u9700\u53d1\u9001\u4e00\u6b21\u8bf7\u6c42<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">void<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">loop<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u7a7a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> * -------------- \u5411 AI \u5e73\u53f0\u53d1\u9001 HTTPS \u8bf7\u6c42\u7684\u6838\u5fc3\u51fd\u6570 --------------<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"> *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">void<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">callAIPlatform<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #A3BE8C\">&gt;&gt;&gt; Calling AI Platform API...<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u6253\u5370\u8bf7\u6c42\u4f53\u5927\u5c0f\uff0c\u7528\u4e8e\u8c03\u8bd5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">printf<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Request payload size: %d bytes<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">strlen<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">ai_payload<\/span><span style=\"color: #ECEFF4\">))<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u6784\u9020 Authorization \u8bf7\u6c42\u5934\uff1a\u683c\u5f0f\u4e3a &quot;Bearer &lt;your-api-key&gt;&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  String auth <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Bearer <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  auth <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> ai_api_key<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  \/\/ \u521d\u59cb\u5316 HTTPS \u8fde\u63a5\uff08\u4f7f\u7528 client\u3001\u4e3b\u673a\u540d\u3001\u7aef\u53e3\u3001API \u8def\u5f84\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">begin<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">client<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> ai_host<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> ai_port<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> ai_endpoint<\/span><span style=\"color: #ECEFF4\">))<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    \/\/ \u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\uff08\u6beb\u79d2\uff09- \u589e\u52a0\u8d85\u65f6\u65f6\u95f4\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u8bf7\u6c42<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">setTimeout<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">20000<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #616E88\"> \/\/ 20\u79d2\u8d85\u65f6<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">setConnectTimeout<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #B48EAD\">10000<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #616E88\"> \/\/ 10\u79d2\u8fde\u63a5\u8d85\u65f6<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">HTTPS connection initialized, sending request...<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    \/\/ \u6dfb\u52a0\u5fc5\u8981\u7684 HTTP \u8bf7\u6c42\u5934<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">addHeader<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Content-Type<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">application\/json<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">addHeader<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Authorization<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> auth<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    \/\/ \u53d1\u9001 POST \u8bf7\u6c42\uff0c\u5e76\u83b7\u53d6 HTTP \u72b6\u6001\u7801<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">int<\/span><span style=\"color: #D8DEE9FF\"> httpCode <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">POST<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">ai_payload<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">httpCode <\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      \/\/ \u6253\u5370 HTTP \u54cd\u5e94\u72b6\u6001\u7801\uff08\u5982 200 \u8868\u793a\u6210\u529f\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">printf<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">HTTP Response code: %d<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> httpCode<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      \/\/ \u5982\u679c\u54cd\u5e94\u6210\u529f\uff08HTTP 200 OK\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">httpCode <\/span><span style=\"color: #81A1C1\">==<\/span><span style=\"color: #D8DEE9FF\"> HTTP_CODE_OK<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">        \/\/ \u83b7\u53d6\u5b8c\u6574\u7684\u54cd\u5e94\u5b57\u7b26\u4e32<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        String resp <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">getString<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">----- Response -----<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">resp<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #616E88\">  \/\/ \u6253\u5370 AI \u8fd4\u56de\u7684\u5b8c\u6574 JSON\uff08\u542b\u6a21\u578b\u751f\u6210\u7684\u56de\u7b54\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">----- End -----<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">}<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">else<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      \/\/ \u6253\u5370 HTTP \u9519\u8bef\u4fe1\u606f\uff08\u5982\u8fde\u63a5\u5931\u8d25\u3001\u8d85\u65f6\u7b49\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">printf<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">HTTP error: %s<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">errorToString<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">httpCode<\/span><span style=\"color: #ECEFF4\">).<\/span><span style=\"color: #88C0D0\">c_str<\/span><span style=\"color: #ECEFF4\">())<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">      <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">printf<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Error code: %d<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> httpCode<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    \/\/ \u7ed3\u675f\u672c\u6b21 HTTP \u4f1a\u8bdd\uff0c\u91ca\u653e\u8d44\u6e90<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">https<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">end<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">else<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    \/\/ \u5982\u679c\u65e0\u6cd5\u5efa\u7acb HTTPS \u8fde\u63a5\uff0c\u6253\u5370\u9519\u8bef\u63d0\u793a<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">Serial<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">println<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Unable to connect to server<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">----- AI\u5e73\u53f0\u54cd\u5e94\u793a\u4f8b -----<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\u8bf7\u6ce8\u610f\uff0c\u7531\u4e8e\u4e0d\u540cAI\u5e73\u53f0\u7684\u54cd\u5e94\u4fe1\u606f\u6216\u591a\u6216\u5c11\u7684\u5b58\u5728\u4e00\u5b9a\u5dee\u5f02\uff0c\u4ee5\u4e0b\u54cd\u5e94\u793a\u4f8b\u4ec5\u4f9b\u5b66\u4e60\u53c2\u8003\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;choices&quot;: &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      &quot;message&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">        &quot;role&quot;: &quot;assistant&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">        &quot;content&quot;: &quot;Hello, World!&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      &quot;finish_reason&quot;: &quot;stop&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      &quot;index&quot;: 0,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      &quot;logprobs&quot;: null<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &#93;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;object&quot;: &quot;chat.completion&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;usage&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    &quot;prompt_tokens&quot;: 32,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    &quot;completion_tokens&quot;: 4,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    &quot;total_tokens&quot;: 36,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    &quot;prompt_tokens_details&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">      &quot;cached_tokens&quot;: 0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;created&quot;: 1767370001,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;system_fingerprint&quot;: null,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;model&quot;: &quot;qwen-flash&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">  &quot;id&quot;: &quot;chatcmpl-12345678-1234-1234-1234-123456789012&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*\/<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee3\u7801\u8be6\u89e3<\/h2>\n\n\n\n<p>\u4ee5\u4e0a\u4ee3\u7801\u662f\u4f7f\u7528\u4e86<a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/ai-maker-project-tutorial-index\/ai-basics\/aid101-1-2-01-simple-large-language-model-api-request\/\">\u672c\u7ae0\u7b2c\u4e00\u8282\u8bfe\u7684\u793a\u4f8b\u7a0b\u5e8f<\/a>\uff0c\u5e76\u4e14\u5bf9\u5176\u8fdb\u884c\u4e86\u7b80\u5355\u8c03\u6574\u4fee\u6539\u800c\u6765\u3002<\/p>\n\n\n\n<p>\u76f8\u6bd4\u672c\u7ae0\u7b2c\u4e00\u8282\u8bfe\u7684\u793a\u4f8b\u7a0b\u5e8f\uff0c\u672c\u7a0b\u5e8f\u4e3b\u8981\u4fee\u6539\u4e86\u4ee5\u4e0b\u51e0\u90e8\u5206\uff1a<\/p>\n\n\n\n<p><strong>\u4fee\u65391\uff1aSystem Role \u5185\u5bb9\u66f4\u52a0\u7b80\u5355<\/strong><\/p>\n\n\n\n<p>\u672c\u8282\u8bfe\u7a0b\u7684\u793a\u4f8b\u7a0b\u5e8f\u5c06System Role\u4fee\u6539\u4e3a\u66f4\u52a0\u901a\u7528\u7684\u5185\u5bb9\u3002\u8fd9\u6837\u53ef\u4ee5\u66f4\u52a0\u7a81\u51fa\u663e\u793a\u51faUser Role\u7684\u4f5c\u7528\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  \"role\": \"system\",\n  \"content\": \"\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">system<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u4fee\u65392\uff1aUser Role \u5185\u5bb9\u66f4\u52a0\u5177\u4f53<\/strong><\/p>\n\n\n\n<p>\u672c\u8282\u8bfe\u7a0b\u7684\u793a\u4f8b\u7a0b\u5e8f\u5c55\u793a\u4e86\u66f4\u52a0\u4e30\u5bcc\u591a\u6837\u7684 User Role \u7528\u6cd5\uff0c\u5305\u62ec\u7ffb\u8bd1\u8bf7\u6c42\u3001\u683c\u5f0f\u5316\u8f93\u51fa\u8981\u6c42\u7b49\u4e0d\u540c\u573a\u666f\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ System Role \u793a\u4f8b\u4e2d\u7684 User Role\n{\n  \"role\": \"user\",\n  \"content\": \"\u8bf7\u89e3\u91ca\u4e00\u4e0b\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd\u5927\u8bed\u8a00\u6a21\u578b\"\n}\n\n\/\/ \u672c\u7a0b\u5e8f\u4e2d\u7684 User Role\uff08\u7ffb\u8bd1\u8bf7\u6c42\uff09\n{\n  \"role\": \"user\",\n  \"content\": \"\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #616E88\">\/\/ System Role \u793a\u4f8b\u4e2d\u7684 User Role<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u89e3\u91ca\u4e00\u4e0b\u4ec0\u4e48\u662f\u4eba\u5de5\u667a\u80fd\u5927\u8bed\u8a00\u6a21\u578b<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/\/ \u672c\u7a0b\u5e8f\u4e2d\u7684 User Role\uff08\u7ffb\u8bd1\u8bf7\u6c42\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u672c\u7a0b\u5e8f\u4e2d\u7684\u5173\u952e\u4ee3\u7801\u89e3\u6790\"><strong>\u672c\u7a0b\u5e8f\u4e2d\u7684\u5173\u952e\u4ee3\u7801\u89e3\u6790<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5173\u952e\u4ee3\u78011user-role-\u5b9a\u4e49\"><strong>\u5173\u952e\u4ee3\u78011\uff1aUser Role \u5b9a\u4e49<\/strong><\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  \"role\": \"user\",\n  \"content\": \"\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u8fd9\u6bb5\u4ee3\u7801\u5728\u505a\u4ec0\u4e48\uff1f<\/strong>\u00a0<\/p>\n\n\n\n<p>\u8fd9\u662f\u5b9a\u4e49 User Role \u7684\u6d88\u606f\u7ed3\u6784\uff0c\u5305\u542b\u89d2\u8272\u6807\u8bc6\u548c\u5185\u5bb9\u3002<\/p>\n\n\n\n<p><strong>\u5177\u4f53\u5b8c\u6210\u4e86\u4ec0\u4e48\u4efb\u52a1\uff1f<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\"role\": \"user\"<\/code>\uff1a\u6807\u8bc6\u8fd9\u662f\u7528\u6237\u53d1\u9001\u7684\u6d88\u606f<\/li>\n\n\n\n<li><code>\"content\": \"\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01\"<\/code>\uff1a\u7528\u6237\u7684\u5177\u4f53\u6307\u4ee4<\/li>\n<\/ul>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u6837\u505a\uff1f<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>User Role \u7528\u4e8e\u627f\u8f7d\u7528\u6237\u7684\u8f93\u5165\u5185\u5bb9<\/li>\n\n\n\n<li>\u8fd9\u91cc\u7528\u6237\u8bf7\u6c42\u7ffb\u8bd1\u670d\u52a1\uff0c\u6240\u4ee5\u53d1\u9001\u4e86\u7ffb\u8bd1\u8bf7\u6c42<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5173\u952e\u4ee3\u78012\u5b8c\u6574\u7684\u6d88\u606f\u7ed3\u6784\"><strong>\u5173\u952e\u4ee3\u78012\uff1a\u5b8c\u6574\u7684\u6d88\u606f\u7ed3\u6784<\/strong><\/h3>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\"messages\": &#91;\n  {\n    \"role\": \"system\",\n    \"content\": \"\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01\"\n  }\n&#93;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">messages<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">system<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u4f60\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\u3002\u8bf7\u7528\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u8a00\u56de\u7b54\u95ee\u9898\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  }<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\">: <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u5c06\u4e0b\u9762\u7684\u6587\u5b57\u7ffb\u8bd1\u6210\u82f1\u6587\uff1a\u4f60\u597d\uff0c\u4e16\u754c\uff01<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u8fd9\u6bb5\u4ee3\u7801\u5728\u505a\u4ec0\u4e48\uff1f<\/strong>&nbsp;\u8fd9\u662f\u5b8c\u6574\u7684 messages \u6570\u7ec4\uff0c\u5305\u542b System Role \u548c User Role\u3002<\/p>\n\n\n\n<p><strong>\u5177\u4f53\u5b8c\u6210\u4e86\u4ec0\u4e48\u4efb\u52a1\uff1f<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>System Role \u8bbe\u5b9a\u4e86 AI \u7684\u884c\u4e3a\u6a21\u5f0f\uff08\u7b80\u6d01\u660e\u4e86\u56de\u7b54\uff09<\/li>\n\n\n\n<li>User Role \u53d1\u9001\u4e86\u5177\u4f53\u7684\u7ffb\u8bd1\u8bf7\u6c42<\/li>\n\n\n\n<li>\u4e24\u8005\u914d\u5408\uff0cAI \u4f1a\u6309\u7167&#8221;\u7b80\u6d01\u660e\u4e86&#8221;\u7684\u98ce\u683c\u5b8c\u6210\u7ffb\u8bd1\n<ul class=\"wp-block-list\">\n<li>System Role \u548c User Role \u914d\u5408\u4f7f\u7528<\/li>\n\n\n\n<li>System Role \u5b9a\u4e49&#8221;\u600e\u4e48\u56de\u7b54&#8221;\uff0cUser Role \u5b9a\u4e49&#8221;\u95ee\u4ec0\u4e48&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u63d0\u793a\u8bcd\u5de5\u7a0b\u7b80\u4ecb<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4ec0\u4e48\u662f\u63d0\u793a\u8bcd\u5de5\u7a0b\"><strong>\u4ec0\u4e48\u662f\u63d0\u793a\u8bcd\u5de5\u7a0b\uff1f<\/strong><\/h3>\n\n\n\n<p>\u63d0\u793a\u8bcd\u5de5\u7a0b\uff08Prompt Engineering\uff09\u662f\u6307\u901a\u8fc7\u7cbe\u5fc3\u8bbe\u8ba1\u8f93\u5165\u7ed9 AI \u7684\u63d0\u793a\u8bcd\uff08\u5373 User Role \u4e2d\u7684\u5185\u5bb9\uff09\uff0c\u6765\u83b7\u5f97\u66f4\u51c6\u786e\u3001\u66f4\u6709\u7528\u7684\u8f93\u51fa\u7684\u6280\u672f\u3002\u5728\u4e0e AI \u5bf9\u8bdd\u65f6\uff0c\u540c\u6837\u7684\u95ee\u9898\uff0c\u4e0d\u540c\u7684\u63d0\u95ee\u65b9\u5f0f\u5f80\u5f80\u4f1a\u5f97\u5230\u622a\u7136\u4e0d\u540c\u7684\u56de\u7b54\u3002<\/p>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u63d0\u793a\u8bcd\u5de5\u7a0b\u5f88\u91cd\u8981\uff1f<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u597d\u7684\u63d0\u793a\u8bcd\u53ef\u4ee5\u8ba9 AI \u51c6\u786e\u7406\u89e3\u7528\u6237\u610f\u56fe<\/li>\n\n\n\n<li>\u53ef\u4ee5\u5f15\u5bfc AI \u4ea7\u751f\u66f4\u7b26\u5408\u9884\u671f\u7684\u8f93\u51fa<\/li>\n\n\n\n<li>\u53ef\u4ee5\u63d0\u9ad8 AI \u7684\u5de5\u4f5c\u6548\u7387\uff0c\u51cf\u5c11\u65e0\u6548\u4ea4\u4e92<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u63d0\u793a\u8bcd\u5de5\u7a0b\u7684\u6838\u5fc3\u539f\u5219\"><strong>\u63d0\u793a\u8bcd\u5de5\u7a0b\u7684\u6838\u5fc3\u539f\u5219<\/strong><\/h3>\n\n\n\n<p><strong>\u539f\u52191\uff1a\u6e05\u6670\u5177\u4f53<\/strong><\/p>\n\n\n\n<p>\u6a21\u7cca\u7684\u95ee\u9898\u4f1a\u5bfc\u81f4\u6a21\u7cca\u7684\u56de\u7b54\u3002\u5c06\u95ee\u9898\u5177\u4f53\u5316\uff0cAI \u5c31\u80fd\u7ed9\u51fa\u66f4\u7cbe\u786e\u7684\u7b54\u6848\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u5e2e\u6211\u5199\u4e00\u4e2a\u5224\u65ad\u95f0\u5e74\u7684\u51fd\u6570\u4ee3\u7801\"\n\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u7528 C++ \u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5224\u65ad\u4e00\u4e2a\u5e74\u4efd\u662f\u5426\u662f\u95f0\u5e74\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5e2e\u6211\u5199\u4e00\u4e2a\u5224\u65ad\u95f0\u5e74\u7684\u51fd\u6570\u4ee3\u7801<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u7528 C++ \u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5224\u65ad\u4e00\u4e2a\u5e74\u4efd\u662f\u5426\u662f\u95f0\u5e74<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u539f\u52192\uff1a\u63d0\u4f9b\u80cc\u666f\u4fe1\u606f<\/strong><\/p>\n\n\n\n<p>\u7ed9 AI \u8db3\u591f\u7684\u80cc\u666f\u4fe1\u606f\uff0c\u5b83\u5c31\u80fd\u7406\u89e3\u4f60\u7684\u5177\u4f53\u9700\u6c42\uff0c\u7ed9\u51fa\u66f4\u8d34\u5207\u7684\u56de\u7b54\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u63a8\u8350\u51e0\u672c\u7f16\u7a0b\u4e66\"\n\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u6211\u662f\u4e00\u4e2a\u7f16\u7a0b\u521d\u5b66\u8005\uff0c\u521a\u5b66\u5b8c C++ \u57fa\u7840\uff0c\u8bf7\u63a8\u8350\u4e09\u672c\u9002\u5408\u7684\u8fdb\u9636\u4e66\u7c4d\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u63a8\u8350\u51e0\u672c\u7f16\u7a0b\u4e66<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u6211\u662f\u4e00\u4e2a\u7f16\u7a0b\u521d\u5b66\u8005\uff0c\u521a\u5b66\u5b8c C++ \u57fa\u7840\uff0c\u8bf7\u63a8\u8350\u4e09\u672c\u9002\u5408\u7684\u8fdb\u9636\u4e66\u7c4d<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u539f\u52193\uff1a\u660e\u786e\u8f93\u51fa\u683c\u5f0f<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u9700\u8981\u7279\u5b9a\u683c\u5f0f\u7684\u8f93\u51fa\uff0c\u4e00\u5b9a\u8981\u5728\u63d0\u793a\u8bcd\u4e2d\u660e\u786e\u8bf4\u660e\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u544a\u8bc9\u6211\u600e\u4e48\u5904\u7406\u8fd9\u4e2a bug\"\n\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u544a\u8bc9\u6211\u600e\u4e48\u5904\u7406\u8fd9\u4e2a bug\uff0c\u5e76\u4e14\u8bf7\u6309\u4ee5\u4e0b\u683c\u5f0f\u56de\u7b54\uff1a1. \u95ee\u9898\u539f\u56e0 2. \u89e3\u51b3\u65b9\u6848 3. \u9884\u9632\u63aa\u65bd\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u544a\u8bc9\u6211\u600e\u4e48\u5904\u7406\u8fd9\u4e2a bug<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u544a\u8bc9\u6211\u600e\u4e48\u5904\u7406\u8fd9\u4e2a bug\uff0c\u5e76\u4e14\u8bf7\u6309\u4ee5\u4e0b\u683c\u5f0f\u56de\u7b54\uff1a1. \u95ee\u9898\u539f\u56e0 2. \u89e3\u51b3\u65b9\u6848 3. \u9884\u9632\u63aa\u65bd<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>\u539f\u52194\uff1a\u5206\u6b65\u9aa4\u5904\u7406\u590d\u6742\u4efb\u52a1<\/strong><\/p>\n\n\n\n<p>\u5bf9\u4e8e\u590d\u6742\u95ee\u9898\uff0c\u5c06\u5176\u5206\u89e3\u6210\u591a\u4e2a\u6b65\u9aa4\uff0c\u8ba9 AI \u9010\u6b65\u5b8c\u6210\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u89e3\u91ca\u91cf\u5b50\u8ba1\u7b97\u5e76\u7528 Python \u5b9e\u73b0\"\n\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a\"\u8bf7\u5148\u89e3\u91ca\u91cf\u5b50\u8ba1\u7b97\u7684\u57fa\u672c\u539f\u7406\uff0c\u7136\u540e\u4f7f\u7528\u4e00\u4e2a\u7b80\u5355\u7684Python\u4ee3\u7801\u793a\u4f8b\u5411\u6211\u6f14\u793a\u91cf\u5b50\u8ba1\u7b97\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">\u274c \u4e0d\u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u89e3\u91ca\u91cf\u5b50\u8ba1\u7b97\u5e76\u7528 Python \u5b9e\u73b0<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u2705 \u597d\u7684\u63d0\u793a\u8bcd\uff1a<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u5148\u89e3\u91ca\u91cf\u5b50\u8ba1\u7b97\u7684\u57fa\u672c\u539f\u7406\uff0c\u7136\u540e\u4f7f\u7528\u4e00\u4e2a\u7b80\u5355\u7684Python\u4ee3\u7801\u793a\u4f8b\u5411\u6211\u6f14\u793a\u91cf\u5b50\u8ba1\u7b97<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-role-\u7684\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879\"><strong>User Role \u7684\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6ce8\u610f\u4e8b\u98791\u5185\u5bb9\u957f\u5ea6\u9650\u5236\"><strong>\u6ce8\u610f\u4e8b\u98791\uff1a\u5185\u5bb9\u957f\u5ea6\u9650\u5236<\/strong><\/h3>\n\n\n\n<p><strong>\u95ee\u9898\uff1a<\/strong>&nbsp;User Role \u7684\u5185\u5bb9\u662f\u5426\u6709\u9650\u5236\uff1f<\/p>\n\n\n\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u662f\u7684\uff0c\u6709 token \u6570\u91cf\u9650\u5236\uff08\u53d6\u51b3\u4e8e\u6a21\u578b\uff09<\/li>\n\n\n\n<li>User Role + System Role + \u5386\u53f2\u4fe1\u606f\u7684\u603b token \u4e0d\u80fd\u8d85\u8fc7\u6a21\u578b\u4e0a\u9650<\/li>\n\n\n\n<li>\u5982\u679c\u5185\u5bb9\u8fc7\u957f\uff0c\u53ef\u80fd\u9700\u8981\u7cbe\u7b80\u6216\u5206\u6bb5\u53d1\u9001<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5efa\u8bae\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4fdd\u6301\u95ee\u9898\u7b80\u6d01\u660e\u4e86<\/li>\n\n\n\n<li>\u907f\u514d\u91cd\u590d\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f<\/li>\n\n\n\n<li>\u5982\u679c\u8d85\u957f\uff0c\u8003\u8651\u53ea\u4fdd\u7559\u5173\u952e\u7684\u4e0a\u4e0b\u6587<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6ce8\u610f\u4e8b\u98792user-role-\u4e0e-system-role-\u7684\u914d\u5408\"><strong>\u6ce8\u610f\u4e8b\u98792\uff1aUser Role \u4e0e System Role \u7684\u914d\u5408<\/strong><\/h3>\n\n\n\n<p><strong>\u95ee\u9898\uff1a<\/strong>&nbsp;\u5982\u4f55\u6b63\u786e\u914d\u5408\u4f7f\u7528 User Role \u548c System Role\uff1f<\/p>\n\n\n\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>System Role \u8bbe\u7f6e AI \u7684\u89d2\u8272\u5b9a\u4f4d\u548c\u56de\u7b54\u98ce\u683c<\/li>\n\n\n\n<li>User Role \u53d1\u9001\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898<\/li>\n\n\n\n<li>\u4e24\u8005\u76f8\u8f85\u76f8\u6210\uff0c\u5171\u540c\u6784\u6210\u5b8c\u6574\u7684\u5bf9\u8bdd<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u603b\u7ed3\"><strong>\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"user-role-\u7684\u6838\u5fc3\u4ef7\u503c\"><strong>User Role \u7684\u6838\u5fc3\u4ef7\u503c<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5185\u5bb9\u627f\u8f7d<\/strong>\uff1a\u627f\u8f7d\u7528\u6237\u7684\u5177\u4f53\u95ee\u9898\u3001\u6307\u4ee4\u6216\u4fe1\u606f<\/li>\n\n\n\n<li><strong>\u76ee\u6807\u5bfc\u5411<\/strong>\uff1a\u660e\u786e\u544a\u8bc9 AI \u7528\u6237\u60f3\u8981\u4ec0\u4e48<\/li>\n\n\n\n<li><strong>\u7075\u6d3b\u6027\u9ad8<\/strong>\uff1a\u53ef\u7528\u4e8e\u5404\u79cd\u573a\u666f\u7684\u95ee\u7b54\u548c\u4efb\u52a1<\/li>\n\n\n\n<li><strong>\u914d\u5408 System Role<\/strong>\uff1a\u4e0e System Role \u914d\u5408\uff0c\u6784\u5efa\u5b8c\u6574\u7684\u5bf9\u8bdd\u7cfb\u7edf<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"user-role-\u7684\u7f16\u5199\u8981\u70b9\"><strong>User Role \u7684\u7f16\u5199\u8981\u70b9<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u95ee\u9898\u5177\u4f53\u660e\u786e<\/strong>\uff1a\u907f\u514d\u6a21\u7cca\u7684\u95ee\u9898\u63cf\u8ff0<\/li>\n\n\n\n<li><strong>\u63d0\u4f9b\u5fc5\u8981\u80cc\u666f\u4fe1\u606f<\/strong>\uff1a\u5e2e\u52a9 AI \u66f4\u597d\u5730\u7406\u89e3\u95ee\u9898<\/li>\n\n\n\n<li><strong>\u660e\u786e\u8f93\u51fa\u683c\u5f0f<\/strong>\uff1a\u5982\u679c\u9700\u8981\u7279\u5b9a\u683c\u5f0f\uff0c\u8981\u660e\u786e\u8bf4\u660e<\/li>\n\n\n\n<li><strong>\u5206\u6b65\u9aa4\u63d0\u95ee<\/strong>\uff1a\u590d\u6742\u95ee\u9898\u53ef\u4ee5\u5206\u6b65\u8fdb\u884c<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5bfc\u822a\u680f\uff1a\u9996\u9875 \/ AI\u6559\u7a0b\u76ee\u5f55 \/ AI\u521b\u5ba2\u9879\u76ee\u5f00\u53d1\u6559\u7a0b\u76ee\u5f55 \/ \u7b2c1\u7bc7 \u57fa\u7840\u77e5\u8bc6\u7bc7 \/ AID101-1-2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":80,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-553","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":24,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/553\/revisions"}],"predecessor-version":[{"id":579,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/553\/revisions\/579"}],"up":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/80"}],"wp:attachment":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/media?parent=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}