{"id":111855,"date":"2026-10-02T00:09:14","date_gmt":"2026-10-01T16:09:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111855.html"},"modified":"2026-10-02T00:09:14","modified_gmt":"2026-10-01T16:09:14","slug":"%e5%85%a8%e6%a0%88%e5%b7%a5%e7%a8%8b%e5%b8%88%e7%9a%84%e7%ac%ac-90-%e5%a4%a9%ef%bc%9aai-%e4%b8%8a%e7%ba%bf%e4%b8%89%e4%b8%aa%e6%9c%88%e5%90%8e%ef%bc%8c%e5%93%aa%e4%ba%9b%e4%b8%9c%e8%a5%bf%e4%bc%9a","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111855.html","title":{"rendered":"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389"},"content":{"rendered":"<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#6b7280\">\u6a21\u578b\u6f02\u79fb\u3001\u91cd\u8bd5\u4ee3\u4ef7\u3001\u4e2d\u65ad\u8bc6\u522b\u4e0e\u964d\u7ea7\u9884\u6848<\/span><span style=\"color:#6b7280\">\u2014\u2014<\/span><span style=\"color:#6b7280\">\u90a3\u4e9b\u8fd4\u56de<\/span><span style=\"color:#6b7280\"> 200 <\/span><span style=\"color:#6b7280\">\u5374\u6084\u6084\u53d8\u574f\u7684\u6545\u969c&#xff0c;\u9644<\/span><span style=\"color:#6b7280\"> ai&#064;7.0.122 <\/span><span style=\"color:#6b7280\">\u5168\u5957\u5b9e\u6d4b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u76ee\u5f55<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e00\u3001\u5148\u8bf4\u6e05\u695a&#xff1a;AI \u7cfb\u7edf\u7684&#034;\u8150\u574f&#034;\u8ddf\u4f60\u60f3\u7684\u4e0d\u4e00\u6837<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e8c\u3001\u6a21\u578b\u4f1a\u81ea\u5df1\u53d8&#xff1a;\u56db\u79cd\u53d8\u5316\u91cc&#xff0c;\u53ea\u6709\u4e00\u79cd\u4f1a\u62a5\u8b66<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e09\u3001\u5b9e\u8dd1&#xff1a;\u4f60\u5230\u5e95\u80fd\u4e0d\u80fd\u77e5\u9053&#034;\u8fd9\u6b21\u662f\u8c01\u670d\u52a1\u7684\u4f60&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u56db\u3001\u628a\u7248\u672c\u9489\u6b7b&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u522b\u540d\u66ff\u4f60\u505a\u751f\u4ea7\u51b3\u7b56<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e94\u3001\u91cd\u8bd5\u4e0d\u662f\u514d\u8d39\u7684&#xff1a;\u628a\u5b83\u7684\u65f6\u95f4\u548c\u94b1\u7b97\u6e05\u695a<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u516d\u3001\u8d85\u65f6\u4e0e\u4e2d\u65ad&#xff1a;\u4e09\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u539f\u56e0&#xff0c;\u62a5\u7684\u662f\u540c\u4e00\u4e2a\u9519<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e03\u3001\u914d\u989d\u4e0e\u9650\u6d41&#xff1a;429 \u4e0d\u662f\u9519\u8bef&#xff0c;\u662f\u4e0a\u6e38\u5728\u8ddf\u4f60\u8bf4\u8bdd<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u516b\u3001\u964d\u7ea7\u9884\u6848&#xff1a;AI \u6302\u4e86\u4f60\u8fd8\u80fd\u4e0d\u80fd\u5e72\u6d3b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u4e5d\u3001\u91d1\u4e1d\u96c0\u7684\u9677\u9631&#xff1a;\u5e73\u5747\u6570\u4f1a\u8bf4\u8c0e<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u5341\u3001\u503c\u73ed\u4e0e\u4e8b\u6545\u54cd\u5e94&#xff1a;AI \u4e8b\u6545\u7684\u6392\u67e5\u987a\u5e8f<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u5341\u4e00\u3001\u6210\u672c\u4e0e\u7f13\u5b58&#xff1a;\u547d\u4e2d\u7387\u6389\u4e86&#xff0c;\u53ef\u80fd\u53c8\u662f\u6f02\u79fb<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u5341\u4e8c\u3001\u7b2c 90 \u5929\u68c0\u67e5\u6e05\u5355<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#000000\">\u5c3e\u58f0&#xff1a;\u4f60\u8fd0\u7ef4\u7684\u5176\u5b9e\u662f&#034;\u4f60\u4e0d\u62e5\u6709\u7684\u90a3\u4e00\u534a&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u7ebf\u7b2c\u4e00\u5468\u4f60\u76ef\u7740\u65e5\u5fd7&#xff0c;\u7b2c\u4e8c\u5468\u4f60\u5f00\u59cb\u7761\u597d\u89c9&#xff0c;\u7b2c\u4e09\u5468\u4f60\u628a\u76d1\u63a7\u9762\u677f\u4ece\u6536\u85cf\u5939\u91cc\u79fb\u51fa\u53bb\u4e86\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e5d\u5341\u5929&#xff0c;\u5ba2\u670d\u7fa4\u91cc\u51fa\u73b0\u4e00\u53e5&#xff1a;\u300c\u8fd9\u4e2a\u529f\u80fd\u662f\u4e0d\u662f\u6700\u8fd1\u53d8\u50bb\u4e86&#xff1f;\u300d\u4f60\u53bb\u7ffb\u4ee3\u7801\u63d0\u4ea4\u8bb0\u5f55&#xff0c;\u6700\u8fd1\u4e00\u6b21\u6539\u52a8\u662f\u516d\u5468\u524d\u4fee\u7684\u4e00\u4e2a\u6587\u6848\u3002\u4f60\u53bb\u770b\u9519\u8bef\u7387&#xff0c;\u5e73\u7684\u3002\u4f60\u53bb\u770b<\/span><span style=\"color:#111827\"> P99 <\/span><span style=\"color:#111827\">\u5ef6\u8fdf&#xff0c;\u751a\u81f3\u6bd4\u4e0a\u7ebf\u65f6\u66f4\u597d\u4e86\u3002\u4f60\u53bb\u770b\u6210\u672c&#xff0c;\u8fd8\u964d\u4e86\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\u6307\u6807\u544a\u8bc9\u4f60\u51fa\u4e8b\u4e86\u3002\u4f46\u7528\u6237\u662f\u5bf9\u7684\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5c31\u662f<\/span><span style=\"color:#111827\"> AI <\/span><span style=\"color:#111827\">\u7cfb\u7edf\u8ddf\u4f20\u7edf\u540e\u7aef\u6700\u4e0d\u4e00\u6837\u7684\u5730\u65b9&#xff1a;\u4f20\u7edf\u540e\u7aef\u91cc&#xff0c;\u300c\u4ee3\u7801\u6ca1\u53d8\u300d\u51e0\u4e4e\u7b49\u4ef7\u4e8e\u300c\u884c\u4e3a\u6ca1\u53d8\u300d&#xff1b;<\/span><span style=\"color:#111827\">AI <\/span><span style=\"color:#111827\">\u7cfb\u7edf\u91cc&#xff0c;\u8fd9\u53e5\u8bdd\u4e0d\u6210\u7acb\u3002\u56e0\u4e3a\u4f60\u6709\u4e00\u534a\u7684\u7cfb\u7edf\u4e0d\u5728\u4f60\u624b\u91cc<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u6a21\u578b\u5728\u4f9b\u5e94\u5546\u90a3\u8fb9&#xff0c;\u6743\u91cd\u3001\u8def\u7531\u3001\u91cf\u5316\u7b56\u7565\u3001\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u5168\u90fd\u4e0d\u5f52\u4f60\u7ba1\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u7bc7\u6587\u7ae0\u8bb2\u7684\u662f\u7b2c\u4e5d\u5341\u5929\u624d\u4f1a\u66b4\u9732\u7684\u90a3\u4e00\u7c7b\u6545\u969c\u3002\u524d\u4e94\u7bc7\u6211\u4eec\u8bb2\u4e86\u600e\u4e48\u628a\u529f\u80fd\u505a\u51fa\u6765\u3001\u600e\u4e48\u8bc4\u6d4b\u3001\u600e\u4e48\u63a5\u5de5\u5177\u3001\u600e\u4e48\u8ba9<\/span><span style=\"color:#111827\"> AI <\/span><span style=\"color:#111827\">\u81ea\u5df1\u628a\u5de5\u5177\u4e32\u8d77\u6765\u5e72\u6d3b&#xff1b;\u8fd9\u4e00\u7bc7\u8bb2\u7684\u662f\u5b83\u8dd1\u8d77\u6765\u4e4b\u540e&#xff0c;<\/span><span style=\"color:#111827\">\u5728\u6ca1\u6709\u4eba\u78b0\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b&#xff0c;\u662f\u600e\u4e48\u4e00\u70b9\u70b9\u574f\u6389\u7684<\/span><span style=\"color:#111827\">&#xff0c;\u4ee5\u53ca\u4f60\u8be5\u5728\u54ea\u4e9b\u5730\u65b9\u88c5\u4e0a\u4f20\u611f\u5668\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6587\u4e2d\u7684\u6240\u6709\u7ed3\u8bba\u90fd\u6765\u81ea\u5b9e\u8dd1&#xff1a;<\/span><span style=\"color:#111827\">ai&#064;7.0.122<\/span><span style=\"color:#111827\"> &#043; <\/span><span style=\"color:#111827\">&#064;ai-sdk\/openai&#064;4.0.81<\/span><span style=\"color:#111827\"> &#043; <\/span><span style=\"color:#111827\">MockLanguageModelV4<\/span><span style=\"color:#111827\">&#xff0c;\u5b9e\u9a8c\u811a\u672c\u5168\u90e8\u53ef\u590d\u73b0&#xff0c;\u539f\u59cb\u8f93\u51fa\u6211\u4f1a\u76f4\u63a5\u8d34\u5728\u6b63\u6587\u91cc\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e00\u3001\u5148\u8bf4\u6e05\u695a&#xff1a;AI \u7cfb\u7edf\u7684&#034;\u8150\u574f&#034;\u8ddf\u4f60\u60f3\u7684\u4e0d\u4e00\u6837<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f20\u7edf\u540e\u7aef\u7684\u6545\u969c&#xff0c;\u672c\u8d28\u4e0a\u90fd\u662f<\/span><span style=\"color:#111827\">\u5d29\u6e83<\/span><span style=\"color:#111827\">\u3002\u8fdb\u7a0b\u6302\u4e86\u3001\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u6ee1\u4e86\u3001\u4f9d\u8d56\u8d85\u65f6\u4e86\u3002\u8fd9\u7c7b\u6545\u969c\u7684\u7279\u5f81\u662f\u5b83<\/span><span style=\"color:#111827\">\u4f1a\u558a<\/span><span style=\"color:#111827\">&#xff1a;\u65e5\u5fd7\u91cc\u6709\u5806\u6808&#xff0c;\u76d1\u63a7\u4e0a\u6709\u7ea2\u70b9&#xff0c;\u503c\u73ed\u7fa4\u4f1a\u54cd\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">AI <\/span><span style=\"color:#111827\">\u7cfb\u7edf\u591a\u51fa\u6765\u4e00\u7c7b\u6545\u969c&#xff0c;\u5b83\u4e0d\u558a\u3002\u5b83\u8fd4\u56de<\/span><span style=\"color:#111827\"> 200<\/span><span style=\"color:#111827\">&#xff0c;\u8fd4\u56de\u7ed3\u6784\u5408\u6cd5\u7684<\/span><span style=\"color:#111827\"> JSON<\/span><span style=\"color:#111827\">&#xff0c;\u5ef6\u8fdf\u6b63\u5e38&#xff0c;\u6210\u672c\u6b63\u5e38&#xff0c;<\/span><span style=\"color:#111827\">\u53ea\u6709\u7b54\u6848\u662f\u9519\u7684<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4ece\u76d1\u63a7\u7684\u89d2\u5ea6\u770b&#xff0c;\u6545\u969c\u53ef\u4ee5\u5206\u6210\u4e09\u5c42&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u5c42\u7ea7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u73b0\u8c61<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u5e38\u89c4\u76d1\u63a7\u53ef\u89c1\u5417<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u8c01\u5148\u53d1\u73b0<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5d29\u6e83\u5c42<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fdb\u7a0b\u6b7b\u3001\u8d85\u65f6\u3001<\/span> <span style=\"color:#111827\">5xx<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u53ef\u89c1&#xff0c;\u79d2\u7ea7\u544a\u8b66<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u503c\u73ed\u5de5\u7a0b\u5e08<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u9519\u8bef\u5c42<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd4\u56de\u4e86\u683c\u5f0f\u9519\u8bef\u7684\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u5931\u8d25<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u591a\u6570\u53ef\u89c1&#xff08;\u524d\u63d0\u662f\u4f60\u6821\u9a8c\u4e86\u8f93\u51fa&#xff09;<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u76d1\u63a7\u6216\u7528\u6237<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6f02\u79fb\u5c42<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e00\u5207\u6b63\u5e38&#xff0c;\u4f46\u8f93\u51fa\u6084\u6084\u53d8\u4e86<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0d\u53ef\u89c1<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7528\u6237&#xff0c;\u901a\u5e38\u5728\u51e0\u5929\u5230\u51e0\u5468\u540e<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e09\u5c42\u662f\u6700\u8d35\u7684\u4e00\u5c42\u3002\u539f\u56e0\u4e0d\u5728\u4e8e\u5b83\u66f4\u4e25\u91cd&#xff0c;\u800c\u5728\u4e8e\u5b83<\/span><span style=\"color:#111827\">\u628a\u53d1\u73b0\u65f6\u95f4\u63a8\u8fdf\u4e86<\/span><span style=\"color:#111827\">\u3002\u7b2c\u4e00\u5c42\u6545\u969c\u4f60\u4e94\u5206\u949f\u5c31\u77e5\u9053&#xff0c;\u7b2c\u4e09\u5c42\u4f60\u53ef\u80fd\u662f\u4e24\u4e2a\u6708\u540e\u4ece\u5ba2\u670d\u5de5\u5355\u91cc\u5012\u63a8\u51fa\u6765\u7684<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u8fd9\u65f6\u5019\u4f60\u5df2\u7ecf\u7d2f\u79ef\u4e86\u4e24\u4e2a\u6708\u7684\u4e0d\u826f\u8f93\u51fa&#xff0c;\u800c\u4e14\u5f88\u96be\u8bf4\u6e05\u662f\u4ece\u54ea\u5929\u5f00\u59cb\u574f\u7684\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f0f5fa;height:27px;vertical-align:top;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e00\u53e5\u8bdd\u8bb0\u4f4f<\/span><span style=\"color:#111827\">&#xff1a;\u7b2c\u4e00\u5c42\u548c\u7b2c\u4e8c\u5c42\u6545\u969c\u5728\u8ddf\u4f60\u8bf4\u8bdd&#xff0c;\u7b2c\u4e09\u5c42\u6545\u969c\u5728\u8ddf\u4f60\u88c5\u6b7b\u3002\u8fd0\u7ef4\u7684\u7b2c\u4e00\u539f\u5219\u662f&#xff1a;<\/span><span style=\"color:#111827\">\u7ed9\u4f60\u4e0d\u62e5\u6709\u7684\u4e1c\u897f\u88c5\u4e0a\u4f20\u611f\u5668\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e8c\u3001\u6a21\u578b\u4f1a\u81ea\u5df1\u53d8&#xff1a;\u56db\u79cd\u53d8\u5316\u91cc&#xff0c;\u53ea\u6709\u4e00\u79cd\u4f1a\u62a5\u8b66<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5148\u628a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6a21\u578b\u53d8\u5316<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fd9\u4ef6\u4e8b\u62c6\u5f00\u3002\u5f88\u591a\u5de5\u7a0b\u5e08\u8111\u5b50\u91cc\u53ea\u6709\u4e00\u79cd\u53d8\u5316<\/span><span style=\"color:#111827\">\u2014\u2014&#034;<\/span><span style=\"color:#111827\">\u4f9b\u5e94\u5546\u53d1\u4e86\u65b0\u7248\u672c&#xff0c;\u6211\u8981\u4e0d\u8981\u5347\u7ea7<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u771f\u5b9e\u7684<\/span><span style=\"color:#111827\"> 2026 <\/span><span style=\"color:#111827\">\u5e74\u6709\u56db\u79cd&#xff0c;\u800c\u4e14\u5b83\u4eec\u7684\u53ef\u89c1\u5ea6\u5b8c\u5168\u4e0d\u540c\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e00\u79cd&#xff0c;\u522b\u540d\u91cd\u6307\u5411\u3002<\/span><span style=\"color:#111827\"> \u4f60\u8c03\u7684\u662f <\/span><span style=\"color:#111827\">gpt-x<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">claude-sonnet-latest<\/span><span style=\"color:#111827\"> \u8fd9\u79cd\u4e0d\u5e26\u65e5\u671f\u7684\u540d\u5b57&#xff0c;\u4f9b\u5e94\u5546\u628a\u5b83\u6307\u5411\u4e00\u4e2a\u65b0\u7684\u5feb\u7167\u3002\u4f60\u4ec0\u4e48\u90fd\u6ca1\u505a&#xff0c;\u884c\u4e3a\u53d8\u4e86\u3002\u8fd9\u79cd\u53d8\u5316<\/span><span style=\"color:#111827\">\u4f60\u8fde&#034;\u63d0\u524d\u77e5\u9053&#034;\u7684\u8d44\u683c\u90fd\u6ca1\u6709<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4f60\u7528\u522b\u540d\u7684\u90a3\u4e00\u523b\u5c31\u5df2\u7ecf\u540c\u610f\u4e86\u8fd9\u4ef6\u4e8b\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e8c\u79cd&#xff0c;\u9759\u9ed8\u70b9\u53d1\u5e03\u3002<\/span> <span style=\"color:#111827\">\u7248\u672c\u53f7\u6ca1\u53d8&#xff0c;\u540d\u5b57\u6ca1\u53d8&#xff0c;\u4f46\u5982\u679c\u4f9b\u5e94\u5546\u5728\u540e\u53f0\u52a8\u4e86\u6743\u91cd\u3001\u5b89\u5168\u7b56\u7565\u6216\u8005\u8def\u7531\u5c42&#xff0c;\u884c\u4e3a\u7167\u6837\u4f1a\u53d8\u3002\u4f60\u552f\u4e00\u80fd\u62ff\u5230\u7684\u4fe1\u53f7\u662f<\/span><span style=\"color:#111827\"> changelog <\/span><span style=\"color:#111827\">\u91cc\u4e00\u884c\u6ca1\u4eba\u770b\u7684\u66f4\u65b0\u8bf4\u660e\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e09\u79cd&#xff0c;\u5df2\u516c\u544a\u7684\u5f03\u7528\u3002<\/span> <span style=\"color:#111827\">\u4f9b\u5e94\u5546\u53d1\u90ae\u4ef6\u8bf4<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u67d0\u5feb\u7167\u5c06\u5728<\/span><span style=\"color:#111827\"> X <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> X <\/span><span style=\"color:#111827\">\u65e5\u4e0b\u7ebf&#xff0c;\u8bf7\u8fc1\u79fb<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u8fd9\u7c7b\u53d8\u5316\u6700\u5bb9\u6613\u88ab\u5ffd\u89c6&#xff0c;\u56e0\u4e3a<\/span><span style=\"color:#111827\">\u5b83\u5f53\u4e0b\u4ec0\u4e48\u90fd\u4e0d\u5f71\u54cd<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4f60\u7684\u7cfb\u7edf\u4eca\u5929\u8dd1\u5f97\u597d\u597d\u7684&#xff0c;\u90a3\u5c01\u90ae\u4ef6\u770b\u8d77\u6765\u53ea\u662f\u901a\u77e5\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#111827\">\u7b2c\u56db\u79cd&#xff0c;\u843d\u65e5\u3002<\/span> <span style=\"color:#111827\">\u5230\u4e86\u4e0b\u7ebf\u7684\u65e5\u5b50&#xff0c;\u4f60\u6240\u6709\u8bf7\u6c42\u5f00\u59cb\u786c\u5931\u8d25\u3002\u8fd9\u662f\u552f\u4e00\u4e00\u79cd\u4f1a\u89e6\u53d1\u5e38\u89c4\u544a\u8b66\u7684\u53d8\u5316&#xff0c;\u800c\u5f53\u4f60\u6536\u5230\u544a\u8b66\u65f6&#xff0c;\u90a3\u4e2a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4ece\u5bb9\u8fc1\u79fb<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u7a97\u53e3<\/span><span style=\"color:#111827\">\u5df2\u7ecf\u5173\u6389\u4e86<\/span><span style=\"color:#111827\">\u3002<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"910\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160911-6abe85a7f2eac.png\" width=\"1504\" \/><span style=\"color:#111827\">\u56db\u79cd\u6a21\u578b\u53d8\u5316\u7c7b\u578b\u4ee5\u53ca\u5e38\u89c4\u76d1\u63a7\u80fd\u5426\u53d1\u73b0\u5b83\u4eec<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5f20\u56fe\u7684\u91cd\u70b9\u662f\u6700\u540e\u4e00\u5217&#xff1a;<\/span><span style=\"color:#111827\">\u524d\u4e09\u884c\u4ece\u6784\u9020\u4e0a\u5bf9\u9519\u8bef\u7387\u76d1\u63a7\u4e0d\u53ef\u89c1<\/span><span style=\"color:#111827\">&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u5168\u90e8\u8fd4\u56de\u6210\u529f\u3002\u4f60\u7684\u770b\u677f\u4e4b\u6240\u4ee5\u662f\u7eff\u7684&#xff0c;\u4e0d\u662f\u56e0\u4e3a\u6ca1\u95ee\u9898&#xff0c;\u662f\u56e0\u4e3a\u770b\u677f\u770b\u4e0d\u89c1\u95ee\u9898\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e0d\u662f\u5371\u8a00\u8038\u542c&#xff0c;\u662f\u6b63\u5728\u53d1\u751f\u7684\u4e8b\u3002<\/span><span style=\"color:#111827\">OpenAI <\/span><span style=\"color:#111827\">\u5728<\/span><span style=\"color:#111827\"> 2026 <\/span><span style=\"color:#111827\">\u5e74<\/span><span style=\"color:#111827\"> 4 <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> 22 <\/span><span style=\"color:#111827\">\u65e5\u53d1\u4e86\u4e00\u5219\u5f03\u7528\u516c\u544a&#xff0c;\u628a\u4e00\u6279<\/span><span style=\"color:#111827\"> GPT-4 <\/span><span style=\"color:#111827\">\u65f6\u4ee3\u7684\u5feb\u7167\u7edf\u4e00\u5b89\u6392\u5728<\/span> <span style=\"color:#111827\">2026 \u5e74 10 \u6708 23 \u65e5\u5173\u95ed<\/span><span style=\"color:#111827\">&#xff0c;\u5305\u62ec <\/span><span style=\"color:#111827\">gpt-4-0613<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">gpt-4-1106-preview<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">gpt-4-turbo-2024-04-09<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">gpt-4o-2024-05-13<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">gpt-4.1-nano<\/span><span style=\"color:#111827\">\u3001<\/span><span style=\"color:#111827\">o4-mini<\/span><span style=\"color:#111827\"> \u7b49\u3002\u5982\u679c\u4f60\u6709\u670d\u52a1\u8fd8\u5728\u7528 <\/span><span style=\"color:#111827\">gpt-4-turbo<\/span><span style=\"color:#111827\"> \u8fd9\u79cd\u540d\u5b57&#xff0c;\u90a3\u4e48<\/span><span style=\"color:#111827\">\u5728\u4f60\u8bfb\u5230\u8fd9\u7bc7\u6587\u7ae0\u7684\u65f6\u5019&#xff0c;\u8ddd\u79bb\u90a3\u6b21\u786c\u5931\u8d25\u53ea\u5269\u4e0d\u5230\u4e00\u4e2a\u6708<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">Anthropic <\/span><span style=\"color:#111827\">\u7684\u505a\u6cd5\u66f4\u900f\u660e\u4e00\u4e9b&#xff1a;\u4ed6\u4eec\u628a\u6a21\u578b\u751f\u547d\u5468\u671f\u5206\u6210<\/span><span style=\"color:#111827\"> Active \/ Legacy \/ Deprecated \/ Retired <\/span><span style=\"color:#111827\">\u56db\u6001&#xff0c;\u5e76\u627f\u8bfa\u5bf9\u516c\u5f00\u6a21\u578b<\/span><span style=\"color:#111827\">\u81f3\u5c11\u63d0\u524d 60 \u5929<\/span><span style=\"color:#111827\">\u901a\u77e5\u9000\u5f79\u3002\u4f46\u8fd9\u91cc\u6709\u4e2a\u5bb9\u6613\u8e29\u7684\u5751<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4ed6\u4eec\u7684\u6587\u6863\u660e\u786e\u5199\u4e86&#xff0c;<\/span><span style=\"color:#111827\">Amazon Bedrock <\/span><span style=\"color:#111827\">\u548c<\/span><span style=\"color:#111827\"> Google Cloud <\/span><span style=\"color:#111827\">\u4e0a\u7684\u540c\u4e00\u4e2a\u6a21\u578b<\/span><span style=\"color:#111827\">\u7531\u5404\u81ea\u5e73\u53f0\u8bbe\u5b9a\u9000\u5f79\u65f6\u95f4\u8868<\/span><span style=\"color:#111827\">\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u540c\u4e00\u4e2a <\/span><span style=\"color:#111827\">claude-sonnet-4-20250514<\/span><span style=\"color:#111827\">&#xff0c;\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u6d88\u5931\u7684\u65e5\u671f\u53ef\u80fd\u662f\u4e0d\u540c\u7684\u3002\u5982\u679c\u4f60\u7684\u67b6\u6784\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4e3b\u7528\u5b98\u65b9<\/span><span style=\"color:#111827\"> API<\/span><span style=\"color:#111827\">\u3001\u5907\u7528\u8d70\u4e91\u5e73\u53f0<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u90a3\u4e48\u8fd9\u4e24\u4e2a\u9000\u5f79\u65e5\u671f\u90fd\u5f97\u8fdb\u4f60\u7684\u65e5\u5386\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd8\u6709\u4e00\u4e2a\u66f4\u9690\u853d\u7684\u6570\u636e\u70b9\u3002<\/span><span style=\"color:#111827\">2026 <\/span><span style=\"color:#111827\">\u5e74<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> 11 <\/span><span style=\"color:#111827\">\u65e5<\/span><span style=\"color:#111827\"> GPT-5.1 <\/span><span style=\"color:#111827\">\u522b\u540d\u9000\u5f79\u65f6&#xff0c;\u6709\u56e2\u961f\u5b9e\u6d4b\u53d1\u73b0&#xff1a;<\/span><span style=\"color:#111827\">\u8c03\u7528\u6ca1\u6709\u8fd4\u56de 404&#xff0c;\u6ca1\u6709\u9519\u8bef\u7801&#xff0c;\u54cd\u5e94\u91cc\u4e5f\u6ca1\u6709\u4efb\u4f55\u7248\u672c\u53d8\u66f4\u63d0\u793a<\/span><span style=\"color:#111827\">&#xff0c;\u8bf7\u6c42\u88ab\u9759\u9ed8\u8def\u7531\u5230\u4e86\u65b0\u4e00\u4ee3\u6a21\u578b\u4e0a\u3002\u4ed6\u4eec\u7684\u5185\u90e8\u6d4b\u8bd5\u96c6\u91cc&#xff0c;\u4e00\u4e2a\u5355\u5b57\u60c5\u611f\u5206\u7c7b\u5668\u7684\u8f93\u51fa\u4ece <\/span><span style=\"color:#111827\">Neutral.<\/span><span style=\"color:#111827\"> \u53d8\u6210\u4e86 <\/span><span style=\"color:#111827\">Neutral<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u5c31\u5c11\u4e86\u4e00\u4e2a\u53e5\u53f7\u3002\u4e0b\u6e38\u7528\u5b57\u7b26\u4e32\u76f8\u7b49\u5224\u65ad\u7684\u4ee3\u7801\u5f00\u59cb\u9759\u9ed8\u9519\u8bef\u5206\u7c7b\u3002\u5728\u53e6\u4e00\u4e2a<\/span><span style=\"color:#111827\"> JSON <\/span><span style=\"color:#111827\">\u8f93\u51fa\u6d4b\u8bd5\u91cc&#xff0c;\u4e0d\u540c\u6a21\u578b\u7248\u672c\u4ea7\u751f\u7684\u7a7a\u767d\u6a21\u5f0f\u548c\u952e\u987a\u5e8f\u6709\u7ec6\u5fae\u5dee\u5f02&#xff0c;\u8f93\u51fa\u4f9d\u7136\u662f\u5408\u6cd5<\/span><span style=\"color:#111827\"> JSON<\/span><span style=\"color:#111827\">&#xff0c;\u4f46\u5b57\u8282\u5e8f\u5217\u53d8\u4e86&#xff0c;\u76f4\u63a5\u7834\u574f\u4e86\u57fa\u4e8e\u54c8\u5e0c\u7684\u53bb\u91cd\u7f13\u5b58\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5c31\u662f&#034;\u6f02\u79fb&#034;\u6700\u5178\u578b\u7684\u5f62\u6001&#xff1a;\u8bf7\u6c42\u6210\u529f\u3001\u6307\u6807\u6b63\u5e38\u3001\u7528\u6237\u62ff\u5230\u9519\u8bef\u7ed3\u679c\u3001\u51e0\u5929\u540e\u652f\u6301\u5de5\u5355\u51fa\u73b0\u3001\u503c\u73ed\u5de5\u7a0b\u5e08\u82b1\u534a\u5929\u53bb\u627e\u4e00\u6bb5\u6839\u672c\u4e0d\u5b58\u5728\u7684\u4ee3\u7801\u6539\u52a8\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e09\u3001\u5b9e\u8dd1&#xff1a;\u4f60\u5230\u5e95\u80fd\u4e0d\u80fd\u77e5\u9053&#034;\u8fd9\u6b21\u662f\u8c01\u670d\u52a1\u7684\u4f60&#034;<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u597d&#xff0c;\u65e2\u7136\u4e0a\u6e38\u4f1a\u53d8&#xff0c;\u90a3\u4e0b\u4e00\u4e2a\u95ee\u9898\u5c31\u662f&#xff1a;<\/span><span style=\"color:#111827\">\u6211\u80fd\u77e5\u9053\u53d8\u4e86\u6ca1\u6709\u5417&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u76f4\u89c9\u4e0a\u4f60\u53ef\u80fd\u4f1a\u60f3&#xff1a;\u54cd\u5e94\u91cc\u4e0d\u662f\u6709<\/span><span style=\"color:#111827\"> modelId <\/span><span style=\"color:#111827\">\u5417&#xff1f;\u8bfb\u5b83\u4e0d\u5c31\u884c\u4e86\u3002\u6211\u4eec\u6765\u5b9e\u6d4b\u8fd9\u4e2a\u76f4\u89c9\u5bf9\u4e0d\u5bf9\u3002<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">3.1 \u5f53\u4e0a\u6e38\u5982\u5b9e\u4e0a\u62a5\u65f6<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5148\u6784\u9020\u4e00\u4e2a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8bda\u5b9e\u7684\u7f51\u5173<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff1a;\u4f60\u8bf7\u6c42\u7684\u662f\u6d6e\u52a8\u522b\u540d<\/span> <span style=\"color:#111827\">gpt-x<\/span><span style=\"color:#111827\">&#xff0c;\u4f46\u7f51\u5173\u5b9e\u9645\u628a\u4f60\u8def\u7531\u5230\u4e86\u5feb\u7167 <\/span><span style=\"color:#111827\">gpt-x-2026-09-01<\/span><span style=\"color:#111827\">&#xff0c;\u5e76\u4e14<\/span><span style=\"color:#111827\">\u5982\u5b9e\u544a\u8bc9\u4e86\u4f60<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">import { generateText } from &#039;ai&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">import { MockLanguageModelV4 } from &#039;ai\/test&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const REQUESTED &#061; &#039;gpt-x&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const ACTUALLY_SERVED &#061; &#039;gpt-x-2026-09-01&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const model &#061; new MockLanguageModelV4({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0provider: &#039;acme-gateway&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0modelId: REQUESTED,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0doGenerate: [<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0{<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0content: [{ type: &#039;text&#039;, text: &#039;ok&#039; }],<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0finishReason: { unified: &#039;stop&#039;, raw: &#039;stop&#039; },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0usage: { inputTokens: { total: 100, noCache: 100, cacheRead: 0, cacheWrite: 0 },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0outputTokens: { total: 10, text: 10, reasoning: 0 } },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0modelId: ACTUALLY_SERVED,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0response: { id: &#039;resp_1&#039;, timestamp: new Date(&#039;2026-09-30T02:00:00Z&#039;), modelId: ACTUALLY_SERVED },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0providerMetadata: { &#039;acme-gateway&#039;: { servedModel: ACTUALLY_SERVED } },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0],<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const r &#061; await generateText({ model, prompt: &#039;hello&#039; });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">console.log(r.response.modelId);<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5b9e\u8dd1\u8f93\u51fa&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f60\u8bf7\u6c42\u7684<\/span><span style=\"color:#111827\"> &#061; gpt-x<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5b9e\u9645\u670d\u52a1\u7684<\/span><span style=\"color:#111827\"> &#061; gpt-x-2026-09-01<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">result.response.modelId &#061; &#034;gpt-x-2026-09-01&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u662f\u5426\u7b49\u4e8e\u670d\u52a1\u7aef\u771f\u76f8&#xff1f;<\/span> <span style=\"color:#111827\">\u662f&#xff08;\u53ef\u7528\u4f5c\u6f02\u79fb\u68c0\u6d4b&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">result.providerMetadata &#061; {&#034;acme-gateway&#034;:{&#034;servedModel&#034;:&#034;gpt-x-2026-09-01&#034;}}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u80fd\u5426\u8bfb\u5230\u670d\u52a1\u7aef\u771f\u76f8&#xff1f;<\/span> <span style=\"color:#111827\">\u80fd<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5f88\u597d&#xff0c;<\/span><span style=\"color:#111827\">SDK <\/span><span style=\"color:#111827\">\u5982\u5b9e\u900f\u4f20\u4e86\u670d\u52a1\u7aef\u7684\u6807\u8bc6\u3002\u8fd9\u91cc\u6709\u4e2a\u7ec6\u8282\u503c\u5f97\u7559\u610f&#xff1a;<\/span><span style=\"color:#111827\">response.modelId<\/span><span style=\"color:#111827\"> \u53d6\u7684\u662f<\/span><span style=\"color:#111827\">\u670d\u52a1\u7aef\u8fd4\u56de\u4f53\u91cc\u7684 model \u5b57\u6bb5<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u4e0d\u662f\u56de\u663e\u4f60\u8bf7\u6c42\u7684\u503c\u3002\u8fd9\u662f\u5224\u65ad\u6f02\u79fb\u7684\u7269\u7406\u57fa\u7840\u3002<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">3.2 \u5f53\u4e0a\u6e38\u4e0d\u4e0a\u62a5\u65f6\u2014\u2014\u8fd9\u624d\u662f&#034;\u9759\u9ed8&#034;\u7684\u771f\u76f8<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u73b0\u5728\u628a\u540c\u6837\u7684\u5b9e\u9a8c\u6539\u4e00\u4e2a\u5b57&#xff1a;\u8ba9\u7f51\u5173<\/span><span style=\"color:#111827\">\u4e0d\u4e0a\u62a5<\/span><span style=\"color:#111827\">\u81ea\u5df1\u7684\u771f\u5b9e\u8eab\u4efd\u3002\u8fd9\u5728\u73b0\u5b9e\u4e2d\u5bf9\u5e94\u7684\u662f<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4e2d\u8f6c\u7ad9\u3001\u81ea\u5efa\u7f51\u5173\u3001\u6216\u8005\u67d0\u4e9b\u4e0d\u586b<\/span> <span style=\"color:#111827\">model<\/span><span style=\"color:#111827\"> \u5b57\u6bb5\u7684\u517c\u5bb9\u5b9e\u73b0\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5b9e\u8dd1\u8f93\u51fa&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f60\u8bf7\u6c42\u7684<\/span><span style=\"color:#111827\"> &#061; gpt-x | <\/span><span style=\"color:#111827\">\u670d\u52a1\u7aef\u5b9e\u9645&#xff08;\u5047\u8bbe\u5df2\u88ab\u6362\u6210<\/span><span style=\"color:#111827\"> gpt-x-2026-09-01<\/span><span style=\"color:#111827\">&#xff0c;\u4f46\u4e0a\u6e38\u6ca1\u8bf4&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">result.response.modelId &#061; &#034;gpt-x&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> undefined <\/span><span style=\"color:#111827\">\u8fd8\u662f\u56de\u663e\u4e86\u4f60\u8bf7\u6c42\u7684\u540d\u5b57&#xff1f;<\/span> <span style=\"color:#111827\">\u56de\u663e\u4e86\u4f60\u8bf7\u6c42\u7684\u540d\u5b57&#xff08;\u5371\u9669&#xff1a;\u770b\u8d77\u6765\u4e00\u5207\u6b63\u5e38&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">result.providerMetadata &#061; undefined<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u91cc\u662f\u672c\u7bc7\u6700\u91cd\u8981\u7684\u4e00\u884c\u8f93\u51fa\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5f53\u4e0a\u6e38\u4e0d\u4e0a\u62a5\u65f6&#xff0c;<\/span><span style=\"color:#111827\">SDK <\/span><span style=\"color:#111827\">\u4e0d\u4f1a\u7ed9\u4f60<\/span> <span style=\"color:#111827\">undefined<\/span><span style=\"color:#111827\">&#xff0c;\u5b83\u4f1a<\/span><span style=\"color:#111827\">\u56de\u663e\u4f60\u81ea\u5df1\u5199\u8fdb\u53bb\u7684\u90a3\u4e2a\u540d\u5b57<\/span><span style=\"color:#111827\">\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4f60\u4ee3\u7801\u91cc\u90a3\u53e5 <\/span><span style=\"color:#111827\">if (r.response.modelId !&#061;&#061; EXPECTED) alert(&#8230;)<\/span><span style=\"color:#111827\"> \u6c38\u8fdc\u4e3a\u5047\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#111827\">\u4f60\u5fc5\u987b\u7406\u89e3\u8fd9\u4ef6\u4e8b\u7684\u542b\u4e49&#xff1a;<\/span><span style=\"color:#111827\">response.modelId<\/span><span style=\"color:#111827\"> \u4e0d\u662f\u8bc1\u636e&#xff0c;\u5b83\u662f\u4f60\u8bf7\u6c42\u7684\u56de\u58f0\u3002<\/span><span style=\"color:#111827\"> \u53ea\u6709\u5f53\u4e0a\u6e38\u613f\u610f\u914d\u5408\u65f6\u5b83\u624d\u662f\u8bc1\u636e\u3002<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"910\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160912-6abe85a8640ca.png\" width=\"1475\" \/><span style=\"color:#111827\">response.modelId \u662f\u771f\u76f8\u8fd8\u662f\u56de\u58f0<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">3.3 \u90a3\u8be5\u600e\u4e48\u529e&#xff1a;\u628a\u539f\u59cb\u54cd\u5e94\u7559\u4e0b\u6765<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u65e2\u7136<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u5c42\u9762\u53ef\u80fd\u62ff\u4e0d\u5230\u771f\u76f8&#xff0c;\u5c31\u8981\u5f80\u4e0b\u4e00\u5c42\u53bb\u62ff\u3002<\/span><span style=\"color:#111827\">AI SDK <\/span><span style=\"color:#111827\">\u5728\u54cd\u5e94\u5bf9\u8c61\u4e0a\u7559\u4e86\u4e09\u4e2a\u53e3\u5b50&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ result.response <\/span><span style=\"color:#111827\">\u7684\u5b8c\u6574\u5f62\u72b6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">{<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0id: &#039;resp_abc&#039;, \/\/ <\/span><span style=\"color:#111827\">\u4e0a\u6e38\u7ed9\u7684\u54cd\u5e94<\/span><span style=\"color:#111827\"> ID<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0timestamp: Date, \/\/ <\/span><span style=\"color:#111827\">\u4e0a\u6e38\u7ed9\u7684\u65f6\u95f4\u6233<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0modelId: &#039;&#8230;&#039;, \/\/ <\/span><span style=\"color:#111827\">\u53ef\u80fd\u662f\u771f\u76f8&#xff0c;\u4e5f\u53ef\u80fd\u662f\u56de\u58f0<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0headers: { &#8230; }, \/\/ <\/span><span style=\"color:#111827\">\u539f\u59cb<\/span><span style=\"color:#111827\"> HTTP <\/span><span style=\"color:#111827\">\u54cd\u5e94\u5934<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0body: &#039;&#8230;&#039;, \/\/ <\/span><span style=\"color:#111827\">\u539f\u59cb\u54cd\u5e94\u4f53<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0messages: [&#8230;], \/\/ <\/span><span style=\"color:#111827\">\u6d88\u606f\u8bb0\u5f55<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u524d\u4e24\u8282\u5b9e\u9a8c\u91cc <\/span><span style=\"color:#111827\">headers<\/span><span style=\"color:#111827\"> \u548c <\/span><span style=\"color:#111827\">body<\/span><span style=\"color:#111827\"> \u90fd\u662f <\/span><span style=\"color:#111827\">undefined<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u56e0\u4e3a<\/span><span style=\"color:#111827\"> mock <\/span><span style=\"color:#111827\">\u6a21\u578b\u4e0d\u4ea7\u751f\u771f\u5b9e<\/span><span style=\"color:#111827\"> HTTP <\/span><span style=\"color:#111827\">\u6d41\u91cf\u3002\u90a3\u771f\u5b9e\u7684<\/span><span style=\"color:#111827\"> provider <\/span><span style=\"color:#111827\">\u586b\u4e0d\u586b&#xff1f;\u6211\u53bb\u8bfb\u4e86<\/span> <span style=\"color:#111827\">&#064;ai-sdk\/openai&#064;4.0.81<\/span><span style=\"color:#111827\"> \u7684\u5b9e\u73b0&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">JavaScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ &#064;ai-sdk\/openai dist\/index.js<\/span><span style=\"color:#111827\">&#xff08;\u8282\u9009&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">async doGenerate(options) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const { responseHeaders, value: response, rawValue: rawResponse } &#061;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0await postJsonToApi({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0url: this.config.url({ path: &#039;\/chat\/completions&#039;, modelId: this.modelId }),<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0headers: combineHeaders(this.config.headers?.(), options.headers),<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0body,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\/\/ &#8230;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0response: {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8230;getResponseMetadata(response), \/\/ <\/span><span style=\"color:#111827\">\u4ece\u54cd\u5e94\u4f53\u53d6<\/span><span style=\"color:#111827\"> id \/ model \/ created<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0headers: responseHeaders, \/\/ <\/span><span style=\"color:#111827\">\u5b8c\u6574\u54cd\u5e94\u5934&#xff08;\u542b<\/span><span style=\"color:#111827\"> x-request-id <\/span><span style=\"color:#111827\">\u4e4b\u7c7b&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0body: rawResponse, \/\/ <\/span><span style=\"color:#111827\">\u539f\u59cb\u54cd\u5e94\u4f53\u6587\u672c<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7ed3\u8bba\u5f88\u6e05\u695a<\/span><span style=\"color:#111827\">&#xff1a;\u771f\u5b9e<\/span><span style=\"color:#111827\"> provider <\/span><span style=\"color:#111827\">\u4f1a\u628a\u5b8c\u6574\u54cd\u5e94\u5934\u548c\u539f\u59cb\u54cd\u5e94\u4f53\u4ea4\u7ed9\u4f60\u3002\u8fd9\u5c31\u7ed9\u4e86\u4f60\u4e24\u4e2a\u53ef\u9760\u7684\u4f20\u611f\u5668&#xff1a;<\/span><\/p>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u4ece <\/span><span style=\"color:#111827\">headers<\/span><span style=\"color:#111827\"> \u91cc\u53d6\u4e0a\u6e38\u7684 request-id<\/span><span style=\"color:#111827\">&#xff0c;\u4f5c\u4e3a\u6392\u67e5\u65f6\u7684\u5173\u8054\u952e\u3002\u7528\u6237\u6295\u8bc9<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u67d0\u6b21\u56de\u7b54\u4e0d\u5bf9<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u4f60\u80fd\u51ed\u8fd9\u4e2a<\/span><span style=\"color:#111827\"> ID <\/span><span style=\"color:#111827\">\u627e\u5230\u90a3\u4e00\u6b21\u8c03\u7528\u3002<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u4ece <\/span><span style=\"color:#111827\">body<\/span><span style=\"color:#111827\"> \u91cc\u81ea\u5df1\u89e3\u6790\u670d\u52a1\u7aef\u58f0\u660e\u7684\u6a21\u578b\u540d<\/span><span style=\"color:#111827\">&#xff0c;\u7ed5\u5f00<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u7684\u56de\u663e\u884c\u4e3a\u3002<\/span><\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5199\u6210\u4e00\u4e2a\u53ef\u4ee5\u590d\u7528\u7684\u91c7\u96c6\u5668&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type DriftRecord &#061; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0requested: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0served: string | null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0drifted: boolean;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0requestId: string | null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function collectDrift(params: {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0requested: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0response: { modelId?: string; headers?: Record&lt;string, string&gt;; body?: string };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}): DriftRecord {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const { requested, response } &#061; params;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u4f18\u5148\u4ece\u539f\u59cb\u54cd\u5e94\u4f53\u91cc\u53d6\u771f\u76f8&#xff0c;\u53d6\u4e0d\u5230\u518d\u9000\u56de<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u7684<\/span><span style=\"color:#111827\"> modelId<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0let served: string | null &#061; null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (response.body) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0try {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const parsed &#061; JSON.parse(response.body) as { model?: string };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0served &#061; parsed.model ?? null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0} catch {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0served &#061; null; \/\/ <\/span><span style=\"color:#111827\">\u54cd\u5e94\u4f53\u4e0d\u662f<\/span><span style=\"color:#111827\"> JSON<\/span><span style=\"color:#111827\">&#xff0c;\u653e\u5f03<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0served &#061; served ?? response.modelId ?? null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const requestId &#061;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0response.headers?.[&#039;x-request-id&#039;] ??<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0response.headers?.[&#039;request-id&#039;] ??<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0response.headers?.[&#039;x-amzn-requestid&#039;] ??<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0requested,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0served,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u5173\u952e&#xff1a;\u53ea\u6709\u5728\u660e\u786e\u62ff\u5230<\/span><span style=\"color:#111827\"> served <\/span><span style=\"color:#111827\">\u4e14\u4e0e\u8bf7\u6c42\u4e0d\u4e00\u81f4\u65f6\u624d\u7b97<\/span><span style=\"color:#111827\"> drift<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u62ff\u4e0d\u5230<\/span><span style=\"color:#111827\"> served <\/span><span style=\"color:#111827\">\u4e0d\u80fd\u5f53\u4f5c<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6ca1\u6f02\u79fb<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u8981\u5355\u72ec\u8ba1\u6570<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0drifted: served !&#061;&#061; null &amp;&amp; served !&#061;&#061; requested,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0requestId,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ce8\u610f <\/span><span style=\"color:#111827\">drifted<\/span><span style=\"color:#111827\"> \u7684\u8ba1\u7b97\u903b\u8f91\u91cc\u85cf\u4e86\u4e00\u4e2a\u5224\u65ad&#xff1a;<\/span><span style=\"color:#111827\">&#034;\u62ff\u4e0d\u5230&#034;\u548c&#034;\u6ca1\u6f02\u79fb&#034;\u662f\u4e24\u4ef6\u4e8b<\/span><span style=\"color:#111827\">\u3002\u5982\u679c\u4f60\u7684\u91c7\u96c6\u5668\u628a <\/span><span style=\"color:#111827\">served &#061;&#061;&#061; null<\/span> <span style=\"color:#111827\">\u4e5f\u5f52\u5230<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6ca1\u6f02\u79fb<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u90a3\u4f60\u5c31\u53c8\u56de\u5230\u4e86\u76f2\u533a\u3002\u6b63\u786e\u7684\u505a\u6cd5\u662f\u4e09\u5206\u7c7b&#xff1a;<\/span><span style=\"color:#111827\">same<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">drifted<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">unknown<\/span><span style=\"color:#111827\">&#xff0c;\u800c <\/span><span style=\"color:#111827\">unknown<\/span> <span style=\"color:#111827\">\u7684\u5360\u6bd4\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u8981\u76ef\u7684\u6307\u6807<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u5b83\u8861\u91cf\u7684\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4f60\u8fd8\u5269\u591a\u5c11\u53ef\u89c1\u5ea6<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u56db\u3001\u628a\u7248\u672c\u9489\u6b7b&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u522b\u540d\u66ff\u4f60\u505a\u751f\u4ea7\u51b3\u7b56<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u77e5\u9053\u4e86\u6f02\u79fb\u7684\u53d1\u751f\u673a\u7406&#xff0c;\u7b2c\u4e00\u4e2a\u52a8\u4f5c\u5c31\u662f\u628a\u4e0d\u786e\u5b9a\u6027\u6536\u6389&#xff1a;<\/span><span style=\"color:#111827\">\u751f\u4ea7\u73af\u5883\u7528\u7cbe\u786e\u7248\u672c&#xff0c;\u4e0d\u8981\u7528\u6d6e\u52a8\u522b\u540d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4ef6\u4e8b\u7684\u6536\u76ca\u4e0d\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u9632\u6b62\u6f02\u79fb<\/span><span style=\"color:#111827\">&#034;\u2014\u2014<\/span><span style=\"color:#111827\">\u5b83\u9632\u4e0d\u4f4f\u4f9b\u5e94\u5546\u52a8\u6743\u91cd<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u800c\u662f<\/span><span style=\"color:#111827\">\u628a&#034;\u53d8\u5316&#034;\u4ece\u73af\u5883\u4e8b\u4ef6\u53d8\u6210\u4ee3\u7801\u53d8\u66f4<\/span><span style=\"color:#111827\">\u3002\u7528\u522b\u540d\u65f6&#xff0c;\u6a21\u578b\u6362\u4e86\u662f\u4e00\u6b21\u6ca1\u4eba<\/span><span style=\"color:#111827\"> review <\/span><span style=\"color:#111827\">\u7684\u73af\u5883\u53d8\u66f4&#xff1b;\u7528\u7cbe\u786e\u5feb\u7167\u65f6&#xff0c;\u6362\u6a21\u578b\u662f\u4e00\u6b21\u53ef\u4ee5<\/span><span style=\"color:#111827\"> review<\/span><span style=\"color:#111827\">\u3001\u53ef\u4ee5\u7070\u5ea6\u3001\u53ef\u4ee5\u56de\u6eda\u7684\u63d0\u4ea4\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ models.ts \u2014\u2014 <\/span><span style=\"color:#111827\">\u5168\u4ee3\u7801\u5e93\u552f\u4e00\u7684\u6a21\u578b\u6807\u8bc6\u6765\u6e90<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">export const MODELS &#061; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0chat: {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0id: &#039;gpt-x-2026-09-01&#039;, \/\/ <\/span><span style=\"color:#111827\">\u751f\u4ea7&#xff1a;\u9489\u6b7b\u5feb\u7167&#xff0c;\u7981\u6b62\u6d6e\u52a8\u522b\u540d<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0pinnedOn: &#039;2026-09-28&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0verifiedAgainstGoldenSet: true, \/\/ <\/span><span style=\"color:#111827\">\u6362\u8fd9\u4e2a\u503c\u4e4b\u524d\u5fc5\u987b\u8dd1\u8fc7\u91d1\u6807\u96c6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0fallback: &#039;claude-y-20260514&#039;, \/\/ <\/span><span style=\"color:#111827\">\u5907\u80ce\u73b0\u5728\u5c31\u9009\u597d&#xff0c;\u4e0d\u8981\u7b49\u51fa\u4e8b\u518d\u9009<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0sunsetWatch: &#039;https:\/\/provider.example\/deprecations&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">} as const;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u6587\u4ef6\u7684\u4ef7\u503c\u5728\u4e8e\u5b83\u8ba9<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7248\u672c\u53d8\u66f4<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53d8\u6210\u4e00\u6b21<\/span><span style=\"color:#111827\"> diff<\/span><span style=\"color:#111827\">\u3002\u4efb\u4f55\u6a21\u578b\u6807\u8bc6\u7684\u6539\u52a8\u90fd\u6709\u63d0\u4ea4\u8bb0\u5f55\u3001\u6709\u8bc4\u5ba1\u3001\u6709\u56de\u6eda\u70b9\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f46\u5fc5\u987b\u6e05\u9192&#xff1a;<\/span><span style=\"color:#111827\">\u9489\u6b7b\u7248\u672c\u4e0d\u7b49\u4e8e\u5b89\u5168<\/span><span style=\"color:#111827\">\u3002\u770b\u771f\u5b9e\u6570\u636e<\/span><span style=\"color:#111827\">\u2014\u2014Anthropic <\/span><span style=\"color:#111827\">\u7684<\/span> <span style=\"color:#111827\">claude-sonnet-4-20250514<\/span><span style=\"color:#111827\"> \u548c <\/span><span style=\"color:#111827\">claude-opus-4-20250514<\/span> <span style=\"color:#111827\">\u4e8e<\/span><span style=\"color:#111827\"> 2026 <\/span><span style=\"color:#111827\">\u5e74<\/span><span style=\"color:#111827\"> 4 <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> 14 <\/span><span style=\"color:#111827\">\u65e5\u88ab\u5ba3\u5e03\u5f03\u7528&#xff0c;<\/span><span style=\"color:#111827\">\u4e24\u4e2a\u6708\u540e\u7684 6 \u6708 15 \u65e5\u5c31\u9000\u5f79\u4e86<\/span><span style=\"color:#111827\">\u3002<\/span><span style=\"color:#111827\">claude-opus-4-1-20250805<\/span> <span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> 6 <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> 5 <\/span><span style=\"color:#111827\">\u65e5\u5ba3\u5e03\u3001<\/span><span style=\"color:#111827\">8 <\/span><span style=\"color:#111827\">\u6708<\/span><span style=\"color:#111827\"> 5 <\/span><span style=\"color:#111827\">\u65e5\u9000\u5f79&#xff0c;\u540c\u6837\u4e24\u4e2a\u6708\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u5373\u4f7f\u4f60\u9489\u7684\u662f\u5e26\u65e5\u671f\u7684\u7cbe\u786e\u5feb\u7167&#xff0c;\u4f9b\u5e94\u5546\u7ed9\u4f60\u7684\u4ece\u5bb9\u65f6\u95f4\u4e5f\u53ef\u80fd\u53ea\u6709\u4e24\u4e2a\u6708\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6240\u4ee5<\/span><span style=\"color:#111827\"> pin <\/span><span style=\"color:#111827\">\u89e3\u51b3\u7684\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53ef\u89c1\u6027\u95ee\u9898<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u4e0d\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u751f\u547d\u5468\u671f\u95ee\u9898<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u751f\u547d\u5468\u671f\u95ee\u9898\u8981\u9760\u7b2c\u4e94\u8282\u7684\u4e1c\u897f\u89e3\u51b3\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd8\u6709\u4e00\u4ef6\u4e8b\u503c\u5f97\u5355\u72ec\u505a&#xff1a;<\/span><span style=\"color:#111827\">\u7ed9 <\/span><span style=\"color:#111827\">sunsetWatch<\/span><span style=\"color:#111827\"> \u88c5\u4e2a\u63d0\u9192<\/span><span style=\"color:#111827\">\u3002\u8fd9\u4e2a\u5b57\u6bb5\u4e0d\u662f\u88c5\u9970\u54c1&#xff0c;\u5b83\u662f\u628a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6211\u8be5\u53bb\u8bfb\u4e00\u773c\u4f9b\u5e94\u5546\u6587\u6863<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fd9\u4ef6\u4e8b\u4ece\u4eba\u8111\u91cc\u642c\u5230\u7cfb\u7edf\u91cc\u3002\u4f60\u53ef\u4ee5\u5728<\/span><span style=\"color:#111827\"> CI <\/span><span style=\"color:#111827\">\u91cc\u52a0\u4e00\u4e2a<\/span><span style=\"color:#111827\"> weekly job<\/span><span style=\"color:#111827\">&#xff0c;\u6293\u53d6\u90a3\u51e0\u4e2a<\/span><span style=\"color:#111827\"> pubic deprecation <\/span><span style=\"color:#111827\">\u9875\u9762&#xff0c;\u8ddf\u4f60\u4ee3\u7801\u5e93\u91cc\u6240\u6709\u7684\u6a21\u578b\u6807\u8bc6\u505a\u4e00\u6b21\u4ea4\u96c6&#xff0c;\u6709\u547d\u4e2d\u5c31\u5f00<\/span><span style=\"color:#111827\"> issue<\/span><span style=\"color:#111827\">\u3002\u8fd9\u4ef6\u4e8b\u7684\u6210\u672c\u5f88\u4f4e&#xff0c;\u4f46\u5b83\u6551\u56de\u7684\u901a\u5e38\u662f\u6574\u6574\u4e00\u4e2a\u4e0b\u5348\u7684\u503c\u73ed\u65f6\u95f4\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e94\u3001\u91cd\u8bd5\u4e0d\u662f\u514d\u8d39\u7684&#xff1a;\u628a\u5b83\u7684\u65f6\u95f4\u548c\u94b1\u7b97\u6e05\u695a<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u7ebf\u521d\u671f\u6700\u5bb9\u6613\u5199\u4e0b\u7684\u4ee3\u7801\u662f\u8fd9\u6837\u7684&#xff1a;\u51fa\u9519\u5c31\u91cd\u8bd5&#xff0c;\u91cd\u8bd5\u4e09\u6b21\u8fd8\u5931\u8d25\u5c31\u629b\u3002\u8fd9\u662f\u5bf9\u7684&#xff0c;\u4f46\u5f88\u5c11\u6709\u4eba\u7b97\u8fc7<\/span><span style=\"color:#111827\">\u91cd\u8bd5\u5230\u5e95\u82b1\u6389\u4e86\u4ec0\u4e48<\/span><span style=\"color:#111827\">\u3002\u6211\u4eec\u628a\u5b83\u7684\u884c\u4e3a\u8dd1\u51fa\u6765\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7528<\/span><span style=\"color:#111827\"> mock <\/span><span style=\"color:#111827\">\u6a21\u578b\u6a21\u62df\u4e0a\u6e38\u6301\u7eed\u8fd4\u56de<\/span><span style=\"color:#111827\"> 429<\/span><span style=\"color:#111827\">&#xff08;\u9650\u6d41&#xff09;\u548c<\/span><span style=\"color:#111827\"> 500<\/span><span style=\"color:#111827\">&#xff08;\u670d\u52a1\u7aef\u9519\u8bef&#xff09;&#xff0c;\u6570\u4e00\u6570<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u7a76\u7adf\u66ff\u4f60\u8c03\u7528\u4e86\u51e0\u6b21\u3001\u7b49\u4e86\u591a\u4e45&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">import { generateText, APICallError, RetryError } from &#039;ai&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">async function run(label: string, statusCode: number, isRetryable: boolean, maxRetriesArg?: number) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0let calls &#061; 0;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const model &#061; new MockLanguageModelV4({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0provider: &#039;acme&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0modelId: &#039;m&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0doGenerate: async () &#061;&gt; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0calls&#043;&#043;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0throw new APICallError({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0message: &#096;HTTP ${statusCode} from upstream&#096;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0url: &#039;https:\/\/api.example\/v1\/chat\/completions&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0requestBodyValues: { model: &#039;gpt-x&#039; },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0statusCode,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0responseHeaders: {},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0responseBody: &#039;{&#034;error&#034;:&#034;boom&#034;}&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0isRetryable,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0data: { raw: &#039;boom&#039; },<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const t0 &#061; Date.now();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const opts: Record&lt;string, unknown&gt; &#061; { model, prompt: &#039;x&#039; };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (maxRetriesArg !&#061;&#061; undefined) opts.maxRetries &#061; maxRetriesArg;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0try {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0await generateText(opts as never);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0return { calls, err: &#039;<\/span><span style=\"color:#111827\">\u672a\u629b\u9519<\/span><span style=\"color:#111827\">&#039;, ms: Date.now() &#8211; t0 };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0} catch (e) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0const isRetry &#061; RetryError.isInstance(e);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0return {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0calls,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0err: e.constructor.name,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0reason: isRetry ? e.reason : &#039;-&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ms: Date.now() &#8211; t0,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5b9e\u8dd1\u8f93\u51fa&#xff08;\u539f\u59cb\u7ed3\u679c&#xff09;&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u573a\u666f<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u539f\u56e0<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u5185\u90e8\u9519\u8bef\u6570<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">429 <\/span><span style=\"color:#111827\">\u53ef\u91cd\u8bd5&#xff08;\u9ed8\u8ba4<\/span><span style=\"color:#111827\"> maxRetries<\/span><span style=\"color:#111827\">&#xff09;<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u5b9e\u9645\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\">&#061;3 | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\">&#061;RetryError | reason&#061;maxRetriesExceeded | errors.length&#061;3 | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;2041ms<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">500 <\/span><span style=\"color:#111827\">\u53ef\u91cd\u8bd5&#xff08;\u9ed8\u8ba4<\/span><span style=\"color:#111827\"> maxRetries<\/span><span style=\"color:#111827\">&#xff09;<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u5b9e\u9645\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\">&#061;3 | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\">&#061;RetryError | reason&#061;maxRetriesExceeded | errors.length&#061;3 | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;2005ms<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">400 <\/span><span style=\"color:#111827\">\u4e0d\u53ef\u91cd\u8bd5<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u5b9e\u9645\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\">&#061;1 | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\">&#061;APICallError | reason&#061;- | errors.length&#061;- | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;1ms<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">429 <\/span><span style=\"color:#111827\">\u4f46<\/span><span style=\"color:#111827\"> maxRetries&#061;0 | <\/span><span style=\"color:#111827\">\u5b9e\u9645\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\">&#061;1 | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\">&#061;APICallError | reason&#061;- | errors.length&#061;- | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;1ms<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">429 <\/span><span style=\"color:#111827\">\u4f46<\/span><span style=\"color:#111827\"> maxRetries&#061;5<\/span><span style=\"color:#111827\">&#xff08;\u89c2\u5bdf\u4e0a\u9650&#xff09;<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u5b9e\u9645\u8c03\u7528\u6b21\u6570<\/span><span style=\"color:#111827\">&#061;6 | <\/span><span style=\"color:#111827\">\u9519\u8bef\u7c7b<\/span><span style=\"color:#111827\">&#061;RetryError | reason&#061;maxRetriesExceeded | errors.length&#061;6 | <\/span><span style=\"color:#111827\">\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;5005ms<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#xff08;\u4e0a\u8868\u7684\u8017\u65f6\u662f\u5e26 <\/span><span style=\"color:#111827\">retry-after: 1<\/span><span style=\"color:#111827\"> \u54cd\u5e94\u5934\u7684\u7ed3\u679c\u3002\u4f5c\u4e3a\u5bf9\u7167&#xff0c;\u628a <\/span><span style=\"color:#111827\">retry-after<\/span> <span style=\"color:#111827\">\u53bb\u6389\u3001\u53ea\u7559\u9ed8\u8ba4\u9000\u907f&#xff0c;\u4e00\u7ec4\u540c\u6837\u914d\u7f6e\u7684<\/span><span style=\"color:#111827\"> 500 <\/span><span style=\"color:#111827\">\u91cd\u8bd5\u5b9e\u8dd1\u7ed3\u679c\u662f&#xff1a;&#xff09;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">C1 <\/span><span style=\"color:#111827\">\u65e0<\/span><span style=\"color:#111827\"> retry-after<\/span><span style=\"color:#111827\">&#xff0c;<\/span><span style=\"color:#111827\">500<\/span><span style=\"color:#111827\">&#xff0c;\u9ed8\u8ba4\u91cd\u8bd5<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u8c03\u7528<\/span><span style=\"color:#111827\">&#061;3 <\/span><span style=\"color:#111827\">\u6b21<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u603b\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;6041ms \u2192 <\/span><span style=\"color:#111827\">\u7eaf\u9000\u907f\u5f00\u9500<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">C2 retry-after: 2<\/span><span style=\"color:#111827\">&#xff0c;<\/span><span style=\"color:#111827\">429<\/span><span style=\"color:#111827\">&#xff0c;\u9ed8\u8ba4\u91cd\u8bd5<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u8c03\u7528<\/span><span style=\"color:#111827\">&#061;3 <\/span><span style=\"color:#111827\">\u6b21<\/span><span style=\"color:#111827\"> | <\/span><span style=\"color:#111827\">\u603b\u8017\u65f6<\/span><span style=\"color:#111827\">&#061;4005ms \u2192 <\/span><span style=\"color:#111827\">\u5c0a\u91cd<\/span><span style=\"color:#111827\"> retry-after<\/span><span style=\"color:#111827\">&#xff08;\u88ab\u62d6\u957f&#xff09;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4ece\u8fd9\u4e24\u5f20\u8868\u91cc\u80fd\u8bfb\u51fa\u56db\u4ef6\u5728\u8fd0\u7ef4\u4e0a\u6781\u5176\u91cd\u8981\u7684\u4e8b&#xff1a;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e00&#xff0c;<\/span><span style=\"color:#111827\">maxRetries<\/span><span style=\"color:#111827\"> \u7684\u9ed8\u8ba4\u503c\u662f 2&#xff0c;\u4e5f\u5c31\u662f\u6700\u591a 3 \u6b21\u8c03\u7528\u3002<\/span> <span style=\"color:#111827\">\u8fd9\u4e0d\u662f\u6587\u6863\u91cc\u7684\u8bf4\u6cd5&#xff0c;\u662f\u6570\u51fa\u6765\u7684&#xff1a;\u9ed8\u8ba4\u914d\u7f6e\u4e0b<\/span><span style=\"color:#111827\"> mock <\/span><span style=\"color:#111827\">\u88ab\u8c03\u7528\u4e86<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u6b21\u3002<\/span><span style=\"color:#111827\">maxRetries: 5<\/span> <span style=\"color:#111827\">\u65f6\u53d8\u6210<\/span><span style=\"color:#111827\"> 6 <\/span><span style=\"color:#111827\">\u6b21&#xff0c;<\/span><span style=\"color:#111827\">maxRetries: 0<\/span> <span style=\"color:#111827\">\u65f6\u662f<\/span><span style=\"color:#111827\"> 1 <\/span><span style=\"color:#111827\">\u6b21&#xff0c;\u5b8c\u5168\u5bf9\u5f97\u4e0a\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e8c&#xff0c;\u9519\u8bef\u7c7b\u578b\u672c\u8eab\u5c31\u5728\u544a\u8bc9\u4f60&#034;\u91cd\u8bd5\u8fc7\u6ca1\u6709&#034;\u3002<\/span><span style=\"color:#111827\"> \u62ff\u5230 <\/span><span style=\"color:#111827\">RetryError<\/span><span style=\"color:#111827\"> \u8bf4\u660e<\/span><span style=\"color:#111827\">\u91cd\u8bd5\u8fc7\u5e76\u4e14\u7528\u5c3d\u4e86<\/span><span style=\"color:#111827\">&#xff1b;\u62ff\u5230 <\/span><span style=\"color:#111827\">APICallError<\/span><span style=\"color:#111827\"> \u8bf4\u660e<\/span><span style=\"color:#111827\">\u4e00\u6b21\u90fd\u6ca1\u91cd\u8bd5<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u8981\u4e48\u5b83\u4e0d\u53ef\u91cd\u8bd5&#xff08;<\/span><span style=\"color:#111827\">400 <\/span><span style=\"color:#111827\">\u8fd9\u7c7b\u5ba2\u6237\u7aef\u9519\u8bef&#xff09;&#xff0c;\u8981\u4e48\u4f60\u628a<\/span> <span style=\"color:#111827\">maxRetries<\/span> <span style=\"color:#111827\">\u8bbe\u6210\u4e86<\/span><span style=\"color:#111827\"> 0<\/span><span style=\"color:#111827\">\u3002\u8fd9\u4e2a\u533a\u5206\u5bf9\u503c\u73ed\u5f88\u6709\u7528&#xff1a;\u770b\u5230<\/span> <span style=\"color:#111827\">APICallError<\/span> <span style=\"color:#111827\">\u5c31\u4e0d\u8be5\u518d\u6307\u671b<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7b49\u4e00\u4f1a\u513f\u91cd\u8bd5\u4f1a\u597d<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u90a3\u662f\u786e\u5b9a\u6027\u5931\u8d25&#xff0c;\u8be5\u53bb\u770b\u8bf7\u6c42\u672c\u8eab\u6216\u53bb\u5904\u7406\u4e1a\u52a1\u964d\u7ea7\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e09&#xff0c;\u4e0d\u91cd\u8bd5\u7684\u9519\u8bef\u4e0d\u70e7\u94b1&#xff0c;\u8fd9\u4e00\u70b9 SDK \u505a\u5bf9\u4e86\u3002<\/span><span style=\"color:#111827\"> 400 <\/span><span style=\"color:#111827\">\u53ea\u8c03\u7528\u4e86<\/span><span style=\"color:#111827\"> 1 <\/span><span style=\"color:#111827\">\u6b21&#xff0c;<\/span><span style=\"color:#111827\">1 <\/span><span style=\"color:#111827\">\u6beb\u79d2\u8fd4\u56de\u3002\u5b83\u5c0a\u91cd\u4e86\u9519\u8bef\u5bf9\u8c61\u4e0a\u7684<\/span> <span style=\"color:#111827\">isRetryable<\/span><span style=\"color:#111827\"> \u6807\u8bb0&#xff0c;\u6ca1\u6709\u5bf9\u5ba2\u6237\u7aef\u9519\u8bef\u505a\u65e0\u8c13\u91cd\u8bd5\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u56db&#xff0c;\u4e5f\u662f\u6700\u5c11\u88ab\u7b97\u5230\u7684\u4e00\u70b9&#xff1a;\u9ed8\u8ba4\u9000\u907f\u6bd4\u4e0a\u6e38\u7684\u5efa\u8bae\u66f4\u6162\u3002<\/span> <span style=\"color:#111827\">\u540c\u6837<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u6b21\u8c03\u7528&#xff0c;\u7eaf\u9ed8\u8ba4\u9000\u907f\u82b1\u4e86<\/span> <span style=\"color:#111827\">6041ms<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u5e26\u4e0a\u6e38 <\/span><span style=\"color:#111827\">retry-after: 2<\/span><span style=\"color:#111827\"> \u53ea\u82b1\u4e86 <\/span><span style=\"color:#111827\">4005ms<\/span><span style=\"color:#111827\">\u3002\u5c11\u4e86\u6574\u6574<\/span><span style=\"color:#111827\"> 2 <\/span><span style=\"color:#111827\">\u79d2\u3002\u539f\u56e0\u662f\u9ed8\u8ba4\u8d70\u7684\u662f\u6307\u6570\u9000\u907f&#xff0c;\u800c<\/span> <span style=\"color:#111827\">retry-after<\/span> <span style=\"color:#111827\">\u662f\u4e0a\u6e38\u660e\u786e\u544a\u8bc9\u4f60<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fd9\u4e48\u591a\u79d2\u540e\u518d\u6765<\/span><span style=\"color:#111827\">&#034;\u2014\u2014<\/span><span style=\"color:#111827\">\u4e0a\u6e38\u6bd4\u4f60\u66f4\u6e05\u695a\u5b83\u4ec0\u4e48\u65f6\u5019\u80fd\u7f13\u8fc7\u6765<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#111827\">\u628a\u8fd9\u56db\u4ef6\u4e8b\u753b\u5728\u4e00\u8d77&#xff0c;\u91cd\u8bd5\u7684\u771f\u5b9e\u6210\u672c\u5c31\u5f88\u76f4\u89c2\u4e86&#xff1a;<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"775\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160912-6abe85a8c0f12.png\" width=\"1474\" \/><span style=\"color:#111827\">\u91cd\u8bd5\u7b56\u7565\u7684\u771f\u5b9e\u65f6\u95f4\u6210\u672c<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">5.1 \u91cd\u8bd5\u7684\u9690\u85cf\u6210\u672c&#xff1a;\u526f\u4f5c\u7528\u4f1a\u88ab\u6267\u884c\u591a\u6b21<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u8868\u7edf\u8ba1\u7684\u662f\u65f6\u95f4\u3002\u8fd8\u6709\u4e2a\u66f4\u8d35\u7684\u8d26&#xff1a;<\/span><span style=\"color:#111827\">\u5982\u679c\u91cd\u8bd5\u53d1\u751f\u5728\u5de5\u5177\u8c03\u7528\u4e4b\u540e&#xff0c;\u4f60\u7684\u526f\u4f5c\u7528\u53ef\u80fd\u5df2\u7ecf\u6267\u884c\u4e86\u4e24\u6b21\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u6761\u5728\u7b2c<\/span><span style=\"color:#111827\"> 5 <\/span><span style=\"color:#111827\">\u7bc7\u8bb2<\/span><span style=\"color:#111827\"> Agent <\/span><span style=\"color:#111827\">\u5faa\u73af\u65f6\u51fa\u73b0\u8fc7&#xff0c;\u4f46\u90a3\u662f\u5355\u6b21\u8bf7\u6c42\u5185\u7684\u5faa\u73af\u91cd\u8bd5\u3002\u8fd9\u91cc\u7684\u91cd\u8bd5\u53d1\u751f\u5728<\/span><span style=\"color:#111827\">\u66f4\u5916\u5c42<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u6574\u6b21\u6a21\u578b\u8c03\u7528\u5931\u8d25\u540e<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u81ea\u52a8\u91cd\u53d1\u3002\u5982\u679c\u4f60\u7684\u8c03\u7528\u91cc\u5305\u542b\u4e86\u5199\u6570\u636e\u5e93\u3001\u53d1\u77ed\u4fe1\u3001\u6263\u6b3e\u8fd9\u7c7b\u5de5\u5177&#xff0c;\u4e00\u6b21\u4e0a\u6e38\u6296\u52a8\u5c31\u53ef\u80fd\u8ba9\u5b83\u4eec\u6267\u884c\u4e24\u904d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6240\u4ee5\u51e1\u662f\u5e26\u526f\u4f5c\u7528\u7684\u8c03\u7528&#xff0c;\u5fc5\u987b\u505a\u4e24\u4ef6\u4e8b&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ 1) <\/span><span style=\"color:#111827\">\u5e42\u7b49\u952e&#xff1a;\u8ba9\u91cd\u590d\u6267\u884c\u53d8\u6210\u65e0\u5bb3\u64cd\u4f5c<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">await sendSms({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0templateId: &#039;order_shipped&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0to: order.phone,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0idempotencyKey: &#096;order_shipped:${order.id}&#096;, \/\/ <\/span><span style=\"color:#111827\">\u540c\u4e00\u8ba2\u5355\u53ea\u53d1\u4e00\u6761<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ 2) <\/span><span style=\"color:#111827\">\u660e\u786e\u91cd\u8bd5\u9884\u7b97&#xff1a;\u4e0d\u8981\u8ba9<\/span><span style=\"color:#111827\"> SDK <\/span><span style=\"color:#111827\">\u7684\u9ed8\u8ba4\u503c\u66ff\u4f60\u51b3\u5b9a<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const r &#061; await generateText({<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0model,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0prompt,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0tools,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0maxRetries: 1, \/\/ <\/span><span style=\"color:#111827\">\u6709\u526f\u4f5c\u7528\u7684\u94fe\u8def&#xff0c;\u91cd\u8bd5\u6b21\u6570\u8981\u538b\u5230\u6700\u4f4e<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0timeout: { totalMs: 8000 }, \/\/ <\/span><span style=\"color:#111827\">\u5e76\u4e14\u7ed9\u5b83\u4e00\u4e2a\u4e0a\u9650<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">});<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u516d\u3001\u8d85\u65f6\u4e0e\u4e2d\u65ad&#xff1a;\u4e09\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u539f\u56e0&#xff0c;\u62a5\u7684\u662f\u540c\u4e00\u4e2a\u9519<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e00\u8282\u662f\u6211\u5728\u505a\u8fd9\u8f6e\u5b9e\u9a8c\u65f6\u6700\u610f\u5916\u7684\u53d1\u73b0\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u7ebf\u4e4b\u540e\u4f60\u9700\u8981\u533a\u5206\u4e09\u79cd<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8bf7\u6c42\u6ca1\u5b8c\u6210<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u60c5\u51b5&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u7684\u4e1a\u52a1\u542b\u4e49\u5b8c\u5168\u4e0d\u540c&#xff1a;<\/span><\/p>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u7528\u6237\u4e3b\u52a8\u53d6\u6d88<\/span><span style=\"color:#111827\">&#xff08;\u70b9\u4e86<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u505c\u6b62\u751f\u6210<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3001\u5173\u4e86\u9875\u9762&#xff09;<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u8fd9\u662f\u6b63\u5e38\u884c\u4e3a&#xff0c;\u4e0d\u8be5\u7b97\u6545\u969c\u3002<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u6574\u4f53\u8d85\u65f6<\/span><span style=\"color:#111827\">&#xff08;\u4e0a\u6e38\u592a\u6162&#xff0c;\u4f60\u7b49\u4e0d\u4e0b\u53bb\u4e86&#xff09;<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u8fd9\u662f\u4e0a\u6e38\u6545\u969c&#xff0c;\u8981\u544a\u8b66\u3002<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u5355\u6b65\u8d85\u65f6<\/span><span style=\"color:#111827\">&#xff08;\u67d0\u4e00\u6b65\u592a\u6162&#xff09;<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u591a\u6570\u662f\u6027\u80fd\u95ee\u9898&#xff0c;\u8981\u4f18\u5316\u3002<\/span><\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u76f4\u89c9\u4e0a\u4f60\u4f1a\u89c9\u5f97\u8fd9\u4e09\u79cd\u5e94\u8be5\u6709\u4e09\u79cd\u9519\u8bef\u7c7b\u578b\u3002\u6211\u628a\u5b83\u4eec\u5168\u8dd1\u4e86\u4e00\u904d\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u7528\u6237\u4e3b\u52a8\u53d6\u6d88<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const ac &#061; new AbortController();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">setTimeout(() &#061;&gt; ac.abort(), 300);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">await generateText({ model, prompt: &#039;x&#039;, abortSignal: ac.signal });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u6574\u4f53\u8d85\u65f6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">await generateText({ model, prompt: &#039;x&#039;, timeout: { totalMs: 400 } });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u5355\u6b65\u8d85\u65f6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">await generateText({ model, prompt: &#039;x&#039;, timeout: { stepMs: 400 } });<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5b9e\u8dd1\u8f93\u51fa&#xff08;\u539f\u59cb\u7ed3\u679c&#xff0c;\u4e09\u7ec4&#xff09;&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7528\u6237\u4e3b\u52a8\u53d6\u6d88<\/span><span style=\"color:#111827\">(abortSignal):<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u6784\u9020\u5668<\/span><span style=\"color:#111827\">&#061;DOMException | name&#061;&#034;AbortError&#034; | message&#061;&#034;Delay was aborted&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> RetryError? false | <\/span><span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> APICallError? false<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8d85\u65f6\u4e2d\u65ad<\/span><span style=\"color:#111827\">(timeout.totalMs):<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u6784\u9020\u5668<\/span><span style=\"color:#111827\">&#061;DOMException | name&#061;&#034;AbortError&#034; | message&#061;&#034;Delay was aborted&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> RetryError? false | <\/span><span style=\"color:#111827\">\u662f<\/span><span style=\"color:#111827\"> APICallError? false<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5355\u6b65\u8d85\u65f6<\/span><span style=\"color:#111827\">(timeout.stepMs):<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u6784\u9020\u5668<\/span><span style=\"color:#111827\">&#061;DOMException | name&#061;&#034;AbortError&#034; | message&#061;&#034;Delay was aborted&#034;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#111827\">\u4e09\u79cd\u539f\u56e0&#xff0c;\u4e09\u4e2a\u76f8\u540c\u7684\u9519\u8bef\u5bf9\u8c61&#xff1a;<\/span><span style=\"color:#111827\">DOMException<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">AbortError \/ &#034;Delay was aborted&#034;\u3002<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"881\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160913-6abe85a91ba83.png\" width=\"1475\" \/><span style=\"color:#111827\">\u4e09\u79cd\u4e0d\u540c\u539f\u56e0&#xff0c;\u540c\u4e00\u4e2a AbortError<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4ef6\u4e8b\u7684\u540e\u679c\u5f88\u5177\u4f53&#xff1a;\u5982\u679c\u4f60\u6309\u9519\u8bef\u7c7b\u578b\u505a\u76d1\u63a7&#xff0c;\u4f60<\/span><span style=\"color:#111827\">\u65e0\u6cd5\u5206\u8fa8<\/span><span style=\"color:#111827\">\u4e0a\u9762\u4e09\u79cd\u60c5\u51b5\u3002\u4e8e\u662f&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u4f60\u7684<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53d6\u6d88\u7387<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6307\u6807\u91cc\u6df7\u8fdb\u4e86\u8d85\u65f6&#xff0c;\u6570\u5b57\u865a\u9ad8&#xff1b;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u4f60\u7684<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8d85\u65f6\u7387<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6307\u6807\u91cc\u6df7\u8fdb\u4e86\u7528\u6237\u53d6\u6d88&#xff0c;\u6570\u5b57\u865a\u9ad8&#xff1b;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u4f60\u6ca1\u529e\u6cd5\u7ed9\u8d85\u65f6\u914d\u4e00\u6761\u72ec\u7acb\u7684\u544a\u8b66&#xff0c;\u56e0\u4e3a\u89e6\u53d1\u5b83\u548c\u89e6\u53d1\u53d6\u6d88\u7684\u662f\u540c\u4e00\u4e2a\u9519\u8bef&#xff1b;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">\u66f4\u7cdf\u7684\u662f&#xff0c;\u5f53\u7528\u6237\u62b1\u6028<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u70b9\u4e86\u505c\u6b62\u4f46\u8fc7\u4e86\u597d\u51e0\u79d2\u624d\u505c<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u4f60\u4ece\u65e5\u5fd7\u91cc\u770b\u4e0d\u51fa\u90a3\u662f\u53d6\u6d88\u751f\u6548\u6162&#xff0c;\u8fd8\u662f\u88ab\u8d85\u65f6\u62a2\u5148\u4e2d\u65ad\u3002<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u597d\u6d88\u606f\u662f <\/span><span style=\"color:#111827\">totalMs<\/span><span style=\"color:#111827\"> \u548c <\/span><span style=\"color:#111827\">stepMs<\/span><span style=\"color:#111827\"> \u786e\u5b9e<\/span><span style=\"color:#111827\">\u751f\u6548<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4e0a\u9762\u7b2c\u4e09\u7ec4\u7684\u5355\u6b65\u8d85\u65f6\u548c\u7b2c\u4e00\u7ec4\u7684\u53d6\u6d88\u90fd\u6210\u529f\u4e2d\u65ad\u4e86\u91cd\u8bd5\u94fe&#xff08;\u5426\u5219<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u6b21\u91cd\u8bd5\u8981\u8dd1<\/span><span style=\"color:#111827\"> 6 <\/span><span style=\"color:#111827\">\u79d2&#xff09;\u3002\u574f\u6d88\u606f\u662f\u5b83\u4eec\u548c\u53d6\u6d88\u5171\u7528\u540c\u4e00\u4e2a\u4fe1\u53f7\u3002<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">6.1 \u89e3\u6cd5&#xff1a;\u81ea\u5df1\u7ed9\u4e2d\u65ad\u6253\u6807\u8bb0<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u65e2\u7136\u9519\u8bef\u7c7b\u578b\u4e0d\u53ef\u533a\u5206&#xff0c;\u5c31\u5fc5\u987b\u5728<\/span><span style=\"color:#111827\">\u89e6\u53d1\u4fa7<\/span><span style=\"color:#111827\">\u6253\u6807\u8bb0&#xff0c;\u7136\u540e\u5728<\/span><span style=\"color:#111827\">\u6355\u83b7\u4fa7<\/span><span style=\"color:#111827\">\u8bfb\u56de\u6765\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type AbortReason &#061; &#039;user&#039; | &#039;total-timeout&#039; | &#039;step-timeout&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u7528\u4e00\u4e2a\u6620\u5c04\u628a<\/span><span style=\"color:#111827\"> AbortSignal <\/span><span style=\"color:#111827\">\u548c<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4e3a\u4ec0\u4e48\u4e2d\u65ad<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5173\u8054\u8d77\u6765<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const abortReasons &#061; new WeakMap&lt;AbortSignal, AbortReason&gt;();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function withReason(reason: AbortReason) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const ac &#061; new AbortController();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0abortReasons.set(ac.signal, reason);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return ac;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function classifyAbort(err: unknown, signal?: AbortSignal): AbortReason | null {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (!(err instanceof DOMException) || err.name !&#061;&#061; &#039;AbortError&#039;) return null;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (signal &amp;&amp; abortReasons.has(signal)) return abortReasons.get(signal)!;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return null; \/\/ <\/span><span style=\"color:#111827\">\u62ff\u4e0d\u5230\u6807\u8bb0&#xff1a;\u5f52\u5165<\/span><span style=\"color:#111827\"> unknown<\/span><span style=\"color:#111827\">&#xff0c;\u5355\u72ec\u8ba1\u6570<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u4f7f\u7528<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const ac &#061; withReason(&#039;user&#039;);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const timer &#061; setTimeout(() &#061;&gt; ac.abort(), 30_000);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">try {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0await generateText({ model, prompt, abortSignal: ac.signal });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">} catch (err) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const why &#061; classifyAbort(err, ac.signal);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0metrics.increment(&#039;llm.aborted&#039;, { reason: why ?? &#039;unknown&#039; });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u53ea\u6709\u975e\u7528\u6237\u539f\u56e0\u624d\u544a\u8b66<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (why &amp;&amp; why !&#061;&#061; &#039;user&#039;) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0logger.error(&#039;llm.abort.anomaly&#039;, { reason: why });<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0throw err;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">} finally {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0clearTimeout(timer);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ce8\u610f <\/span><span style=\"color:#111827\">unknown<\/span><span style=\"color:#111827\"> \u8fd9\u4e2a\u515c\u5e95\u5206\u652f\u3002\u5b83\u7684\u610f\u4e49\u662f<\/span><span style=\"color:#111827\">\u8bda\u5b9e\u5730\u8bb0\u5f55\u4f60\u7684\u76f2\u533a<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u6240\u6709\u6ca1\u6253\u4e0a\u6807\u8bb0\u7684\u4e2d\u65ad\u90fd\u4f1a\u843d\u5230\u8fd9\u91cc\u3002\u5982\u679c\u4f60\u7684<\/span> <span style=\"color:#111827\">unknown<\/span><span style=\"color:#111827\"> \u5360\u6bd4\u5f00\u59cb\u4e0a\u5347&#xff0c;\u8bf4\u660e\u4e2d\u65ad\u7684\u6765\u6e90\u53d8\u590d\u6742\u4e86&#xff08;\u53ef\u80fd\u52a0\u4e86\u65b0\u7684\u8c03\u7528\u8def\u5f84\u5fd8\u4e86\u6253\u6807\u8bb0&#xff09;&#xff0c;\u8fd9\u672c\u8eab\u5c31\u662f\u4e00\u6761\u503c\u5f97\u770b\u7684\u8fd0\u7ef4\u4fe1\u53f7\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e03\u3001\u914d\u989d\u4e0e\u9650\u6d41&#xff1a;429 \u4e0d\u662f\u9519\u8bef&#xff0c;\u662f\u4e0a\u6e38\u5728\u8ddf\u4f60\u8bf4\u8bdd<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u628a<\/span><span style=\"color:#111827\"> 429 <\/span><span style=\"color:#111827\">\u5f53\u5f02\u5e38\u6765\u5904\u7406&#xff0c;\u662f\u65b0\u624b\u6700\u5e38\u89c1\u7684\u8bef\u8bfb\u3002<\/span><span style=\"color:#111827\">429 <\/span><span style=\"color:#111827\">\u7684\u8bed\u4e49\u4e0d\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4f60\u9519\u4e86<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u662f<\/span><span style=\"color:#111827\">&#034;\u4f60\u592a\u5feb\u4e86&#xff0c;\u6162\u4e00\u70b9&#034;<\/span><span style=\"color:#111827\">\u3002\u5b83\u662f\u4e0a\u6e38\u7684\u6d41\u91cf\u7ba1\u7406\u4fe1\u53f7&#xff0c;\u4e0d\u662f\u6545\u969c\u4fe1\u53f7\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u533a\u522b\u51b3\u5b9a\u4e86\u4f60\u8be5\u600e\u4e48\u54cd\u5e94&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u4e0a\u6e38\u4fe1\u53f7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u4f60\u8be5\u505a\u4ec0\u4e48<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">429 &#043; <\/span><span style=\"color:#111827\">retry-after: 5<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u660e\u786e\u8ba9\u4f60<\/span> <span style=\"color:#111827\"> 5 <\/span> <span style=\"color:#111827\">\u79d2\u540e\u518d\u6765<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5c0a\u91cd\u5b83&#xff0c;\u4e0d\u8981\u9000\u907f\u5f97\u6bd4\u5b83\u8fd8\u4e45<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">429 <\/span> <span style=\"color:#111827\">\u65e0<\/span> <span style=\"color:#111827\">retry-after<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ca1\u8bf4\u7b49\u591a\u4e45<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7528\u6307\u6570\u9000\u907f<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u6296\u52a8&#xff0c;\u522b\u7528\u56fa\u5b9a\u95f4\u9694<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">403 \/ 401<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u51ed\u636e\u6216\u6743\u9650\u95ee\u9898<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u522b\u91cd\u8bd5&#xff0c;\u76f4\u63a5\u544a\u8b66&#xff08;\u8fd9\u662f\u914d\u7f6e\u4e8b\u6545&#xff09;<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">400<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8bf7\u6c42\u672c\u8eab\u4e0d\u5408\u6cd5<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u522b\u91cd\u8bd5&#xff0c;\u53bb\u770b\u8bf7\u6c42\u6784\u9020\u4ee3\u7801<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">500 \/ 502 \/ 503<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u6e38\u81ea\u5df1\u51fa\u95ee\u9898\u4e86<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u91cd\u8bd5<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u8003\u8651\u5207\u5907\u7528\u4f9b\u5e94\u5546<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u91cc\u6709\u4e00\u6761\u524d\u9762\u5b9e\u6d4b\u5df2\u7ecf\u9a8c\u8bc1\u8fc7\u7684\u53cd\u76f4\u89c9\u7ed3\u8bba\u503c\u5f97\u91cd\u590d\u4e00\u904d&#xff1a;<\/span><span style=\"color:#111827\">\u4e0a\u6e38\u7ed9\u7684 <\/span><span style=\"color:#111827\">retry-after<\/span><span style=\"color:#111827\"> \u5f80\u5f80\u6bd4 SDK \u7684\u9ed8\u8ba4\u6307\u6570\u9000\u907f\u66f4\u5feb<\/span><span style=\"color:#111827\">&#xff08;<\/span><span style=\"color:#111827\">4005ms <\/span><span style=\"color:#111827\">\u5bf9<\/span><span style=\"color:#111827\"> 6041ms<\/span><span style=\"color:#111827\">&#xff09;\u3002\u4f60\u4ec0\u4e48\u90fd\u4e0d\u505a\u65f6&#xff0c;<\/span><span style=\"color:#111827\">SDK <\/span><span style=\"color:#111827\">\u5df2\u7ecf\u66ff\u4f60\u7b49\u4e86&#xff1b;\u4f46\u5982\u679c\u4f60\u60f3\u628a\u63a7\u5ef6\u8fdf\u9884\u7b97&#xff0c;\u5c31\u5f97\u81ea\u5df1\u63a5\u624b\u9000\u907f\u903b\u8f91&#xff0c;\u81f3\u5c11\u5728\u5ba2\u6237\u7aef\u4fa7\u628a<\/span> <span style=\"color:#111827\">retry-after<\/span><span style=\"color:#111827\"> \u8bfb\u51fa\u6765\u505a\u4e0a\u9650\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd8\u6709\u4e00\u5c42\u662f<\/span><span style=\"color:#111827\">\u591a\u79df\u6237\u7684\u516c\u5e73\u6027<\/span><span style=\"color:#111827\">\u3002\u5982\u679c\u4f60\u662f\u4e00\u4e2a<\/span><span style=\"color:#111827\"> SaaS<\/span><span style=\"color:#111827\">&#xff0c;\u6240\u6709\u79df\u6237\u5171\u7528\u4e00\u7ec4\u4e0a\u6e38\u914d\u989d&#xff0c;\u90a3\u4e48\u4e00\u4e2a\u5927\u79df\u6237\u7684\u6279\u91cf\u4efb\u52a1\u53ef\u4ee5\u628a\u6574\u4e2a\u914d\u989d\u5403\u5e72&#xff0c;\u8ba9\u6240\u6709\u5c0f\u79df\u6237\u4e00\u8d77<\/span><span style=\"color:#111827\"> 429<\/span><span style=\"color:#111827\">\u3002\u8fd9\u7c7b\u95ee\u9898\u5728\u7b2c\u4e5d\u5341\u5929\u5c24\u5176\u5bb9\u6613\u66b4\u9732&#xff0c;\u56e0\u4e3a\u65e9\u671f\u5ba2\u6237\u5c11\u3001\u8dd1\u5f97\u987a&#xff0c;\u7b49\u5ba2\u6237\u591a\u8d77\u6765\u624d\u70b8\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u79df\u6237\u7ea7\u914d\u989d\u95f8\u95e8&#xff1a;\u5b81\u53ef\u8ba9\u5927\u79df\u6237\u6392\u961f&#xff0c;\u4e5f\u4e0d\u80fd\u8ba9\u5b83\u6324\u6b7b\u6240\u6709\u4eba<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type QuotaState &#061; { tokensUsed: number; resetAt: number };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">class TenantQuotaGate {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0private readonly states &#061; new Map&lt;string, QuotaState&gt;();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0constructor(<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0private readonly perTenantLimit: number,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0private readonly windowMs: number,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0) {}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0tryConsume(tenantId: string, tokens: number): { ok: true } | { ok: false; retryAfterMs: number } {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0const now &#061; Date.now();<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0let s &#061; this.states.get(tenantId);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0if (!s || now &gt;&#061; s.resetAt) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0s &#061; { tokensUsed: 0, resetAt: now &#043; this.windowMs };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.states.set(tenantId, s);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0if (s.tokensUsed &#043; tokens &gt; this.perTenantLimit) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return { ok: false, retryAfterMs: s.resetAt &#8211; now }; \/\/ <\/span><span style=\"color:#111827\">\u8ba9\u8c03\u7528\u65b9\u53bb\u6392\u961f&#xff0c;\u800c\u4e0d\u662f\u53bb\u6253\u4e0a\u6e38<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0s.tokensUsed &#043;&#061; tokens;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0return { ok: true };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u95f8\u95e8\u7684\u4ef7\u503c\u4e0d\u5728<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7701\u914d\u989d<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u5728\u4e8e<\/span><span style=\"color:#111827\">\u628a\u62d2\u7edd\u53d1\u751f\u5728\u4e0a\u6e38\u4e4b\u524d<\/span><span style=\"color:#111827\">\u3002\u4f60\u5728\u81ea\u5df1\u5bb6\u91cc\u62d2\u7edd\u5927\u79df\u6237&#xff0c;\u6210\u672c\u662f\u96f6&#xff1b;\u8ba9\u4e0a\u6e38\u62d2\u7edd\u4f60&#xff0c;\u6210\u672c\u662f\u6574\u6761\u94fe\u8def\u7684\u65f6\u95f4\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u516b\u3001\u964d\u7ea7\u9884\u6848&#xff1a;AI \u6302\u4e86\u4f60\u8fd8\u80fd\u4e0d\u80fd\u5e72\u6d3b<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u73b0\u5728\u5230\u4e86\u8fd0\u7ef4\u7684\u6838\u5fc3\u95ee\u9898&#xff1a;<\/span><span style=\"color:#111827\">\u5f53 AI \u8fd9\u90e8\u5206\u5f7b\u5e95\u4e0d\u53ef\u7528\u65f6&#xff0c;\u4f60\u7684\u4e1a\u52a1\u80fd\u6491\u5230\u4ec0\u4e48\u7a0b\u5ea6&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u95ee\u9898\u7684\u7b54\u6848\u5fc5\u987b\u5728\u51fa\u4e8b\u4e4b\u524d\u5199\u597d&#xff0c;\u56e0\u4e3a\u51fa\u4e8b\u7684\u5f53\u4e0b\u4f60\u6ca1\u6709\u65f6\u95f4\u8bbe\u8ba1\u5b83\u3002\u964d\u7ea7\u662f\u6709\u5c42\u7ea7\u7684&#xff0c;\u4ece\u4e0a\u5230\u4e0b\u4ee3\u4ef7\u9012\u589e&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u5c42\u7ea7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u624b\u6bb5<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u7528\u6237\u4f53\u9a8c<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u4ec0\u4e48\u65f6\u5019\u7528<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">L1 <\/span> <span style=\"color:#111827\">\u6a21\u578b\u964d\u7ea7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6362\u66f4\u5c0f<\/span> <span style=\"color:#111827\">\/<\/span> <span style=\"color:#111827\">\u66f4\u5feb\u7684\u6a21\u578b<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8d28\u91cf\u4e0b\u964d&#xff0c;\u4f46\u529f\u80fd\u5b8c\u6574<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e3b\u6a21\u578b\u9650\u6d41\u6216\u5ef6\u8fdf\u98d9\u5347<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">L2 <\/span> <span style=\"color:#111827\">\u4f9b\u5e94\u5546\u964d\u7ea7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5207\u5230\u5907\u7528\u4f9b\u5e94\u5546<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u98ce\u683c\u7565\u6709\u5dee\u5f02<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e3b\u4f9b\u5e94\u5546\u6545\u969c\u6216\u989d\u5ea6\u8017\u5c3d<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">L3 <\/span> <span style=\"color:#111827\">\u529f\u80fd\u964d\u7ea7<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5173\u6389<\/span> <span style=\"color:#111827\"> AI <\/span> <span style=\"color:#111827\">\u7279\u6027&#xff0c;\u56de\u5230\u786e\u5b9a\u6027\u903b\u8f91<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u529f\u80fd\u7f3a\u5931&#xff0c;\u4f46\u53ef\u7528<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6240\u6709<\/span> <span style=\"color:#111827\"> AI <\/span> <span style=\"color:#111827\">\u901a\u9053\u90fd\u4e0d\u53ef\u7528<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">L4 <\/span> <span style=\"color:#111827\">\u4eba\u5de5\u515c\u5e95<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8f6c\u4eba\u5de5\u961f\u5217<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6162&#xff0c;\u4f46\u6b63\u786e<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u964d\u7ea7\u4f1a\u5bfc\u81f4\u4e25\u91cd\u540e\u679c\u7684\u573a\u666f<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5173\u952e\u70b9\u5728\u4e8e&#xff1a;<\/span><span style=\"color:#111827\">L1 \u548c L2 \u7684&#034;\u53ef\u63a5\u53d7\u6807\u51c6&#034;\u5fc5\u987b\u63d0\u524d\u7528\u6570\u636e\u5b9a\u4e49<\/span><span style=\"color:#111827\">&#xff0c;\u5426\u5219\u4f60\u5728\u4e8b\u6545\u4e2d\u5207\u5230\u5907\u7528\u6a21\u578b&#xff0c;\u7136\u540e\u7948\u7977\u5b83\u591f\u597d<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u90a3\u4e0d\u53eb\u964d\u7ea7&#xff0c;\u90a3\u53eb\u8d4c\u8fd0\u6c14\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type Route &#061; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0name: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0model: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0provider: &#039;primary&#039; | &#039;secondary&#039;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0acceptable: (m: { goldenSetPassRate: number; p95Ms: number }) &#061;&gt; boolean;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u5907\u7528\u8def\u7ebf\u7684\u51c6\u5165\u6807\u51c6&#xff1a;\u4e0d\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u80fd\u8dd1<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8dd1\u5f97\u591f\u597d<\/span><span style=\"color:#111827\">&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">const ROUTES: Route[] &#061; [<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0{<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0name: &#039;primary&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0model: &#039;gpt-x-2026-09-01&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0provider: &#039;primary&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0acceptable: () &#061;&gt; true,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0{<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0name: &#039;secondary&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0model: &#039;claude-y-20260514&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0provider: &#039;secondary&#039;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u5173\u952e&#xff1a;\u5907\u7528\u8def\u7ebf\u5fc5\u987b\u7528\u91d1\u6807\u96c6\u9a8c\u8bc1\u8fc7&#xff0c;\u4e14\u5dee\u8ddd\u5728\u4e1a\u52a1\u53ef\u63a5\u53d7\u8303\u56f4\u5185<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0acceptable: (m) &#061;&gt; m.goldenSetPassRate &gt;&#061; 0.9 &amp;&amp; m.p95Ms &lt;&#061; 4000,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0},<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">];<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function pickRoute(metrics: Record&lt;string, { goldenSetPassRate: number; p95Ms: number }&gt;): Route {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const primary &#061; ROUTES[0];<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (primary.acceptable(metrics.primary)) return primary;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const secondary &#061; ROUTES[1];<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return secondary.acceptable(metrics.secondary) ? secondary : { &#8230;secondary, name: &#039;degraded&#039; };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u91cc\u7684 <\/span><span style=\"color:#111827\">acceptable<\/span> <span style=\"color:#111827\">\u662f\u6574\u6bb5\u4ee3\u7801\u7684\u7075\u9b42\u3002\u5b83\u628a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5907\u80ce\u80fd\u4e0d\u80fd\u7528<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4ece\u76f4\u89c9\u53d8\u6210\u4e86\u4e00\u4e2a<\/span><span style=\"color:#111827\">\u53ef\u6d4b\u8bd5\u7684\u65ad\u8a00<\/span><span style=\"color:#111827\">\u3002\u4f60\u53ef\u4ee5\u5728<\/span><span style=\"color:#111827\"> CI <\/span><span style=\"color:#111827\">\u91cc\u5b9a\u671f\u8dd1\u91d1\u6807\u96c6&#xff0c;\u628a\u7ed3\u679c\u5582\u7ed9<\/span> <span style=\"color:#111827\">acceptable<\/span><span style=\"color:#111827\">&#xff0c;\u8fd9\u6837<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5907\u7528\u8def\u7ebf\u5f53\u524d\u662f\u5426\u6709\u6548<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5c31\u662f\u4e00\u6761\u968f\u65f6\u53ef\u67e5\u7684\u72b6\u6001&#xff0c;\u800c\u4e0d\u662f\u4e00\u6b21\u4e8b\u6545\u4e2d\u7684\u4e34\u65f6\u5224\u65ad\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6700\u540e\u4e00\u5c42\u662f<\/span><span style=\"color:#111827\"> L3<\/span><span style=\"color:#111827\">&#xff0c;\u5b83\u5e38\u88ab\u5ffd\u7565\u4f46\u5f80\u5f80\u6700\u91cd\u8981&#xff1a;<\/span><span style=\"color:#111827\">AI \u4e0d\u53ef\u7528\u65f6&#xff0c;\u4e1a\u52a1\u56de\u5230\u786e\u5b9a\u6027\u903b\u8f91\u80fd\u4e0d\u80fd\u8d70\u901a&#xff1f;<\/span> <span style=\"color:#111827\">\u6bd4\u5982\u4f60\u7684\u5de5\u5355\u5206\u8bca&#xff0c;<\/span><span style=\"color:#111827\">AI <\/span><span style=\"color:#111827\">\u4e0d\u53ef\u7528\u65f6\u80fd\u4e0d\u80fd\u9000\u56de<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6309\u5173\u952e\u8bcd\u89c4\u5219\u5206\u8bca<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff1f;\u5982\u679c\u4e0d\u80fd&#xff0c;\u90a3\u4e48\u4f60\u5b9e\u9645\u4e0a\u662f\u628a\u5173\u952e\u4e1a\u52a1\u62bc\u5728\u4e86\u4e00\u4e2a\u4f60\u4e0d\u62e5\u6709\u7684\u670d\u52a1\u4e0a\u3002\u8fd9\u4e0d\u662f\u6280\u672f\u95ee\u9898&#xff0c;\u662f\u67b6\u6784\u51b3\u7b56\u95ee\u9898&#xff0c;\u4f46\u5b83\u5fc5\u987b\u5728\u7b2c\u4e5d\u5341\u5929\u4e4b\u524d\u60f3\u6e05\u695a<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u56e0\u4e3a\u7b2c\u4e5d\u5341\u5929\u4e4b\u540e\u4f60\u5c31\u6ca1\u6709\u4ece\u5bb9\u601d\u8003\u7684\u673a\u4f1a\u4e86\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u4e5d\u3001\u91d1\u4e1d\u96c0\u7684\u9677\u9631&#xff1a;\u5e73\u5747\u6570\u4f1a\u8bf4\u8c0e<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5207\u5230\u5907\u7528\u6a21\u578b\u4e4b\u524d&#xff0c;\u4f60\u9700\u8981\u9a8c\u8bc1\u5b83\u3002\u6807\u51c6\u505a\u6cd5\u662f\u91d1\u4e1d\u96c0\u53d1\u5e03&#xff1a;\u62ff\u4e00\u5c0f\u90e8\u5206\u6d41\u91cf\u8dd1\u65b0\u6a21\u578b&#xff0c;\u5bf9\u6bd4\u6307\u6807&#xff0c;\u6ca1\u95ee\u9898\u518d\u5168\u91cf\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f46\u8fd9\u91cc\u6709\u4e2a\u9677\u9631&#xff0c;\u6211\u5728\u6a21\u62df\u6570\u636e\u91cc\u628a\u5b83\u6311\u51fa\u6765\u4e86&#xff1a;<\/span><span style=\"color:#111827\">\u603b\u4f53\u6307\u6807\u63d0\u5347\u7684\u6a21\u578b&#xff0c;\u53ef\u80fd\u5728\u4f60\u6700\u5728\u610f\u7684\u90a3\u7c7b\u8bf7\u6c42\u4e0a\u9000\u6b65\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5047\u8bbe\u4f60\u7684\u5de5\u5355\u5206\u8bca\u6709\u56db\u4e2a\u4e1a\u52a1\u5207\u7247&#xff0c;\u5019\u9009\u6a21\u578b\u4e0e\u7ebf\u4e0a\u6a21\u578b\u7684\u91d1\u6807\u96c6\u5bf9\u6bd4\u662f\u8fd9\u6837\u7684&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u4e1a\u52a1\u5207\u7247<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u7ebf\u4e0a\u6a21\u578b<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u5019\u9009\u6a21\u578b<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u5dee\u5f02<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u9000\u6b3e\u7c7b\u5de5\u5355<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">94%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">96%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#043;2<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7269\u6d41\u7c7b\u5de5\u5355<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">92%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">95%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#043;3<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8d26\u53f7\u5b89\u5168\u7c7b\u5de5\u5355<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">98%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">89%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">-9<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5176\u4ed6\u54a8\u8be2<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">88%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">91%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#043;3<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u603b\u4f53<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">93.0%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">92.8%<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:144px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">-0.2<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#111827\">\u7b49\u4e00\u4e0b<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u7b2c\u4e09\u884c\u90a3\u4e2a<\/span><span style=\"color:#111827\"> -9<\/span><span style=\"color:#111827\">&#xff0c;\u88ab\u524d\u4e24\u884c\u548c\u7b2c\u56db\u884c\u7684\u63d0\u5347<\/span><span style=\"color:#111827\">\u51e0\u4e4e\u5b8c\u5168\u63a9\u76d6<\/span><span style=\"color:#111827\">\u4e86\u3002\u5982\u679c\u53ea\u770b\u603b\u4f53&#xff0c;\u4f60\u4f1a\u770b\u5230<\/span><span style=\"color:#111827\"> -0.2 <\/span><span style=\"color:#111827\">\u4e2a\u767e\u5206\u70b9&#xff0c;\u5f88\u5bb9\u6613\u5224\u65ad\u4e3a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5728\u566a\u58f0\u8303\u56f4\u5185&#xff0c;\u53ef\u4ee5\u4e0a\u7ebf<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u4f46\u8d26\u53f7\u5b89\u5168\u7c7b\u5de5\u5355\u7684\u9000\u6b65\u662f<\/span><span style=\"color:#111827\"> 9 <\/span><span style=\"color:#111827\">\u4e2a\u767e\u5206\u70b9&#xff0c;<\/span><span style=\"color:#111827\">\u800c\u4e14\u8fd9\u7c7b\u9519\u8bef\u7684\u540e\u679c\u6700\u4e25\u91cd<\/span><span style=\"color:#111827\">&#xff08;\u5206\u9519\u4e86\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u5de5\u5355\u88ab\u5f53\u6210\u666e\u901a\u54a8\u8be2\u5904\u7406&#xff09;\u3002<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"669\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160913-6abe85a975c1b.png\" width=\"1747\" \/><span style=\"color:#111827\">\u5e73\u5747\u6570\u5982\u4f55\u63a9\u76d6\u5207\u7247\u56de\u5f52<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5c31\u662f\u90a3\u6761\u88ab\u5f88\u591a\u56e2\u961f\u5ffd\u7565\u7684\u539f\u5219&#xff1a;<\/span><span style=\"color:#111827\">\u5207\u7247\u7684\u5212\u5206\u4f9d\u636e\u5fc5\u987b\u662f&#034;\u4e1a\u52a1\u540e\u679c&#034;&#xff0c;\u800c\u4e0d\u662f&#034;\u6570\u636e\u7c7b\u522b&#034;\u3002<\/span> <span style=\"color:#111827\">\u6309\u6570\u636e\u7c7b\u522b\u5207&#xff08;\u5de5\u5355\u7c7b\u578b\u3001\u8bed\u8a00\u3001\u957f\u5ea6&#xff09;\u5f88\u81ea\u7136&#xff0c;\u4f46\u771f\u6b63\u8be5\u5207\u7684\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u9519\u4e86\u4f1a\u5f88\u8d35\u7684\u90a3\u4e00\u7c7b<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e00\u4e2a\u5b9e\u7528\u7684\u505a\u6cd5\u662f\u7ed9\u5207\u7247\u5e26\u4e0a\u6743\u91cd&#xff0c;\u8ba9\u5bf9\u6bd4\u76f4\u63a5\u53cd\u6620\u540e\u679c&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type Slice &#061; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0id: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0weight: number; \/\/ <\/span><span style=\"color:#111827\">\u4e1a\u52a1\u540e\u679c\u6743\u91cd&#xff0c;\u4e0d\u662f\u6837\u672c\u5360\u6bd4<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0cases: EvalCase[];<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type SliceResult &#061; { id: string; currentPass: number; candidatePass: number; weight: number };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function gateOnSlices(results: SliceResult[]): { ship: boolean; blockers: string[] } {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const blockers: string[] &#061; [];<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u89c4\u5219\u4e00&#xff1a;\u4efb\u4f55\u9ad8\u6743\u91cd\u5207\u7247\u7684\u7edd\u5bf9\u9000\u6b65\u90fd\u4e0d\u80fd\u8d85\u8fc7<\/span><span style=\"color:#111827\"> 2 <\/span><span style=\"color:#111827\">\u4e2a\u767e\u5206\u70b9<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0for (const r of results.filter((x) &#061;&gt; x.weight &gt;&#061; 2)) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0const delta &#061; r.candidatePass &#8211; r.currentPass;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0if (delta &lt; -0.02) blockers.push(&#096;${r.id} <\/span><span style=\"color:#111827\">\u9000\u6b65<\/span><span style=\"color:#111827\"> ${(delta * 100).toFixed(1)}pt<\/span><span style=\"color:#111827\">&#xff08;\u9ad8\u6743\u91cd\u5207\u7247&#xff09;<\/span><span style=\"color:#111827\">&#096;);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u89c4\u5219\u4e8c&#xff1a;\u603b\u4f53\u52a0\u6743\u5206\u4e0d\u80fd\u4e0b\u964d<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const wSum &#061; results.reduce((a, r) &#061;&gt; a &#043; r.weight, 0);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const cur &#061; results.reduce((a, r) &#061;&gt; a &#043; r.currentPass * r.weight, 0) \/ wSum;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const cand &#061; results.reduce((a, r) &#061;&gt; a &#043; r.candidatePass * r.weight, 0) \/ wSum;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (cand &lt; cur) blockers.push(&#096;<\/span><span style=\"color:#111827\">\u52a0\u6743\u603b\u5206\u4e0b\u964d<\/span><span style=\"color:#111827\"> ${((cand &#8211; cur) * 100).toFixed(2)}pt&#096;);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return { ship: blockers.length &#061;&#061;&#061; 0, blockers };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ce8\u610f\u89c4\u5219\u4e00\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7edd\u5bf9\u9000\u6b65<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u4e0d\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u76f8\u5bf9\u9000\u6b65<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u56e0\u4e3a\u4e00\u4e2a\u4ece<\/span><span style=\"color:#111827\"> 98% <\/span><span style=\"color:#111827\">\u6389\u5230<\/span><span style=\"color:#111827\"> 89% <\/span><span style=\"color:#111827\">\u7684\u5207\u7247&#xff0c;\u548c\u4ece<\/span><span style=\"color:#111827\"> 60% <\/span><span style=\"color:#111827\">\u6389\u5230<\/span><span style=\"color:#111827\"> 51% <\/span><span style=\"color:#111827\">\u7684\u5207\u7247&#xff0c;\u6389\u7684\u662f\u540c\u6837\u7684\u70b9\u6570&#xff0c;\u4f46\u524d\u8005\u610f\u5473\u7740\u4f60\u635f\u5931\u4e86\u63a5\u8fd1\u4e00\u534a\u7684\u5269\u4f59\u51c6\u786e\u7387\u4f59\u91cf\u3002\u8fd9\u4e2a\u533a\u522b\u5728\u5c0f\u6837\u672c\u4e0a\u5c24\u5176\u91cd\u8981\u3002<\/span><\/p>\n<h4 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">9.1 \u600e\u4e48\u533a\u5206&#034;\u6f02\u79fb&#034;\u548c&#034;\u566a\u58f0&#034;<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u91d1\u6807\u96c6\u901a\u8fc7\u7387\u4ece<\/span><span style=\"color:#111827\"> 93% <\/span><span style=\"color:#111827\">\u6389\u5230<\/span><span style=\"color:#111827\"> 91%\u2014\u2014<\/span><span style=\"color:#111827\">\u8fd9\u662f\u4e0a\u6e38\u53d8\u4e86&#xff0c;\u8fd8\u662f\u5355\u7eaf\u7684\u6296\u52a8&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u95ee\u9898\u5fc5\u987b\u56de\u7b54&#xff0c;\u5426\u5219\u4f60\u7684\u6f02\u79fb\u544a\u8b66\u4f1a\u6df9\u6ca1\u5728\u566a\u58f0\u91cc&#xff0c;\u4e00\u5468\u4e4b\u540e\u4f60\u5c31\u4f1a\u628a\u5b83\u9759\u97f3\u3002\u6709\u4e09\u4ef6\u4e8b\u80fd\u8ba9\u5224\u65ad\u53d8\u5f97\u53ef\u9760&#xff1a;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e00&#xff0c;\u5c3d\u91cf\u538b\u4f4e\u81ea\u8eab\u7684\u968f\u673a\u6027\u3002<\/span><span style=\"color:#111827\"> \u7528\u56fa\u5b9a\u7684\u8f93\u5165\u3001\u56fa\u5b9a\u7684\u91c7\u6837\u53c2\u6570&#xff0c;\u628a\u4f60\u81ea\u5df1\u8fd9\u8fb9\u7684\u53d8\u91cf\u5148\u6536\u5e72\u51c0\u3002\u4f46\u8981\u6709\u4e2a\u6e05\u9192\u7684\u8ba4\u8bc6&#xff1a;<\/span><span style=\"color:#111827\">\u6e29\u5ea6\u8bbe\u4e3a 0 \u4e0d\u7b49\u4e8e\u786e\u5b9a\u6027\u8f93\u51fa<\/span><span style=\"color:#111827\">\u3002\u6d6e\u70b9\u8fd0\u7b97\u7684\u987a\u5e8f\u3001\u6279\u5904\u7406\u7684\u5408\u5e76\u65b9\u5f0f\u3001\u4e0a\u6e38\u7684\u91cf\u5316\u7b56\u7565\u90fd\u53ef\u80fd\u8ba9\u540c\u6837\u7684\u8f93\u5165\u4ea7\u751f\u4e0d\u540c\u7684\u5b57\u8282\u3002\u6240\u4ee5\u4f60\u53ea\u80fd\u964d\u4f4e\u566a\u58f0&#xff0c;\u6d88\u9664\u4e0d\u4e86\u5b83\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e8c&#xff0c;\u770b\u8d8b\u52bf&#xff0c;\u4e0d\u770b\u5355\u70b9\u3002<\/span> <span style=\"color:#111827\">\u5355\u65e5\u6570\u636e\u6ca1\u6709\u5224\u65ad\u529b&#xff0c;\u8fde\u7eed\u591a\u65e5\u7684\u540c\u5411\u504f\u79bb\u624d\u6709\u3002\u7528\u57fa\u7ebf\u7a97\u53e3\u7b97\u51fa\u5747\u503c\u548c\u6807\u51c6\u5dee&#xff0c;\u518d\u8981\u6c42<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fde\u7eed<\/span><span style=\"color:#111827\"> N <\/span><span style=\"color:#111827\">\u5929\u4f4e\u4e8e\u9608\u503c<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff0c;\u8bef\u62a5\u7387\u4f1a\u4e0b\u964d\u4e00\u4e2a\u91cf\u7ea7\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e09&#xff0c;\u4e5f\u662f\u6700\u6709\u4ef7\u503c\u7684\u4e00\u6761&#xff1a;\u7528\u8f93\u51fa\u6307\u7eb9\u7684\u5206\u5e03&#xff0c;\u800c\u4e0d\u662f\u901a\u8fc7\u7387\u7684\u5747\u503c\u3002<\/span> <span style=\"color:#111827\">\u7b2c<\/span><span style=\"color:#111827\"> 10 <\/span><span style=\"color:#111827\">\u7ae0\u63d0\u5230\u7684<\/span> <span style=\"color:#111827\">outputHash<\/span><span style=\"color:#111827\"> \u5728\u8fd9\u91cc\u6d3e\u4e0a\u7528\u573a\u3002\u540c\u4e00\u6279\u56fa\u5b9a\u8f93\u5165&#xff0c;\u5982\u679c\u8fc7\u53bb\u4e24\u5468\u7684\u8f93\u51fa\u6307\u7eb9\u96c6\u5408\u548c\u672c\u5468\u7684\u6307\u7eb9\u96c6\u5408<\/span><span style=\"color:#111827\">\u51e0\u4e4e\u4e0d\u91cd\u53e0<\/span><span style=\"color:#111827\">&#xff0c;\u90a3\u4e0d\u7ba1\u901a\u8fc7\u7387\u662f\u591a\u5c11&#xff0c;\u4e0a\u6e38\u4e00\u5b9a\u53d8\u4e86\u3002\u8fd9\u4e2a\u8bc1\u636e\u4e0d\u9700\u8981\u4e0a\u6e38\u627f\u8ba4&#xff0c;\u4e5f\u4e0d\u9700\u8981\u4efb\u4f55\u4eba\u7684\u914d\u5408<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u5b83\u662f\u4f60\u81ea\u5df1\u6512\u4e0b\u6765\u7684\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type Daily &#061; { date: string; passRate: number };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function detectDrift(baseline: number[], recent: Daily[]) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const mean &#061; baseline.reduce((a, b) &#061;&gt; a &#043; b, 0) \/ baseline.length;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const sd &#061; Math.sqrt(<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0baseline.reduce((a, b) &#061;&gt; a &#043; (b &#8211; mean) ** 2, 0) \/ baseline.length,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0);<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const threshold &#061; mean &#8211; 2 * sd;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u8fde\u7eed<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u5929\u4f4e\u4e8e\u57fa\u7ebf<\/span><span style=\"color:#111827\"> 2 <\/span><span style=\"color:#111827\">\u4e2a\u6807\u51c6\u5dee&#xff0c;\u624d\u8ba4\u4e3a\u662f\u7cfb\u7edf\u6027\u53d8\u5316\u800c\u4e0d\u662f\u6296\u52a8<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const streak &#061; recent.slice(-3).filter((d) &#061;&gt; d.passRate &lt; threshold).length;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0drifting: streak &gt;&#061; 3,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0detail: &#096;<\/span><span style=\"color:#111827\">\u57fa\u7ebf<\/span><span style=\"color:#111827\"> ${(mean * 100).toFixed(1)}% \u00b1${(sd * 100).toFixed(1)}%<\/span><span style=\"color:#111827\">&#xff0c;<\/span><span style=\"color:#111827\">&#096;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#043; &#096;<\/span><span style=\"color:#111827\">\u9608\u503c<\/span><span style=\"color:#111827\"> ${(threshold * 100).toFixed(1)}%<\/span><span style=\"color:#111827\">&#xff0c;\u8fd1<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u5929\u4f4e\u4e8e\u9608\u503c<\/span><span style=\"color:#111827\"> ${streak} <\/span><span style=\"color:#111827\">\u5929<\/span><span style=\"color:#111827\">&#096;,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u8f93\u51fa\u6307\u7eb9\u96c6\u5408\u7684\u91cd\u53e0\u5ea6&#xff1a;\u4e0d\u4f9d\u8d56\u4e0a\u6e38&#xff0c;\u81ea\u5df1\u5c31\u80fd\u7b97<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function fingerprintOverlap(previous: Set&lt;string&gt;, current: Set&lt;string&gt;): number {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0let hit &#061; 0;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0for (const h of current) if (previous.has(h)) hit&#043;&#043;;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return current.size &#061;&#061;&#061; 0 ? 0 : hit \/ current.size;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u63a5\u8fd1<\/span><span style=\"color:#111827\"> 1 \u2192 <\/span><span style=\"color:#111827\">\u884c\u4e3a\u7a33\u5b9a&#xff1b;\u63a5\u8fd1<\/span><span style=\"color:#111827\"> 0 \u2192 <\/span><span style=\"color:#111827\">\u8f93\u51fa\u5206\u5e03\u6574\u4f53\u6362\u4e86&#xff0c;\u5f3a\u6f02\u79fb\u4fe1\u53f7<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">fingerprintOverlap<\/span><span style=\"color:#111827\"> \u8fd9\u4e2a\u51fd\u6570\u770b\u8d77\u6765\u6734\u7d20&#xff0c;\u4f46\u5b83\u662f\u6574\u5957\u6f02\u79fb\u68c0\u6d4b\u91cc<\/span><span style=\"color:#111827\">\u552f\u4e00\u4e0d\u4f9d\u8d56\u4e0a\u6e38\u914d\u5408<\/span><span style=\"color:#111827\">\u7684\u4e00\u73af\u3002\u524d\u9762\u7b2c\u4e09\u8282\u6211\u4eec\u5df2\u7ecf\u9a8c\u8bc1\u8fc7&#xff0c;\u4e0a\u6e38\u4e0d\u4e0a\u62a5\u65f6 <\/span><span style=\"color:#111827\">response.modelId<\/span><span style=\"color:#111827\"> \u53ea\u662f\u4e00\u53e5\u56de\u58f0&#xff1b;\u800c\u5f53\u4e0a\u6e38\u4e0d\u4e0a\u62a5\u65f6&#xff0c;\u4f60\u7684\u8f93\u51fa\u6307\u7eb9\u4ecd\u7136\u5728\u4f60\u81ea\u5df1\u624b\u91cc\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6700\u540e\u4e00\u53e5\u8bdd\u8981\u8bf4\u6e05\u695a&#xff1a;\u4efb\u4f55\u9608\u503c\u90fd\u4f1a\u8bef\u62a5&#xff0c;\u4e5f\u4f1a\u6f0f\u62a5\u3002\u8fd9\u4e0d\u662f\u9608\u503c\u8c03\u5f97\u4e0d\u591f\u597d&#xff0c;\u800c\u662f\u8fd9\u7c7b\u95ee\u9898\u7684\u672c\u8d28<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4f60\u662f\u5728\u7528\u6709\u9650\u7684\u91c7\u6837\u53bb\u5224\u65ad\u4e00\u4e2a\u9ed1\u7bb1\u7684\u5206\u5e03\u6709\u6ca1\u6709\u53d8\u3002\u6240\u4ee5<\/span><span style=\"color:#111827\">\u6709\u9608\u503c\u6bd4\u9608\u503c\u7cbe\u786e\u66f4\u91cd\u8981<\/span><span style=\"color:#111827\">\u3002\u6ca1\u6709\u9608\u503c\u7684\u65f6\u5019&#xff0c;\u4f60\u8fde<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5728\u770b<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fd9\u4ef6\u4e8b\u90fd\u6ca1\u505a\u5230\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u5341\u3001\u503c\u73ed\u4e0e\u4e8b\u6545\u54cd\u5e94&#xff1a;AI \u4e8b\u6545\u7684\u6392\u67e5\u987a\u5e8f<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u73b0\u5728\u628a\u4e0a\u9762\u6240\u6709\u4e1c\u897f\u4e32\u6210\u4e00\u5957\u503c\u73ed\u65f6\u80fd\u7528\u7684\u6d41\u7a0b\u3002<\/span><span style=\"color:#111827\">AI <\/span><span style=\"color:#111827\">\u4e8b\u6545\u7684\u6392\u67e5\u987a\u5e8f\u8ddf\u4f20\u7edf\u540e\u7aef<\/span><span style=\"color:#111827\">\u4e0d\u4e00\u6837<\/span><span style=\"color:#111827\">&#xff0c;\u56e0\u4e3a\u6700\u5e38\u89c1\u7684\u6839\u56e0\u4e0d\u5728\u4f60\u7684\u4ee3\u7801\u91cc\u3002<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e00\u95ee&#xff1a;\u4ee3\u7801\u53d8\u4e86\u5417&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u770b\u6700\u8fd1\u4e00\u6b21\u90e8\u7f72\u65f6\u95f4\u3001\u6a21\u578b\u6807\u8bc6\u7684<\/span><span style=\"color:#111827\"> git diff<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u6ca1\u53d8&#xff1f;\u8fdb\u7b2c\u4e8c\u95ee&#xff08;\u8fd9\u4e00\u6b65\u5c31\u6392\u6389\u4e86<\/span><span style=\"color:#111827\"> 80% <\/span><span style=\"color:#111827\">\u7684\u76f4\u89c9\u9519\u8bef\u65b9\u5411&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e8c\u95ee&#xff1a;\u4e0a\u6e38\u53d8\u4e86\u5417&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u67e5<\/span><span style=\"color:#111827\"> response.headers <\/span><span style=\"color:#111827\">\u91cc\u7684<\/span><span style=\"color:#111827\"> request-id<\/span><span style=\"color:#111827\">&#xff0c;\u62bd<\/span><span style=\"color:#111827\"> 3 <\/span><span style=\"color:#111827\">\u6761\u6700\u8fd1\u7684\u6210\u529f\u8c03\u7528<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u4ece<\/span><span style=\"color:#111827\"> response.body <\/span><span style=\"color:#111827\">\u91cc\u8bfb\u670d\u52a1\u7aef\u58f0\u660e\u7684<\/span><span style=\"color:#111827\"> model <\/span><span style=\"color:#111827\">\u5b57\u6bb5&#xff0c;\u8ddf\u4f60\u7684\u671f\u671b\u503c\u6bd4\u5bf9<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u62ff\u5230\u6f02\u79fb\u8bb0\u5f55&#xff1f;\u786e\u8ba4\u662f\u522b\u540d\u91cd\u6307\u5411\u8fd8\u662f\u9759\u9ed8\u70b9\u53d1\u5e03<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e09\u95ee&#xff1a;\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53d8\u5dee<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u8fd8\u662f<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53d8\u6162<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 p95\/p99 <\/span><span style=\"color:#111827\">\u5ef6\u8fdf\u73af\u6bd4<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u6ce8\u610f&#xff1a;\u53ef\u80fd\u662f\u4e0a\u6e38\u6362\u4e86\u66f4\u6162\u7684\u6a21\u578b&#xff0c;\u800c\u4e0d\u662f\u4f60\u7684\u4ee3\u7801\u53d8\u6162<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u56db\u95ee&#xff1a;\u5f71\u54cd\u9762\u591a\u5927&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u6309\u4e1a\u52a1\u5207\u7247\u770b&#xff0c;\u4e0d\u8981\u53ea\u770b\u603b\u4f53<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u627e\u51fa\u53d7\u5f71\u54cd\u6700\u8d35\u7684\u90a3\u4e2a\u5207\u7247<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e94\u95ee&#xff1a;\u8981\u4e0d\u8981\u964d\u7ea7&#xff1f;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u2192 <\/span><span style=\"color:#111827\">\u8d70<\/span><span style=\"color:#111827\"> L1 \u2192 L2 \u2192 L3 <\/span><span style=\"color:#111827\">\u7684\u51b3\u7b56\u6811&#xff0c;\u6309\u9884\u6848\u6267\u884c&#xff0c;\u4e0d\u8981\u5728\u4e8b\u6545\u4e2d\u73b0\u573a\u8bbe\u8ba1<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5957\u6d41\u7a0b\u8981\u80fd\u8dd1\u8d77\u6765&#xff0c;\u524d\u63d0\u662f<\/span><span style=\"color:#111827\">\u4f60\u7684\u7559\u75d5\u8db3\u591f<\/span><span style=\"color:#111827\">\u3002\u6240\u8c13\u7559\u75d5&#xff0c;\u5c31\u662f\u6bcf\u6b21\u8c03\u7528\u90fd\u8981\u8bb0\u4e0b\u8fd9\u51e0\u9879&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">type CallRecord &#061; {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0requestId: string | null; \/\/ <\/span><span style=\"color:#111827\">\u5173\u8054\u952e&#xff1a;\u80fd\u51ed\u5b83\u53bb\u95ee\u4e0a\u6e38<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0requested: string; \/\/ <\/span><span style=\"color:#111827\">\u4f60\u8bf7\u6c42\u7684\u6a21\u578b\u6807\u8bc6<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0served: string | null; \/\/ <\/span><span style=\"color:#111827\">\u670d\u52a1\u7aef\u58f0\u660e\u7684\u6a21\u578b&#xff08;\u53ef\u80fd\u4e3a<\/span><span style=\"color:#111827\"> null<\/span><span style=\"color:#111827\">&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0drifted: boolean; \/\/ requested !&#061;&#061; served<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0promptHash: string; \/\/ <\/span><span style=\"color:#111827\">\u8f93\u5165\u6307\u7eb9&#xff0c;\u65b9\u4fbf\u56de\u6eaf<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u540c\u4e00\u4e2a\u8f93\u5165\u53d8\u4e86\u5417<\/span><span style=\"color:#111827\">&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0outputHash: string; \/\/ <\/span><span style=\"color:#111827\">\u8f93\u51fa\u6307\u7eb9&#xff0c;\u7528\u4e8e\u68c0\u6d4b\u540c\u7c7b\u8f93\u5165\u8f93\u51fa\u6f02\u79fb<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0inputTokens: number;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0cacheReadTokens: number; \/\/ <\/span><span style=\"color:#111827\">\u7f13\u5b58\u547d\u4e2d\u60c5\u51b5&#xff08;\u4e0b\u4e00\u8282\u8be6\u8ff0&#xff09;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0latencyMs: number;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0finishReason: string;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0abortReason: string | null; \/\/ <\/span><span style=\"color:#111827\">\u81ea\u5df1\u6253\u7684\u6807\u8bb0&#xff1a;<\/span><span style=\"color:#111827\">user \/ total-timeout \/ step-timeout<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0errorClass: string | null; \/\/ RetryError <\/span><span style=\"color:#111827\">\u8fd8\u662f<\/span><span style=\"color:#111827\"> APICallError<\/span><span style=\"color:#111827\">&#xff0c;\u51b3\u5b9a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u662f\u5426\u91cd\u8bd5\u8fc7<\/span><span style=\"color:#111827\">&#034;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">};<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\/\/ <\/span><span style=\"color:#111827\">\u4e00\u4e2a\u6700\u5c0f\u7684\u843d\u5730\u70b9&#xff1a;\u628a\u5173\u952e\u5b57\u6bb5\u5199\u8fdb\u7ed3\u6784\u5316\u65e5\u5fd7<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function recordCall(r: { response: { id?: string; modelId?: string }; usage: { inputTokens: number; inputTokenDetails?: { cacheReadTokens?: number } } }, extra: Partial&lt;CallRecord&gt;) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0logger.info(&#039;llm.call&#039;, {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0requestId: extra.requestId ?? null,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0requested: extra.requested,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0served: extra.served ?? null,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0drifted: extra.drifted ?? false,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0promptHash: extra.promptHash,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0outputHash: extra.outputHash,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0inputTokens: r.usage.inputTokens,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0cacheReadTokens: r.usage.inputTokenDetails?.cacheReadTokens ?? 0,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0latencyMs: extra.latencyMs,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0errorClass: extra.errorClass ?? null,<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0});<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">promptHash<\/span><span style=\"color:#111827\"> \u548c <\/span><span style=\"color:#111827\">outputHash<\/span><span style=\"color:#111827\"> \u8fd9\u4e24\u9879\u662f\u5f88\u591a\u4eba\u60f3\u4e0d\u5230\u4f46\u7279\u522b\u6709\u7528\u7684&#xff1a;<\/span><span style=\"color:#111827\">\u5f53\u4f60\u6000\u7591\u6f02\u79fb\u5374\u62ff\u4e0d\u5230\u4e0a\u6e38\u8bc1\u636e\u65f6&#xff0c;\u4f60\u81ea\u5df1\u7684\u8f93\u5165\u8f93\u51fa\u6307\u7eb9\u5c31\u662f\u552f\u4e00\u7684\u8bc1\u636e\u3002<\/span> <span style=\"color:#111827\">\u540c\u4e00\u4e2a<\/span><span style=\"color:#111827\"> prompt <\/span><span style=\"color:#111827\">\u5728\u8fc7\u53bb\u4e24\u5468\u7684\u8f93\u51fa\u6307\u7eb9\u5206\u5e03\u53d1\u751f\u4e86\u53d8\u5316&#xff0c;\u8fd9\u4e2a\u4e8b\u5b9e\u4e0d\u9700\u8981\u4e0a\u6e38\u627f\u8ba4\u5c31\u80fd\u6210\u7acb\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u5341\u4e00\u3001\u6210\u672c\u4e0e\u7f13\u5b58&#xff1a;\u547d\u4e2d\u7387\u6389\u4e86&#xff0c;\u53ef\u80fd\u53c8\u662f\u6f02\u79fb<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e5d\u5341\u5929\u4f60\u8fd8\u4f1a\u9047\u5230\u4e00\u7c7b<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u770b\u8d77\u6765\u662f\u6210\u672c\u95ee\u9898<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u73b0\u8c61&#xff1a;<\/span><span style=\"color:#111827\">\u8d26\u5355\u6084\u6084\u6da8\u4e86<\/span><span style=\"color:#111827\">\u3002\u5728\u6ca1\u6709\u6539\u4ee3\u7801\u3001\u6ca1\u6709\u52a0\u6d41\u91cf\u7684\u60c5\u51b5\u4e0b&#xff0c;\u6210\u672c\u4e0a\u5347\u901a\u5e38\u6765\u81ea\u4e24\u4e2a\u5730\u65b9&#xff1a;\u4e0a\u6e38\u8c03\u4ef7&#xff0c;\u6216\u8005\u4f60\u7684\u7f13\u5b58\u547d\u4e2d\u7387\u6389\u4e86\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u800c\u7f13\u5b58\u547d\u4e2d\u7387\u6389&#xff0c;\u5f80\u5f80\u53c8\u662f\u6f02\u79fb\u7684\u4e00\u4e2a<\/span><span style=\"color:#111827\">\u53ef\u6d4b\u91cf\u4fe1\u53f7<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u56e0\u4e3a\u4e0a\u6e38\u6539\u4e86\u8def\u7531\u6216\u8005\u6539\u4e86\u7f13\u5b58\u7b56\u7565&#xff0c;\u4f60\u7684\u524d\u7f00\u7f13\u5b58\u53ef\u80fd\u4e0d\u518d\u547d\u4e2d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6240\u4ee5\u5148\u628a\u547d\u4e2d\u7387\u7684\u8ba1\u7b97\u505a\u5bf9\u3002\u8fd9\u91cc\u6709\u4e2a\u6211\u5b9e\u6d4b\u51fa\u6765\u7684\u5751&#xff1a;<\/span><span style=\"color:#111827\">AI SDK \u7684\u7c7b\u578b\u58f0\u660e\u548c\u8fd0\u884c\u65f6\u5b57\u6bb5\u540d\u4e0d\u4e00\u6837\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7c7b\u578b\u58f0\u660e\u91cc&#xff0c;<\/span><span style=\"color:#111827\">provider <\/span><span style=\"color:#111827\">\u5c42\u7684<\/span><span style=\"color:#111827\"> usage <\/span><span style=\"color:#111827\">\u957f\u8fd9\u6837&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">inputTokens: { total: number; noCache: number; cacheRead: number; cacheWrite: number }<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4f46\u4f60\u4ece <\/span><span style=\"color:#111827\">result.usage<\/span><span style=\"color:#111827\"> \u62ff\u5230\u7684\u5b9e\u9645\u7ed3\u6784\u662f\u8fd9\u6837\u7684&#xff08;\u5b9e\u8dd1\u8f93\u51fa&#xff09;&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u793a\u4f8b\u6587\u672c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">&#8212; result.usage &#8212;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0<span style=\"color:#111827\">\u952e<\/span><span style=\"color:#111827\"> &#061; inputTokens, inputTokenDetails, outputTokens, outputTokenDetails, totalTokens<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0JSON &#061; {&#034;inputTokens&#034;:10000,&#034;inputTokenDetails&#034;:{&#034;noCacheTokens&#034;:2000,&#034;cacheReadTokens&#034;:7000,&#034;cacheWriteTokens&#034;:1000},&#034;outputTokens&#034;:300,&#034;outputTokenDetails&#034;:{&#034;textTokens&#034;:300,&#034;reasoningTokens&#034;:0},&#034;totalTokens&#034;:10300}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6ce8\u610f\u4e24\u5904\u5dee\u522b&#xff1a;<\/span><span style=\"color:#111827\">inputTokens<\/span><span style=\"color:#111827\"> \u662f\u4e00\u4e2a\u6570\u5b57&#xff0c;\u4e0d\u662f\u5bf9\u8c61<\/span><span style=\"color:#111827\">&#xff1b;\u7f13\u5b58\u660e\u7ec6\u88ab\u632a\u5230\u4e86 <\/span><span style=\"color:#111827\">inputTokenDetails<\/span><span style=\"color:#111827\"> \u91cc&#xff0c;\u5e76\u4e14\u6539\u540d\u6210\u4e86 <\/span><span style=\"color:#111827\">cacheReadTokens<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">cacheWriteTokens<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">noCacheTokens<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5982\u679c\u4f60\u7167\u7740\u7c7b\u578b\u58f0\u660e\u5199 <\/span><span style=\"color:#111827\">usage.inputTokens.cacheRead<\/span><span style=\"color:#111827\">&#xff0c;\u4f60\u4f1a\u62ff\u5230 <\/span><span style=\"color:#111827\">undefined<\/span><span style=\"color:#111827\">&#xff0c;\u7136\u540e\u547d\u4e2d\u7387\u7b97\u51fa\u6765\u662f <\/span><span style=\"color:#111827\">NaN<\/span><span style=\"color:#111827\">&#xff0c;\u800c <\/span><span style=\"color:#111827\">NaN<\/span> <span style=\"color:#111827\">\u5728\u5927\u591a\u6570\u76d1\u63a7\u7cfb\u7edf\u91cc\u4f1a\u5b89\u9759\u5730\u88ab\u4e22\u5f03<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u4f60\u7684\u547d\u4e2d\u7387\u770b\u677f\u4f1a\u663e\u793a&#034;\u65e0\u6570\u636e&#034;&#xff0c;\u800c\u4e0d\u662f\u62a5\u9519<\/span><span style=\"color:#111827\">\u3002\u8fd9\u5c31\u662f\u5178\u578b\u7684<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u9759\u9ed8\u5931\u8d25<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5728\u4f60\u81ea\u5df1\u7684\u4ee3\u7801\u91cc\u91cd\u6f14\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6b63\u786e\u7684\u7b97\u6cd5&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">TypeScript<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f9fafb;height:27px;vertical-align:middle;width:576px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">function cacheHitRate(usage: {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0inputTokens: number;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0inputTokenDetails?: { cacheReadTokens?: number; cacheWriteTokens?: number };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}): { rate: number | null; caveat: string | null } {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const read &#061; usage.inputTokenDetails?.cacheReadTokens ?? 0;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0const write &#061; usage.inputTokenDetails?.cacheWriteTokens ?? 0;<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u200b<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (!usage.inputTokens || usage.inputTokens &lt;&#061; 0) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0return { rate: null, caveat: &#039;<\/span><span style=\"color:#111827\">\u65e0\u8f93\u5165<\/span><span style=\"color:#111827\"> token<\/span><span style=\"color:#111827\">&#xff0c;\u65e0\u6cd5\u8ba1\u7b97<\/span><span style=\"color:#111827\">&#039; };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0if (read &#061;&#061;&#061; 0 &amp;&amp; write &#061;&#061;&#061; 0) {<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0\/\/ <\/span><span style=\"color:#111827\">\u5173\u952e&#xff1a;<\/span><span style=\"color:#111827\">0 <\/span><span style=\"color:#111827\">\u547d\u4e2d\u7387\u6709\u4e24\u79cd\u53ef\u80fd&#xff0c;\u5fc5\u987b\u533a\u5206<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0\u00a0\u00a0return { rate: 0, caveat: &#039;<\/span><span style=\"color:#111827\">\u65e0\u7f13\u5b58\u660e\u7ec6&#xff1a;\u53ef\u80fd\u662f\u4e0a\u6e38\u4e0d\u4e0a\u62a5&#xff0c;\u4e5f\u53ef\u80fd\u662f\u771f\u7684\u6ca1\u547d\u4e2d<\/span><span style=\"color:#111827\">&#039; };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0}<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u00a0\u00a0return { rate: read \/ usage.inputTokens, caveat: null };<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">}<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">caveat<\/span><span style=\"color:#111827\"> \u8fd9\u4e2a\u5b57\u6bb5\u4e0d\u662f\u5570\u55e6\u3002<\/span><span style=\"color:#111827\">cacheReadTokens<\/span><span style=\"color:#111827\"> \u5168\u4e3a 0 \u65f6&#xff0c;&#034;\u771f\u7684\u6ca1\u547d\u4e2d&#034;\u548c&#034;\u4e0a\u6e38\u6839\u672c\u4e0d\u4e0a\u62a5\u7f13\u5b58\u5b57\u6bb5&#034;\u662f\u4e24\u4ef6\u5b8c\u5168\u4e0d\u540c\u7684\u4e8b<\/span><span style=\"color:#111827\">&#xff0c;\u524d\u8005\u8981\u4f60\u53bb\u4f18\u5316<\/span><span style=\"color:#111827\"> prompt <\/span><span style=\"color:#111827\">\u7ed3\u6784&#xff0c;\u540e\u8005\u8981\u4f60\u53bb\u6362\u4f9b\u5e94\u5546\u6216\u8005\u522b\u518d\u770b\u8fd9\u4e2a\u6307\u6807\u3002\u5982\u679c\u4f60\u7684\u770b\u677f\u628a\u5b83\u4eec\u5408\u5e76\u663e\u793a\u6210<\/span><span style=\"color:#111827\"> 0%<\/span><span style=\"color:#111827\">&#xff0c;\u4f60\u4f1a\u5728\u4e00\u4e2a\u5047\u7684\u6570\u5b57\u4e0a\u505a\u51b3\u7b56\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u76ef\u547d\u4e2d\u7387\u7684\u65f6\u5019&#xff0c;\u628a\u5b83\u548c\u53e6\u5916\u4e00\u4e2a\u6307\u6807\u653e\u5728\u4e00\u8d77\u770b\u4f1a\u66f4\u6709\u4fe1\u606f\u91cf&#xff1a;<\/span><\/p>\n<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u73b0\u8c61\u7ec4\u5408<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u53ef\u80fd\u539f\u56e0<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"background-color:#f3f4f6;height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:left\"><span style=\"color:#111827\">\u52a8\u4f5c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u547d\u4e2d\u7387\u4e0b\u964d<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u6210\u672c\u4e0a\u5347<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u524d\u7f00\u7f13\u5b58\u5931\u6548&#xff08;<\/span> <span style=\"color:#111827\">prompt <\/span> <span style=\"color:#111827\">\u7ed3\u6784\u88ab\u6539\u52a8&#xff09;<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u68c0\u67e5<\/span> <span style=\"color:#111827\"> prompt <\/span> <span style=\"color:#111827\">\u524d\u7f00\u662f\u5426\u7a33\u5b9a<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u547d\u4e2d\u7387\u4e0b\u964d<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u6210\u672c\u4e0a\u5347<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u5ef6\u8fdf\u53d8\u5316<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u6e38\u6362\u4e86\u8def\u7531\u6216\u6a21\u578b<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u67e5\u6f02\u79fb\u8bb0\u5f55<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u547d\u4e2d\u7387\u4e0d\u53d8<\/span> <span style=\"color:#111827\"> &#043; <\/span> <span style=\"color:#111827\">\u6210\u672c\u4e0a\u5347<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u4e0a\u6e38\u8c03\u4ef7&#xff0c;\u6216\u8f93<\/span> <span style=\"color:#111827\"> token <\/span> <span style=\"color:#111827\">\u53d8\u591a<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u5bf9\u8d26\u5355\u4ef7&#xff0c;\u68c0\u67e5\u8f93\u51fa\u957f\u5ea6\u5206\u5e03<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u547d\u4e2d\u7387\u663e\u793a\u4e3a<\/span> <span style=\"color:#111827\"> 0 <\/span> <span style=\"color:#111827\">\u4e14\u6052\u5b9a\u4e0d\u52a8<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u53ef\u80fd\u538b\u6839\u62ff\u4e0d\u5230\u7f13\u5b58\u5b57\u6bb5<\/span><\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"height:27px;vertical-align:middle;width:192px\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u6362\u4f9b\u5e94\u5546\u6216\u6539\u7528\u5176\u5b83\u53e3\u5f84<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c\u4e00\u5217\u548c\u7b2c\u4e8c\u5217\u770b\u8d77\u6765\u5f88\u50cf&#xff0c;\u533a\u522b\u5728\u4e8e<\/span><span style=\"color:#111827\">\u6709\u6ca1\u6709\u4f34\u968f\u5ef6\u8fdf\u53d8\u5316<\/span><span style=\"color:#111827\">\u3002\u5ef6\u8fdf\u53d8\u4e86&#xff0c;\u8bf4\u660e\u6267\u884c\u8def\u5f84\u53d8\u4e86&#xff08;\u6a21\u578b\u6216\u8def\u7531\u6362\u4e86&#xff09;&#xff1b;\u5ef6\u8fdf\u4e0d\u53d8&#xff0c;\u8bf4\u660e\u53ea\u662f\u8ba1\u4ef7\u53d8\u4e86\u3002\u8fd9\u4e2a\u5224\u65ad\u65b9\u6cd5\u6bd4\u53bb\u8bfb<\/span><span style=\"color:#111827\"> changelog <\/span><span style=\"color:#111827\">\u5feb\u3002<\/span><\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u5341\u4e8c\u3001\u7b2c 90 \u5929\u68c0\u67e5\u6e05\u5355<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u628a\u4e0a\u9762\u6240\u6709\u5185\u5bb9\u538b\u6210\u4e00\u4efd\u53ef\u4ee5\u7167\u7740\u505a\u7684\u6e05\u5355\u3002\u5efa\u8bae\u6bcf\u5b63\u5ea6\u8dd1\u4e00\u6b21&#xff0c;\u5c24\u5176\u662f\u4f60\u4e0d\u6253\u7b97\u8fd1\u671f\u6539\u52a8<\/span><span style=\"color:#111827\"> AI <\/span><span style=\"color:#111827\">\u529f\u80fd\u7684\u65f6\u5019<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u6070\u6070\u662f\u6ca1\u4eba\u52a8\u5b83\u7684\u65f6\u5019&#xff0c;\u5b83\u6700\u5bb9\u6613\u6084\u6084\u574f\u6389<\/span><span style=\"color:#111827\">\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u53ef\u89c1\u6027&#xff08;\u80fd\u4e0d\u80fd\u53d1\u73b0&#xff09;<\/span><\/p>\n<ul>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6bcf\u6b21\u8c03\u7528\u90fd\u8bb0\u5f55\u4e86<\/span> <span style=\"color:#111827\">requested<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">served<\/span><span style=\"color:#111827\"> \/ <\/span><span style=\"color:#111827\">drifted<\/span><span style=\"color:#111827\"> \u4e09\u5143\u7ec4<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">served<\/span><span style=\"color:#111827\"> \u53d6\u4e0d\u5230\u65f6\u5f52\u5165 <\/span><span style=\"color:#111827\">unknown<\/span><span style=\"color:#111827\">&#xff0c;\u800c\u4e0d\u662f\u5f53\u4f5c<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u6ca1\u6f02\u79fb<\/span><span style=\"color:#111827\">&#034;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">unknown<\/span> <span style=\"color:#111827\">\u5360\u6bd4\u6709\u5355\u72ec\u770b\u677f&#xff08;\u8fd9\u662f\u4f60\u7684<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u53ef\u89c1\u5ea6\u4f59\u91cf<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">&#xff09;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u8bb0\u5f55\u4e86\u4e0a\u6e38<\/span><span style=\"color:#111827\"> request-id<\/span><span style=\"color:#111827\">&#xff0c;\u80fd\u51ed\u5b83\u56de\u6eaf\u5355\u6b21\u8c03\u7528<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u5bf9\u6240\u6709\u4e2d\u65ad\u90fd\u6253\u4e86\u6765\u6e90\u6807\u8bb0&#xff08;<\/span><span style=\"color:#111827\">user \/ total-timeout \/ step-timeout<\/span><span style=\"color:#111827\">&#xff09;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">promptHash<\/span><span style=\"color:#111827\"> &#043; <\/span><span style=\"color:#111827\">outputHash<\/span><span style=\"color:#111827\"> \u5df2\u5165\u5e93&#xff0c;\u53ef\u7528\u4e8e\u65e0\u4e0a\u6e38\u914d\u5408\u65f6\u7684\u6f02\u79fb\u4e3e\u8bc1<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u751f\u547d\u5468\u671f&#xff08;\u4f1a\u4e0d\u4f1a\u88ab\u4e0b\u7ebf&#xff09;<\/span><\/p>\n<ul>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u751f\u4ea7\u73af\u5883\u5168\u90e8\u4f7f\u7528\u7cbe\u786e\u5feb\u7167&#xff0c;\u65e0\u6d6e\u52a8\u522b\u540d<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u4ee3\u7801\u5e93\u91cc\u6240\u6709\u6a21\u578b\u6807\u8bc6\u90fd\u6536\u53e3\u5728\u4e00\u4e2a\u6ce8\u518c\u8868\u6587\u4ef6<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6ce8\u518c\u8868\u91cc\u6bcf\u4e2a\u6a21\u578b\u90fd\u6709<\/span> <span style=\"color:#111827\">pinnedOn<\/span><span style=\"color:#111827\"> \u548c <\/span><span style=\"color:#111827\">sunsetWatch<\/span><span style=\"color:#111827\"> \u94fe\u63a5<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6709\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1\u53bb\u6293\u53d6\u4f9b\u5e94\u5546\u7684\u5f03\u7528\u9875&#xff0c;\u4e0e\u6ce8\u518c\u8868\u505a\u4ea4\u96c6\u544a\u8b66<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u5907\u7528\u4f9b\u5e94\u5546<\/span><span style=\"color:#111827\">\u73b0\u5728<\/span><span style=\"color:#111827\">\u5c31\u9009\u597d\u4e86&#xff0c;\u4e0d\u5728\u4e8b\u6545\u4e2d\u73b0\u9009<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u97e7\u6027&#xff08;\u574f\u4e86\u80fd\u4e0d\u80fd\u6491\u4f4f&#xff09;<\/span><\/p>\n<ul>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">maxRetries<\/span><span style=\"color:#111827\"> \u662f\u663e\u5f0f\u914d\u7f6e\u7684&#xff0c;\u4e0d\u662f\u9760\u9ed8\u8ba4\u503c<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6709\u526f\u4f5c\u7528\u7684\u94fe\u8def\u91cd\u8bd5\u6b21\u6570\u538b\u5230\u6700\u4f4e&#xff0c;\u4e14\u5e26\u5e42\u7b49\u952e<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6bcf\u4e2a\u6a21\u578b\u8c03\u7528\u94fe\u90fd\u6709<\/span> <span style=\"color:#111827\">totalMs<\/span><span style=\"color:#111827\"> \u4e0a\u9650<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6709\u79df\u6237\u7ea7\u6216\u94fe\u8def\u7ea7\u7684\u914d\u989d\u95f8\u95e8&#xff0c;\u62d2\u7edd\u53d1\u751f\u5728\u4e0a\u6e38\u4e4b\u524d<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] L1\/L2\/L3 <\/span><span style=\"color:#111827\">\u4e09\u7ea7\u964d\u7ea7\u9884\u6848\u5df2\u5199&#xff0c;\u4e14<\/span><span style=\"color:#111827\"> L2 <\/span><span style=\"color:#111827\">\u7684\u51c6\u5165\u6807\u51c6\u662f\u91d1\u6807\u96c6\u65ad\u8a00<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8d28\u91cf&#xff08;\u53d8\u5dee\u4e86\u77e5\u4e0d\u77e5\u9053&#xff09;<\/span><\/p>\n<ul>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u91d1\u6807\u96c6\u4f1a<\/span><span style=\"color:#111827\">\u5b9a\u671f<\/span><span style=\"color:#111827\">\u8dd1\u7ebf\u4e0a\u6a21\u578b&#xff08;\u4e0d\u53ea\u662f\u53d1\u7248\u524d&#xff09;<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u5207\u7247\u6309\u4e1a\u52a1\u540e\u679c\u5212\u5206&#xff0c;\u9ad8\u6743\u91cd\u5207\u7247\u6709\u72ec\u7acb\u9000\u6b65\u9608\u503c<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u6bd4\u8f83\u7528\u7684\u662f\u4efb\u52a1\u7ea7\u65ad\u8a00&#xff0c;\u4e0d\u662f\u6587\u672c\u76f8\u4f3c\u5ea6<\/span><\/li>\n<li style=\"text-align:justify\"><span style=\"color:#111827\">[ ] <\/span><span style=\"color:#111827\">\u7f13\u5b58\u547d\u4e2d\u7387\u53e3\u5f84\u5df2\u6838\u5bf9&#xff08;\u542b<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u62ff\u4e0d\u5230\u5b57\u6bb5<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4e0e<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u771f\u7684\u6ca1\u547d\u4e2d<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u533a\u5206&#xff09;<\/span><\/li>\n<\/ul>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:justify\"><span style=\"color:#111827\">\u5c3e\u58f0&#xff1a;\u4f60\u8fd0\u7ef4\u7684\u5176\u5b9e\u662f&#034;\u4f60\u4e0d\u62e5\u6709\u7684\u90a3\u4e00\u534a&#034;<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u524d\u4e94\u7bc7\u6211\u4eec\u4e00\u76f4\u5728\u89e3\u51b3<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u600e\u4e48\u628a<\/span><span style=\"color:#111827\"> AI <\/span><span style=\"color:#111827\">\u529f\u80fd\u505a\u51fa\u6765\u3001\u505a\u597d<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u3002\u8fd9\u4e00\u7bc7\u7684\u89c6\u89d2\u662f\u53cd\u8fc7\u6765\u7684&#xff1a;<\/span><span style=\"color:#111827\">\u505a\u51fa\u6765\u4e4b\u540e&#xff0c;\u4f60\u8981\u4e3a\u4e00\u4e9b\u4f60\u63a7\u5236\u4e0d\u4e86\u7684\u4e1c\u897f\u8d1f\u8d23\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u4e2a\u5904\u5883\u5728\u8f6f\u4ef6\u5de5\u7a0b\u91cc\u5e76\u4e0d\u65b0\u9c9c\u3002\u4f60\u4f9d\u8d56\u7684\u6bcf\u4e00\u4e2a<\/span><span style=\"color:#111827\"> SaaS <\/span><span style=\"color:#111827\">\u90fd\u4f1a\u53d8&#xff0c;\u6bcf\u4e00\u4e2a\u7b2c\u4e09\u65b9<\/span><span style=\"color:#111827\"> API <\/span><span style=\"color:#111827\">\u90fd\u53ef\u80fd\u9000\u5f79\u3002\u533a\u522b\u5728\u4e8e&#xff0c;\u4f20\u7edf\u4f9d\u8d56\u7684\u53d8\u5316\u901a\u5e38\u662f<\/span><span style=\"color:#111827\">\u63a5\u53e3\u5c42\u9762\u7684<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u5b57\u6bb5\u591a\u4e86\u3001\u65b9\u6cd5\u5e9f\u5f03\u4e86\u3001\u7aef\u70b9\u4e0b\u7ebf\u4e86&#xff0c;\u8fd9\u4e9b\u53d8\u5316\u4f1a\u4ee5\u660e\u786e\u7684\u9519\u8bef\u5f62\u5f0f\u649e\u5230\u4f60\u8138\u4e0a\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u800c\u6a21\u578b\u7684\u53d8\u5316\u662f<\/span><span style=\"color:#111827\">\u8bed\u4e49\u5c42\u9762\u7684<\/span><span style=\"color:#111827\">\u3002\u63a5\u53e3\u4e00\u6a21\u4e00\u6837&#xff0c;\u8fd4\u56de<\/span><span style=\"color:#111827\"> 200<\/span><span style=\"color:#111827\">&#xff0c;\u5b57\u6bb5\u9f50\u5168&#xff0c;\u53ea\u6709\u7b54\u6848\u4e0d\u4e00\u6837\u4e86\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u8fd9\u5c31\u51b3\u5b9a\u4e86\u4e00\u4ef6\u4e8b&#xff1a;\u5bf9<\/span><span style=\"color:#111827\"> AI <\/span><span style=\"color:#111827\">\u7cfb\u7edf\u6765\u8bf4&#xff0c;<\/span><span style=\"color:#111827\">&#034;\u80fd\u8dd1&#034;\u4e0d\u4ee3\u8868&#034;\u5728\u6b63\u5e38\u5de5\u4f5c&#034;<\/span><span style=\"color:#111827\">\u3002\u4f60\u5fc5\u987b\u81ea\u5df1\u9020\u51fa<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u5b83\u8fd8\u6b63\u5e38\u5417<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u5224\u636e&#xff0c;\u7136\u540e\u8ba9\u5b83\u5b9a\u671f\u56de\u7b54\u8fd9\u4e2a\u95ee\u9898\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u7b2c<\/span><span style=\"color:#111827\"> 90 <\/span><span style=\"color:#111827\">\u5929\u4e0d\u662f\u7ec8\u70b9&#xff0c;\u5b83\u53ea\u662f\u7b2c\u4e00\u4e2a<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u4f60\u5df2\u7ecf\u5fd8\u4e86\u5b83\u6709\u591a\u8106\u5f31<\/span><span style=\"color:#111827\">&#034;<\/span><span style=\"color:#111827\">\u7684\u65f6\u95f4\u70b9\u3002\u771f\u6b63\u7684\u597d\u6d88\u606f\u662f&#xff1a;\u4e0a\u9762\u90a3\u4e9b\u4f20\u611f\u5668\u4e00\u65e6\u88c5\u4e0a&#xff0c;\u4f60\u80fd\u770b\u5230\u7684\u4e1c\u897f\u4f1a\u6bd4\u4f20\u7edf\u540e\u7aef\u591a\u5f97\u591a<\/span><span style=\"color:#111827\">\u2014\u2014<\/span><span style=\"color:#111827\">\u56e0\u4e3a\u4f60\u5728\u7528\u8f93\u51fa\u6307\u7eb9\u3001\u5207\u7247\u901a\u8fc7\u7387\u3001\u7f13\u5b58\u547d\u4e2d\u7387\u8fd9\u4e9b\u6bd4<\/span><span style=\"color:#111827\"> HTTP <\/span><span style=\"color:#111827\">\u72b6\u6001\u7801\u4e30\u5bcc\u5f97\u591a\u7684\u4fe1\u53f7\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#111827\">\u574f\u6d88\u606f\u662f&#xff0c;\u6ca1\u6709\u4eba\u4f1a\u66ff\u4f60\u88c5\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6a21\u578b\u6f02\u79fb\u3001\u91cd\u8bd5\u4ee3\u4ef7\u3001\u4e2d\u65ad\u8bc6\u522b\u4e0e\u964d\u7ea7\u9884\u6848\u2014\u2014\u90a3\u4e9b\u8fd4\u56de 200 \u5374\u6084\u6084\u53d8\u574f\u7684\u6545\u969c&#xff0c;\u9644 ai7.0.122 \u5168\u5957\u5b9e\u6d4b\u76ee\u5f55\u4e00\u3001\u5148\u8bf4\u6e05\u695a&#xff1a;AI \u7cfb\u7edf\u7684\\&#8221;\u8150\u574f\\&#8221;\u8ddf\u4f60\u60f3\u7684\u4e0d\u4e00\u6837\u4e8c\u3001\u6a21\u578b\u4f1a\u81ea\u5df1\u53d8&#xff1a;\u56db\u79cd\u53d8\u5316\u91cc&#xff0c;\u53ea\u6709\u4e00\u79cd\u4f1a\u62a5\u8b66\u4e09\u3001\u5b9e\u8dd1&#xff1a;\u4f60\u5230\u5e95\u80fd\u4e0d\u80fd\u77e5\u9053\\&#8221;\u8fd9\u6b21\u662f\u8c01\u670d\u52a1\u7684\u4f60\\&#8221;\u56db\u3001\u628a\u7248\u672c\u9489\u6b7b&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u522b\u540d\u66ff\u4f60\u505a\u751f\u4ea7\u51b3\u7b56\u4e94\u3001\u91cd\u8bd5\u4e0d\u662f\u514d\u8d39\u7684&#xff1a;\u628a\u5b83\u7684\u65f6\u95f4\u548c\u94b1\u7b97\u6e05\u695a\u516d\u3001\u8d85\u65f6\u4e0e\u4e2d\u65ad&#xff1a;\u4e09\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u539f\u56e0<\/p>\n","protected":false},"author":2,"featured_media":111850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,50,3291,100,78],"topic":[],"class_list":["post-111855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-50","tag-3291","tag-100","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111855.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6a21\u578b\u6f02\u79fb\u3001\u91cd\u8bd5\u4ee3\u4ef7\u3001\u4e2d\u65ad\u8bc6\u522b\u4e0e\u964d\u7ea7\u9884\u6848\u2014\u2014\u90a3\u4e9b\u8fd4\u56de 200 \u5374\u6084\u6084\u53d8\u574f\u7684\u6545\u969c&#xff0c;\u9644 ai7.0.122 \u5168\u5957\u5b9e\u6d4b\u76ee\u5f55\u4e00\u3001\u5148\u8bf4\u6e05\u695a&#xff1a;AI \u7cfb\u7edf\u7684&quot;\u8150\u574f&quot;\u8ddf\u4f60\u60f3\u7684\u4e0d\u4e00\u6837\u4e8c\u3001\u6a21\u578b\u4f1a\u81ea\u5df1\u53d8&#xff1a;\u56db\u79cd\u53d8\u5316\u91cc&#xff0c;\u53ea\u6709\u4e00\u79cd\u4f1a\u62a5\u8b66\u4e09\u3001\u5b9e\u8dd1&#xff1a;\u4f60\u5230\u5e95\u80fd\u4e0d\u80fd\u77e5\u9053&quot;\u8fd9\u6b21\u662f\u8c01\u670d\u52a1\u7684\u4f60&quot;\u56db\u3001\u628a\u7248\u672c\u9489\u6b7b&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u522b\u540d\u66ff\u4f60\u505a\u751f\u4ea7\u51b3\u7b56\u4e94\u3001\u91cd\u8bd5\u4e0d\u662f\u514d\u8d39\u7684&#xff1a;\u628a\u5b83\u7684\u65f6\u95f4\u548c\u94b1\u7b97\u6e05\u695a\u516d\u3001\u8d85\u65f6\u4e0e\u4e2d\u65ad&#xff1a;\u4e09\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u539f\u56e0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111855.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-01T16:09:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160911-6abe85a7f2eac.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111855.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111855.html\",\"name\":\"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-01T16:09:14+00:00\",\"dateModified\":\"2026-10-01T16:09:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111855.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111855.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111855.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111855.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6a21\u578b\u6f02\u79fb\u3001\u91cd\u8bd5\u4ee3\u4ef7\u3001\u4e2d\u65ad\u8bc6\u522b\u4e0e\u964d\u7ea7\u9884\u6848\u2014\u2014\u90a3\u4e9b\u8fd4\u56de 200 \u5374\u6084\u6084\u53d8\u574f\u7684\u6545\u969c&#xff0c;\u9644 ai7.0.122 \u5168\u5957\u5b9e\u6d4b\u76ee\u5f55\u4e00\u3001\u5148\u8bf4\u6e05\u695a&#xff1a;AI \u7cfb\u7edf\u7684\"\u8150\u574f\"\u8ddf\u4f60\u60f3\u7684\u4e0d\u4e00\u6837\u4e8c\u3001\u6a21\u578b\u4f1a\u81ea\u5df1\u53d8&#xff1a;\u56db\u79cd\u53d8\u5316\u91cc&#xff0c;\u53ea\u6709\u4e00\u79cd\u4f1a\u62a5\u8b66\u4e09\u3001\u5b9e\u8dd1&#xff1a;\u4f60\u5230\u5e95\u80fd\u4e0d\u80fd\u77e5\u9053\"\u8fd9\u6b21\u662f\u8c01\u670d\u52a1\u7684\u4f60\"\u56db\u3001\u628a\u7248\u672c\u9489\u6b7b&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u522b\u540d\u66ff\u4f60\u505a\u751f\u4ea7\u51b3\u7b56\u4e94\u3001\u91cd\u8bd5\u4e0d\u662f\u514d\u8d39\u7684&#xff1a;\u628a\u5b83\u7684\u65f6\u95f4\u548c\u94b1\u7b97\u6e05\u695a\u516d\u3001\u8d85\u65f6\u4e0e\u4e2d\u65ad&#xff1a;\u4e09\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u539f\u56e0","og_url":"https:\/\/www.wsisp.com\/helps\/111855.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-01T16:09:14+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001160911-6abe85a7f2eac.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111855.html","url":"https:\/\/www.wsisp.com\/helps\/111855.html","name":"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-01T16:09:14+00:00","dateModified":"2026-10-01T16:09:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111855.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111855.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111855.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5168\u6808\u5de5\u7a0b\u5e08\u7684\u7b2c 90 \u5929\uff1aAI \u4e0a\u7ebf\u4e09\u4e2a\u6708\u540e\uff0c\u54ea\u4e9b\u4e1c\u897f\u4f1a\u9759\u9ed8\u574f\u6389"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111855"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111855\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/111850"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111855"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}