{"id":90225,"date":"2026-08-04T20:57:15","date_gmt":"2026-08-04T12:57:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90225.html"},"modified":"2026-08-04T20:57:15","modified_gmt":"2026-08-04T12:57:15","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e7%bc%93%e5%ad%98%e6%8a%8a%e5%a4%a7%e6%a8%a1%e5%9e%8b%e8%96%85%e5%87%ba%e7%99%bd%e8%8f%9c%e4%bb%b7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90225.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7"},"content":{"rendered":"<p>\u5148\u8bf4\u4e00\u4e2a\u8ba9\u4eba\u6709\u70b9\u5750\u4e0d\u4f4f\u7684\u8d26\u5355\u3002<\/p>\n<p>\u4e00\u4e2a\u7528 Claude Code \u7684\u5f00\u53d1\u56e2\u961f&#xff0c;\u67d0\u4e2a\u6708\u4e00\u5bf9\u8d26&#xff1a;$5,000\u3002\u4e0d\u662f\u56e0\u4e3a\u4ed6\u4eec\u7528\u5f97\u591a&#xff0c;\u662f\u56e0\u4e3a\u6bcf\u6b21\u8bf7\u6c42\u90fd\u5728\u91cd\u590d\u4e00\u4ef6\u5f88\u8822\u7684\u4e8b\u60c5&#8212;&#8212;\u628a\u540c\u4e00\u4efd 5,000 token \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u4e00\u904d\u904d\u585e\u7ed9\u6a21\u578b\u91cd\u65b0\u7b97\u3002\u7528\u6237\u95ee\u4e86\u4e2a\u65b0\u95ee\u9898&#xff0c;\u6a21\u578b\u5374\u8981\u628a\u5b83\u65e9\u5c31&#034;\u89c1\u8fc7&#034;\u7684\u90a3\u5806\u5185\u5bb9\u91cd\u65b0\u8fc7\u4e00\u904d&#xff0c;\u8fc7\u5b8c\u624d\u7ed9\u7b54\u6848\u3002\u7136\u540e\u4e0b\u4e00\u6b21&#xff0c;\u7ee7\u7eed\u3002<\/p>\n<p>\u63a5\u5165 Prompt Cache \u4e4b\u540e&#xff0c;\u540c\u6837\u7684\u5de5\u4f5c\u91cf&#xff0c;\u8d26\u5355\u53d8\u6210\u4e86 $800\u3002<\/p>\n<p>\u8db3\u8db3\u964d\u4e86 84%\u3002\u4ee3\u7801\u6ca1\u6539&#xff0c;\u9700\u6c42\u6ca1\u53d8&#xff0c;\u53ea\u662f\u4e0d\u518d\u505a\u90a3\u4e9b\u6ca1\u5fc5\u8981\u7684\u91cd\u590d\u8ba1\u7b97\u800c\u5df2\u3002<\/p>\n<h3 id=\"heading-1\">\u5148\u770b\u4ef7\u683c&#xff0c;\u518d\u804a\u6280\u672f<\/h3>\n<p>\u65e2\u7136\u8bb2\u7684\u662f\u6210\u672c\u95ee\u9898&#xff0c;\u5728\u5c55\u5f00\u6280\u672f\u7ec6\u8282\u4e4b\u524d&#xff0c;\u5148\u770b\u770b\u4e3b\u6d41\u5927\u6a21\u578b\u5382\u5546\u7684\u5b9a\u4ef7\u7ed3\u6784\u662f\u4ec0\u4e48\u6837\u7684\u3002\u00a0<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"234\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a71ba9f.png\" width=\"969\" \/><\/p>\n<p>\u00a0(DeepSeek \u622a\u81f3 2026\/05\/13 \u5b9a\u4ef7\u622a\u56fe \u4e24\u5217\u5206\u522b\u4e3a V4-flash V4-Pro\u4ef7\u683c)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"585\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a736f16.png\" width=\"1280\" \/><\/p>\n<p>\u00a0(OpenAI \u622a\u81f3 2026\/05\/13 \u5b9a\u4ef7\u622a\u56fe)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"874\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a770697.png\" width=\"1280\" \/><\/p>\n<p>\u00a0(Claude \u622a\u81f3 2026\/05\/13 \u5b9a\u4ef7\u622a\u56fe)<\/p>\n<p>\u9664\u4e86\u5e38\u89c4\u7684\u8f93\u5165\/\u8f93\u51fa\u5b9a\u4ef7\u4e4b\u5916&#xff0c;\u5404\u5bb6\u90fd\u63d0\u4f9b\u4e86\u7f13\u5b58\u4ef7\u683c\u3002\u6bd4\u4f8b\u76f8\u5f53\u5938\u5f20&#xff1a;DeepSeek \u7684\u666e\u901a\u8f93\u5165\u4ef7\u683c\u4e0e\u7f13\u5b58\u547d\u4e2d\u4ef7\u683c\u4e4b\u6bd4\u80fd\u5230 50:1&#xff0c;OpenAI \u548c Anthropic \u662f 10:1\u3002\u6362\u53e5\u8bdd\u8bf4&#xff0c;\u540c\u4e00\u5957\u5e94\u7528&#xff0c;\u5168\u8d70\u7f13\u5b58\u7684\u6210\u672c&#xff0c;\u662f\u5b8c\u5168\u4e0d\u8d70\u7f13\u5b58\u7684\u5341\u5206\u4e4b\u4e00\u3002<\/p>\n<p>\u4f46\u7f13\u5b58\u80fd\u4e0d\u80fd\u547d\u4e2d&#xff0c;\u5382\u5546\u4e0d\u4f1a\u66ff\u4f60\u4fdd\u8bc1&#xff0c;\u5f97\u5f00\u53d1\u8005\u81ea\u5df1\u64cd\u5fc3&#8212;&#8212;\u5c31\u50cf\u6570\u636e\u5e93\u7d22\u5f15&#xff0c;\u5efa\u4e86\u5f52\u5efa\u4e86&#xff0c;\u5199\u6cd5\u4e0d\u5bf9&#xff0c;\u67e5\u8be2\u7167\u6837\u8d70\u5168\u8868\u626b\u63cf\u3002\u771f\u6b63\u61c2\u884c\u7684\u5f00\u53d1\u8005\u4f1a\u9488\u5bf9\u7f13\u5b58\u539f\u7406\u5bf9\u667a\u80fd\u4f53\u5e73\u53f0\u505a\u5b9a\u5411\u6539\u9020&#xff0c;\u8fd9\u662f\u5728\u6210\u672c\u4e0a\u62c9\u5f00\u7ade\u54c1\u5dee\u8ddd\u7684\u6838\u5fc3\u624b\u6bb5\u4e4b\u4e00\u3002<\/p>\n<h3 id=\"heading-2\">\u4e24\u79cd\u7f13\u5b58<\/h3>\n<p>\u5728 AI \u667a\u80fd\u4f53\u573a\u666f\u91cc&#xff0c;&#034;\u7f13\u5b58&#034;\u8fd9\u4e2a\u8bcd\u5176\u5b9e\u5728\u63cf\u8ff0\u4e24\u4ef6\u5b8c\u5168\u4e0d\u540c\u7684\u4e8b&#xff0c;\u5f88\u5bb9\u6613\u6df7\u5728\u4e00\u8d77\u641e\u9519\u3002\u00a0<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"714\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a7cf389.png\" width=\"1280\" \/><\/p>\n<p>\u667a\u80fd\u4f53\u7f13\u5b58&#xff0c;\u662f\u5e94\u7528\u5c42\u7684\u7f13\u5b58\u7b56\u7565&#xff0c;\u5206\u4e24\u7c7b&#xff1a;<\/p>\n<p>\u7cbe\u786e\u5339\u914d\u7f13\u5b58&#xff0c;\u505a\u6cd5\u662f\u628a\u5b8c\u6574\u7684\u63d0\u793a\u8bcd\u5b57\u7b26\u4e32\u54c8\u5e0c\u4e4b\u540e\u5b58\u8fdb Redis \u6216 SQLite&#xff0c;\u4e0b\u6b21\u8bf7\u6c42\u53ea\u8981\u5b57\u8282\u7ea7\u5b8c\u5168\u4e00\u81f4\u5c31\u76f4\u63a5\u8fd4\u56de\u5b58\u597d\u7684\u56de\u590d&#xff0c;\u4e0d\u8c03\u7528\u4efb\u4f55\u6a21\u578b\u3002\u95ee\u9898\u662f\u5728\u52a8\u6001 Agent \u73af\u5883\u91cc&#xff0c;\u63d0\u793a\u8bcd\u5f80\u5f80\u5939\u7740\u5b9e\u65f6\u65f6\u95f4\u6233\u3001\u4f1a\u8bdd ID\u3001\u52a8\u6001\u8ffd\u52a0\u7684\u5386\u53f2\u5bf9\u8bdd&#xff0c;\u771f\u6b63\u5b8c\u5168\u4e00\u81f4\u7684\u6982\u7387\u51e0\u4e4e\u4e3a\u96f6&#xff0c;\u547d\u4e2d\u7387\u57fa\u672c\u8d8b\u8fd1\u4e8e\u96f6\u3002<\/p>\n<p>\u8bed\u4e49\u7f13\u5b58&#xff0c;\u628a\u7528\u6237\u8f93\u5165\u8f6c\u6210\u5411\u91cf&#xff0c;\u8ba1\u7b97\u548c\u5386\u53f2\u67e5\u8be2\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6&#xff0c;\u8d85\u8fc7\u9608\u503c\u5c31\u8fd4\u56de\u5386\u53f2\u56de\u590d\u3002\u5bf9&#034;\u6362\u4e2a\u8bf4\u6cd5\u95ee\u540c\u4e00\u4e2a\u95ee\u9898&#034;\u7684\u573a\u666f\u633a\u597d\u7528&#xff0c;\u8f93\u5165\u8f93\u51fa\u4e24\u7aef\u7684\u6210\u672c\u90fd\u80fd\u7701\u3002\u4f46\u6709\u4e2a\u81f4\u547d\u4f24&#xff1a;\u9047\u5230\u9700\u8981\u591a\u6b65\u63a8\u7406\u6216\u751f\u6210\u4ee3\u7801\u7684 Agent&#xff0c;\u5b83\u76f4\u63a5\u622a\u65ad\u4e86\u6a21\u578b\u7ed3\u5408\u6700\u65b0\u4e0a\u4e0b\u6587\u52a8\u6001\u601d\u8003\u7684\u8def\u5f84&#xff0c;\u5f88\u5bb9\u6613\u5bfc\u81f4\u903b\u8f91\u65ad\u5c42\u6216\u8005\u4e0a\u4e0b\u6587\u5e7b\u89c9\u3002<\/p>\n<p>\u63d0\u793a\u8bcd\u7f13\u5b58&#xff0c;\u624d\u662f\u672c\u6587\u771f\u6b63\u7684\u4e3b\u89d2&#xff0c;\u7ef4\u5ea6\u5b8c\u5168\u4e0d\u540c\u3002\u5b83\u4e0d\u5728\u5e94\u7528\u5c42&#xff0c;\u800c\u662f\u6df1\u5ea6\u5d4c\u5165\u6a21\u578b\u63d0\u4f9b\u5546\u7684\u57fa\u7840\u8bbe\u65bd\u5c42\u3002\u5b83\u7f13\u5b58\u7684\u4e0d\u662f\u6700\u7ec8\u7684\u8f93\u51fa\u6587\u672c&#xff0c;\u800c\u662f\u6a21\u578b\u5185\u90e8\u5904\u7406\u7a33\u5b9a\u63d0\u793a\u8bcd\u524d\u7f00\u65f6\u4ea7\u751f\u7684\u4e2d\u95f4\u8ba1\u7b97\u72b6\u6001&#8212;&#8212;KV \u77e9\u9635\u3002\u547d\u4e2d\u7f13\u5b58\u65f6&#xff0c;\u6a21\u578b\u4f9d\u7136\u4f1a\u9488\u5bf9\u65b0\u7684\u7528\u6237\u6307\u4ee4\u52a8\u6001\u63a8\u7406\u3001\u751f\u6210\u5168\u65b0\u7684\u56de\u590d&#xff0c;\u53ea\u662f\u5927\u5e45\u8df3\u8fc7\u4e86\u91cd\u590d\u5904\u7406\u90a3\u4e00\u5927\u622a\u524d\u7f6e\u63d0\u793a\u8bcd\u7684\u7269\u7406\u8ba1\u7b97\u5f00\u9500\u3002<\/p>\n<p>\u5728\u6210\u719f\u7684\u4f01\u4e1a\u7ea7\u67b6\u6784\u91cc&#xff0c;\u6700\u597d\u7684\u505a\u6cd5\u662f\u4e24\u5c42\u53e0\u5728\u4e00\u8d77\u7528&#xff1a;\u5e94\u7528\u5c42\u7528\u8bed\u4e49\u7f13\u5b58\u62e6\u622a\u90a3\u4e9b\u9ad8\u9891\u3001\u540c\u8d28\u7684\u77ed\u67e5\u8be2&#xff0c;\u6a21\u578b\u5c42\u7528 Prompt Cache \u7ed9\u590d\u6742\u7684 Agent \u957f\u7ebf\u51b3\u7b56\u63d0\u4f9b\u4f4e\u6210\u672c\u7684\u7b97\u529b\u5e95\u5ea7\u3002<\/p>\n<h3 id=\"heading-3\">Prompt Cache \u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n<h4 id=\"heading-4\">\u5927\u6a21\u578b\u63a8\u7406\u6d41\u7a0b<\/h4>\n<p>\u60f3\u641e\u61c2 Prompt Cache \u7684\u4ef7\u503c&#xff0c;\u5f97\u5148\u77e5\u9053\u5927\u6a21\u578b\u63a8\u7406\u5206\u4e24\u4e2a\u9636\u6bb5&#xff1a;<\/p>\n<p>Prefill&#xff1a;\u6a21\u578b\u6536\u5230\u4e00\u5927\u5768 token \u5e8f\u5217&#xff0c;\u91cc\u9762\u5305\u542b\u7cfb\u7edf\u6307\u4ee4\u3001\u5386\u53f2\u5bf9\u8bdd\u3001\u7528\u6237\u67e5\u8be2\u3002\u5b83\u8981\u628a\u8fd9\u4e9b token \u5e76\u884c\u585e\u8fdb\u6df1\u5c42\u7684 Transformer \u7f51\u7edc&#xff0c;\u901a\u8fc7\u591a\u5934\u6ce8\u610f\u529b\u673a\u5236\u4e3a\u6bcf\u4e2a token \u7b97\u51fa\u952e\u5f20\u91cf&#xff08;Key Tensors&#xff09;\u548c\u503c\u5f20\u91cf&#xff08;Value Tensors&#xff09;&#xff0c;\u5408\u79f0 KV Cache\u3002\u8fd9\u4e2a\u9636\u6bb5\u662f\u5178\u578b\u7684\u8ba1\u7b97\u5bc6\u96c6\u578b\u4efb\u52a1&#xff0c;\u590d\u6742\u5ea6\u968f\u8f93\u5165\u957f\u5ea6\u5448\u4e8c\u6b21\u65b9&#xff08;O(N\u00b2)&#xff09;\u7206\u70b8\u5f0f\u589e\u957f&#8212;&#8212;\u8f93\u5165\u8d8a\u957f&#xff0c;\u8ba1\u7b97\u91cf\u8d8a\u53ef\u6015&#xff0c;\u8fd9\u4e5f\u662f\u957f\u4e0a\u4e0b\u6587\u4efb\u52a1\u91cc\u9996\u5b57\u5ef6\u8fdf\u5bb9\u6613\u98d9\u5347\u7684\u6839\u672c\u539f\u56e0\u3002<\/p>\n<p>Decode&#xff1a;\u9884\u586b\u5145\u5b8c\u6210\u540e&#xff0c;\u6a21\u578b\u62ff\u7740\u521a\u624d\u7b97\u597d\u7684 KV Cache \u5f53\u8bb0\u5fc6\u5e95\u5ea7&#xff0c;\u4e00\u4e2a token \u4e00\u4e2a token \u5730\u81ea\u56de\u5f52\u751f\u6210\u8f93\u51fa\u3002\u8fd9\u4e2a\u9636\u6bb5\u662f\u5185\u5b58\u5e26\u5bbd\u7684\u6d3b\u513f&#xff08;\u9010\u6b65\u8bbf\u5b58 GEMV&#xff09;&#xff0c;GPU \u5229\u7528\u7387\u53cd\u800c\u504f\u4f4e&#8212;&#8212;\u5f88\u591a\u4eba\u4ee5\u4e3a\u74f6\u9888\u5728 Prefill&#xff0c;\u5176\u5b9e\u771f\u6b63\u7684\u5ef6\u8fdf\u74f6\u9888\u5f80\u5f80\u85cf\u5728\u8fd9\u91cc\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"714\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125712-6a71e1a898805.png\" width=\"1280\" \/><\/p>\n<h4 id=\"heading-5\">\u7f13\u5b58\u8de8\u8bf7\u6c42\u590d\u7528<\/h4>\n<p>\u63d0\u793a\u8bcd\u7f13\u5b58\u7684\u6838\u5fc3\u673a\u5236&#xff0c;\u8bf4\u767d\u4e86\u5c31\u4e00\u4ef6\u4e8b&#xff1a;\u628a Prefill \u9636\u6bb5\u4ea7\u751f\u7684 KV Cache \u5f20\u91cf\u4fdd\u5b58\u4e0b\u6765&#xff0c;\u4e0b\u6b21\u8bf7\u6c42\u76f4\u63a5\u62ff\u6765\u590d\u7528\u3002<\/p>\n<p>\u4f60\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u4eca\u5929\u548c\u6628\u5929\u4e00\u6837&#xff0c;\u660e\u5929\u8fd8\u4e00\u6837\u3002\u4f46\u6bcf\u6b21\u8bf7\u6c42\u4e00\u6765&#xff0c;\u6a21\u578b\u90fd\u8981\u4ece\u5934\u7b97\u4e00\u904d&#xff0c;\u7b97\u51fa\u5b8c\u5168\u76f8\u540c\u7684 KV \u77e9\u9635\u3002\u8fd9\u4e0d\u662f\u6162\u7684\u95ee\u9898&#xff0c;\u662f\u7eaf\u7cb9\u7684\u6d6a\u8d39\u3002\u63d0\u793a\u8bcd\u7f13\u5b58\u89e3\u51b3\u7684\u4e0d\u662f&#034;prefill \u592a\u6162&#034;&#xff0c;\u800c\u662f&#034;\u4e3a\u4ec0\u4e48\u8981\u91cd\u590d\u7b97\u540c\u4e00\u4ef6\u4e8b&#034;\u3002<\/p>\n<p>\u5176\u5b9e Decode \u9636\u6bb5\u65e9\u5c31\u6709 KV Cache \u4e86&#8212;&#8212;\u6a21\u578b\u6bcf\u751f\u6210\u4e00\u4e2a\u65b0 token&#xff0c;\u90fd\u9700\u8981\u8bbf\u95ee\u524d\u9762\u6240\u6709 token \u7684 K\/V \u77e9\u9635&#xff0c;\u5982\u679c\u6bcf\u6b65\u90fd\u91cd\u7b97&#xff0c;\u6548\u7387\u6781\u5dee&#xff0c;\u6240\u4ee5\u76f4\u63a5\u628a\u8fd9\u4e9b\u77e9\u9635\u7f13\u5b58\u5728\u663e\u5b58\u91cc&#xff0c;Decode \u65f6\u76f4\u63a5\u8bfb\u53d6\u3002\u4f46\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff0c;\u8fd9\u4e2a\u7f13\u5b58\u6491\u4e0d\u8fc7\u5355\u6b21\u8bf7\u6c42\u3002\u8bf7\u6c42\u7ed3\u675f\u5c31\u6e05\u7a7a&#xff0c;\u4e0b\u6b21\u54ea\u6015\u662f\u5b8c\u5168\u76f8\u540c\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u4e5f\u5f97\u4ece\u5934\u7b97\u3002<\/p>\n<p>Prompt Cache \u505a\u7684\u4e8b&#xff0c;\u662f\u628a\u8fd9\u4efd KV \u77e9\u9635\u8de8\u8bf7\u6c42\u4fdd\u5b58\u4e0b\u6765\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"714\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125713-6a71e1a95f4f3.png\" width=\"1280\" \/><\/p>\n<p>\u5404\u5bb6\u5382\u5546\u7684\u5b9e\u73b0\u8def\u5f84\u5dee\u522b\u4e0d\u5c0f&#xff0c;\u6ca1\u6709\u7edf\u4e00\u6807\u51c6&#xff0c;\u8fd9\u91cc\u4e0d\u6df1\u6316\u7ec6\u8282\u3002\u4f46\u6709\u4e00\u70b9\u633a\u6709\u610f\u601d&#xff1a;Anthropic\u3001OpenAI \u8fd9\u7c7b\u5382\u5546\u76ee\u524d\u4ecd\u7136\u7528\u663e\u5b58\u5b58\u50a8 KV \u77e9\u9635&#xff1b;\u800c DeepSeek \u901a\u8fc7\u5e95\u5c42\u81ea\u7814&#xff0c;\u5728\u4fdd\u8bc1\u4f4e\u5ef6\u8fdf\u7684\u524d\u63d0\u4e0b&#xff0c;\u628a KV \u77e9\u9635\u4e0b\u653e\u5230\u4e86 NVMe \u786c\u76d8\u9635\u5217&#xff0c;\u5f7b\u5e95\u7ed5\u5f00\u4e86\u663e\u5b58\u7684\u5bb9\u91cf\u74f6\u9888&#8212;&#8212;\u76f8\u6bd4\u6602\u8d35\u7684\u663e\u5b58&#xff0c;\u786c\u76d8\u5c42\u7ea7\u7684\u5b58\u50a8\u6210\u672c\u51e0\u4e4e\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\u3002\u8fd9\u4e5f\u80fd\u89e3\u91ca\u6587\u7ae0\u5f00\u5934\u5b9a\u4ef7\u56fe\u91cc\u90a3\u4e2a\u95ee\u9898&#xff0c;\u4e3a\u4f55 DeepSeek \u76f8\u6bd4\u56fd\u5916\u51e0\u4e2a\u5382\u5546\u5728\u4ef7\u683c\u65b9\u9762\u4f1a\u5982\u6b64\u6177\u6168\u3002&#xff08;\u8fd8\u6709 MoE \u7b49\u9ed1\u79d1\u6280\u56e0\u7d20&#xff0c;\u4e0d\u5f97\u4e0d\u8bf4&#xff0c;\u4f5c\u4e3a\u5e7b\u65b9\u91cf\u5316\u5b50\u516c\u53f8&#xff0c;DeepSeek \u56e2\u961f\u771f\u7684\u975e\u5e38\u64c5\u957f\u538b\u69a8\u786c\u4ef6\u6210\u672c\u3002&#xff09;<\/p>\n<p>\u4f5c\u4e3a\u7528\u6237&#xff0c;\u6211\u4eec\u6700\u7ec8\u770b\u5230\u7684\u7f13\u5b58\u6210\u672c\u5dee\u8ddd\u5927\u6982\u662f&#xff1a;\u5341\u5206\u4e4b\u4e00\u3002\u8fd9\u4e0d\u662f\u8c03\u53c2\u610f\u4e49\u4e0a\u7684&#034;\u4f18\u5316&#034;&#xff0c;\u8fd9\u662f\u91cf\u7ea7\u4e0a\u7684\u5dee\u522b\u3002<\/p>\n<h3 id=\"heading-6\">\u547d\u4e2d\u7f13\u5b58\u7684\u5173\u952e&#xff1a;\u4e25\u683c\u524d\u7f00\u5339\u914d<\/h3>\n<p>\u641e\u6e05\u695a\u539f\u7406&#xff0c;\u63a5\u4e0b\u6765\u6700\u5173\u952e\u7684\u95ee\u9898\u662f&#xff1a;\u600e\u4e48\u8ba9\u7f13\u5b58\u771f\u6b63\u547d\u4e2d&#xff1f;<\/p>\n<p>\u5bf9\u4e8e\u7edd\u5927\u591a\u6570\u5e73\u53f0\u6765\u8bf4&#xff0c;\u7f13\u5b58\u9075\u5faa\u4e25\u683c\u7684\u524d\u7f00\u5339\u914d\u3002\u00a0\u5728\u63a8\u7406\u8fc7\u7a0b\u4e2d&#xff0c;\u6bcf\u4e2a token \u7684 K\/V \u503c\u7531\u5b83\u4e4b\u524d\u6240\u6709 token \u5171\u540c\u51b3\u5b9a&#xff0c;\u8fd9\u5c31\u610f\u5473\u7740&#xff1a;<\/p>\n<p>\u5982\u679c\u7cfb\u7edf\u63d0\u793a\u8bcd\u7684\u7b2c 500 \u4e2a\u5b57\u7b26\u88ab\u52a8\u4e86&#xff0c;\u7b2c 501 \u4e2a\u5b57\u7b26\u8d77\u7684\u6240\u6709 KV \u503c&#xff0c;\u5168\u90e8\u4f5c\u5e9f\u3002<\/p>\n<p>\u54ea\u6015\u5c31\u662f\u591a\u4e86\u4e00\u4e2a\u7a7a\u683c\u3002\u54ea\u6015\u53ea\u662f\u628a\u9017\u53f7\u6539\u6210\u4e86\u53e5\u53f7\u3002<\/p>\n<p>\u4e3e\u4e2a\u5177\u4f53\u7684\u53cd\u4f8b&#xff1a;\u540c\u6837\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;A \u7248\u672c\u628a\u5f53\u524d\u65f6\u95f4\u7684\u65f6\u5206\u79d2\u65f6\u95f4\u6233\u653e\u5728\u7b2c\u4e00\u884c&#xff0c;B \u7248\u672c\u628a\u5b83\u653e\u5728\u6700\u540e\u4e00\u884c\u3002\u8dd1\u540c\u6837\u7684\u4e00\u4e07\u6b21\u8bf7\u6c42&#xff0c;\u4e24\u4e2a\u7248\u672c\u7684\u6210\u672c\u53ef\u4ee5\u76f8\u5dee\u5341\u500d&#8212;&#8212;A \u7248\u672c\u7b2c\u4e00\u884c\u6bcf\u6b21\u90fd\u5728\u53d8&#xff0c;\u540e\u9762\u6240\u6709\u5185\u5bb9\u7684\u7f13\u5b58\u6bcf\u6b21\u5168\u90e8\u4f5c\u5e9f&#xff0c;\u547d\u4e2d\u7387\u5f52\u96f6&#xff1b;B \u7248\u672c\u524d\u9762\u7684\u5185\u5bb9\u7a33\u5b9a\u4e0d\u52a8&#xff0c;\u6bcf\u6b21\u90fd\u80fd\u547d\u4e2d\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"572\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125714-6a71e1aa1eb71.png\" width=\"1024\" \/><\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"572\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125714-6a71e1aa72713.png\" width=\"1024\" \/><\/p>\n<p>\u6240\u4ee5\u539f\u5219\u5c31\u4e00\u6761&#xff1a;\u53d8\u5316\u7684\u5185\u5bb9&#xff0c;\u6c38\u8fdc\u653e\u5728\u6700\u540e\u3002<\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  \u7cfb\u7edf\u63d0\u793a\u8bcd&#xff08;\u89d2\u8272\u3001\u89c4\u5219\u3001\u80cc\u666f&#xff09;      \u2502  \u2190 \u7a33\u5b9a&#xff0c;\u53c2\u4e0e\u7f13\u5b58<br \/>\n\u2502  Few-shot \u793a\u4f8b                   \u2502  \u2190 \u7a33\u5b9a&#xff0c;\u53c2\u4e0e\u7f13\u5b58<br \/>\n\u2502  Tool schema \u5b9a\u4e49                \u2502  \u2190 \u7a33\u5b9a&#xff0c;\u53c2\u4e0e\u7f13\u5b58<br \/>\n\u2502  \u56fa\u5b9a\u53c2\u8003\u6587\u6863                     \u2502  \u2190 \u7a33\u5b9a&#xff0c;\u53c2\u4e0e\u7f13\u5b58<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524  \u2190 \u7f13\u5b58\u65ad\u70b9<br \/>\n\u2502  \u7528\u6237\u5f53\u524d\u8f93\u5165                     \u2502  \u2190 \u6bcf\u6b21\u4e0d\u540c&#xff0c;\u4e0d\u7f13\u5b58<br \/>\n\u2502  Tool \u8c03\u7528\u7ed3\u679c                   \u2502  \u2190 \u6bcf\u6b21\u4e0d\u540c&#xff0c;\u4e0d\u7f13\u5b58<br \/>\n\u2502  \u5b9e\u65f6\u72b6\u6001                        \u2502  \u2190 \u6bcf\u6b21\u4e0d\u540c&#xff0c;\u4e0d\u7f13\u5b58<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>Plain<\/p>\n<h4 id=\"heading-7\">\u521b\u5efa\u7f13\u5b58&#xff1a;\u663e\u5f0f vs \u9690\u5f0f<\/h4>\n<p>\u5404\u5bb6\u521b\u5efa\u7f13\u5b58\u7684\u673a\u5236\u4e0d\u4e00\u6837\u3002OpenAI \u662f\u9690\u5f0f\u7684&#8212;&#8212;\u63d0\u793a\u8bcd\u8d85\u8fc7\u4e00\u5b9a token \u9608\u503c\u540e&#xff0c;\u5e73\u53f0\u81ea\u52a8\u5e2e\u4f60\u5efa\u597d\u7f13\u5b58&#xff0c;\u5f00\u53d1\u8005\u4ec0\u4e48\u90fd\u4e0d\u9700\u8981\u505a\u3002Anthropic \u662f\u663e\u5f0f\u7684&#8212;&#8212;\u8981\u4e3b\u52a8\u8c03\u7528\u7f13\u5b58\u63a5\u53e3&#xff0c;\u8fd8\u9700\u8981\u989d\u5916\u4ed8 1.25x \u7684\u5199\u5165\u8d39\u7528&#xff08;\u6ca1\u9519&#xff0c;\u5efa\u7f13\u5b58\u672c\u8eab\u8981\u82b1\u94b1&#xff09;\u3002<\/p>\n<p>\u4ee5 Anthropic \u4e3a\u4f8b&#xff0c;\u663e\u5f0f\u521b\u5efa\u7f13\u5b58\u7684\u65b9\u5f0f\u662f\u5728\u8bf7\u6c42\u91cc\u52a0\u00a0cache_control\u00a0\u6807\u8bb0&#xff1a;<\/p>\n<p>response &#061; client.messages.create(<br \/>\n    model&#061;&#034;claude-opus-4-5&#034;,<br \/>\n    max_tokens&#061;1024,<br \/>\n    system&#061;[{&#034;type&#034;: &#034;text&#034;,&#034;text&#034;: &#034;\u4f60\u662f\u4e00\u4e2a\u4e13\u4e1a\u7684\u4ee3\u7801\u5ba1\u67e5\u52a9\u624b&#xff0c;\u7cbe\u901a Python\u3001Go \u548c Rust&#8230;&#034;,},{&#034;type&#034;: &#034;text&#034;,&#034;text&#034;: &#034;&lt;tools&gt;&#8230;\u5927\u91cf\u5de5\u5177\u5b9a\u4e49&#8230;&lt;\/tools&gt;&#034;,&#034;cache_control&#034;: {&#034;type&#034;: &#034;ephemeral&#034;}  # \u5728\u8fd9\u91cc\u6253\u65ad\u70b9}],<br \/>\n    messages&#061;[{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: user_input}])<\/p>\n<p>Python<\/p>\n<p>\u65ad\u70b9\u4e4b\u524d\u7684\u6240\u6709\u5185\u5bb9\u4f1a\u88ab\u7f13\u5b58&#xff0c;\u4e4b\u540e\u7684\u4e0d\u4f1a\u3002Anthropic \u76ee\u524d\u6700\u591a\u5141\u8bb8 4 \u4e2a\u65ad\u70b9&#xff0c;\u8981\u5408\u7406\u5206\u914d\u7ed9\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u793a\u4f8b\u3001\u6587\u6863\u3001tool schema \u8fd9\u51e0\u4e2a\u5c42\u7ea7&#xff0c;\u8d85\u51fa\u7684\u6807\u8bb0\u4f1a\u88ab\u76f4\u63a5\u5ffd\u7565&#8212;&#8212;\u5f88\u591a\u4eba\u8e29\u5751\u4e86\u624d\u540e\u77e5\u540e\u89c9\u3002<\/p>\n<p>\u8fd9\u4e2a\u5dee\u5f02\u80cc\u540e\u6709\u5176\u9053\u7406&#xff1a;Anthropic \u548c OpenAI \u7684 KV Cache \u4f4f\u5728\u6602\u8d35\u7684 GPU \u663e\u5b58\u91cc&#xff0c;\u5982\u679c\u968f\u4fbf\u8ba9\u7528\u6237\u521b\u5efa\u957f\u65f6\u95f4\u7f13\u5b58&#xff0c;\u7b97\u529b\u538b\u529b\u4f1a\u76f8\u5f53\u6050\u6016\u3002DeepSeek \u901a\u8fc7\u6280\u672f\u4f18\u5316\u628a KV Cache \u4e0b\u653e\u5230\u4e86 NVMe SSD&#xff0c;\u5b58\u50a8\u6210\u672c\u5927\u5e45\u538b\u7f29&#xff0c;\u6240\u4ee5\u4ed6\u4eec\u7684\u7f13\u5b58\u5b9a\u4ef7\u53ef\u4ee5\u505a\u5230\u63a5\u8fd1\u514d\u8d39\u3002\u9009\u578b\u65f6\u8fd9\u51e0\u70b9\u5dee\u5f02\u5f97\u653e\u5728\u5fc3\u4e0a\u3002<\/p>\n<h3 id=\"heading-8\">\u7528\u5bf9 Prompt Cache \u7684\u4e94\u4ef6\u4e8b<\/h3>\n<p>\u524d\u9762\u8bb2\u7684\u662f\u539f\u7406&#xff0c;\u771f\u6b63\u843d\u5230\u5de5\u7a0b\u91cc&#xff0c;\u5173\u952e\u4e0d\u662f&#034;\u77e5\u9053\u7f13\u5b58\u5f88\u4fbf\u5b9c&#034;&#xff0c;\u800c\u662f\u628a\u8bf7\u6c42\u7ec4\u7ec7\u6210\u771f\u7684\u80fd\u547d\u4e2d\u7f13\u5b58\u7684\u6837\u5b50\u3002\u53ef\u4ee5\u6309\u4e0b\u9762\u4e94\u4ef6\u4e8b\u6539\u3002<\/p>\n<h4 id=\"heading-9\">1.\u628a Prompt \u5f53\u6210\u5206\u5c42\u7ed3\u6784&#xff0c;\u800c\u4e0d\u662f\u4e00\u6574\u5768\u5b57\u7b26\u4e32<\/h4>\n<p>\u5f88\u591a\u56e2\u961f\u7684\u95ee\u9898\u4e0d\u662f\u6ca1\u6709\u7528\u7f13\u5b58&#xff0c;\u800c\u662f\u628a\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u7528\u6237\u8f93\u5165\u3001\u5b9e\u65f6\u72b6\u6001\u3001\u5de5\u5177\u7ed3\u679c\u6df7\u5728\u4e00\u4e2a\u6a21\u677f\u91cc\u62fc\u3002\u8fd9\u6837\u770b\u8d77\u6765\u4ee3\u7801\u5f88\u7b80\u5355&#xff0c;\u7f13\u5b58\u5374\u5f88\u96be\u547d\u4e2d\u3002<\/p>\n<p>\u66f4\u597d\u7684\u505a\u6cd5\u662f\u5148\u628a\u63d0\u793a\u8bcd\u62c6\u6210\u56db\u5c42&#xff1a;<\/p>\n<p>stable_system &#061; &#034;&#034;&#034;<br \/>\n\u4f60\u662f\u4e00\u4e2a\u4f01\u4e1a\u77e5\u8bc6\u5e93\u52a9\u624b\u3002<br \/>\n\u56de\u7b54\u5fc5\u987b\u5f15\u7528\u8d44\u6599\u6765\u6e90\u3002<br \/>\n\u5982\u679c\u8d44\u6599\u4e0d\u8db3&#xff0c;\u660e\u786e\u8bf4\u4e0d\u77e5\u9053\u3002<br \/>\n&#034;&#034;&#034;<\/p>\n<p>stable_examples &#061; &#034;&#034;&#034;<br \/>\n&lt;examples&gt;<br \/>\n  &lt;example&gt;\u7528\u6237\u95ee\u4ea7\u54c1\u4ef7\u683c\u65f6&#xff0c;\u5fc5\u987b\u4f18\u5148\u5f15\u7528 pricing.md\u3002&lt;\/example&gt;<br \/>\n  &lt;example&gt;\u7528\u6237\u95ee\u5408\u540c\u6761\u6b3e\u65f6&#xff0c;\u5fc5\u987b\u5f15\u7528 legal.md\u3002&lt;\/example&gt;<br \/>\n&lt;\/examples&gt;<br \/>\n&#034;&#034;&#034;<\/p>\n<p>stable_tools &#061; render_tool_schema(tools)     # \u5de5\u5177\u5b9a\u4e49&#xff0c;\u7a33\u5b9a<br \/>\nstable_docs &#061; render_fixed_docs(doc_version) # \u56fa\u5b9a\u53c2\u8003\u6587\u6863&#xff0c;\u7a33\u5b9a<\/p>\n<p>dynamic_state &#061; {&#034;user_id&#034;: user.id,&#034;now&#034;: current_time,&#034;locale&#034;: user.locale,}<\/p>\n<p>Python<\/p>\n<p>\u7136\u540e\u7ec4\u88c5\u8bf7\u6c42\u65f6&#xff0c;\u7a33\u5b9a\u5c42\u6c38\u8fdc\u653e\u524d\u9762&#xff0c;\u53d8\u5316\u5c42\u6c38\u8fdc\u653e\u6700\u540e&#xff1a;<\/p>\n<p>system &#061; [{&#034;type&#034;: &#034;text&#034;, &#034;text&#034;: stable_system},{&#034;type&#034;: &#034;text&#034;, &#034;text&#034;: stable_examples},{&#034;type&#034;: &#034;text&#034;, &#034;text&#034;: stable_tools},{&#034;type&#034;: &#034;text&#034;,&#034;text&#034;: stable_docs,&#034;cache_control&#034;: {&#034;type&#034;: &#034;ephemeral&#034;},},]<\/p>\n<p>messages &#061; [{&#034;role&#034;: &#034;user&#034;,&#034;content&#034;: f&#034;&#034;&#034;<br \/>\n\u5f53\u524d\u7528\u6237\u72b6\u6001&#xff1a;<br \/>\n{json.dumps(dynamic_state, ensure_ascii&#061;False)}<\/p>\n<p>\u7528\u6237\u95ee\u9898&#xff1a;<br \/>\n{user_input}<br \/>\n&#034;&#034;&#034;,}]<\/p>\n<p>Python<\/p>\n<p>\u8fd9\u4e2a\u7ed3\u6784\u7684\u597d\u5904\u662f&#xff0c;\u540e\u9762\u8981\u52a0\u65f6\u95f4\u6233\u3001\u4f1a\u8bdd ID\u3001AB \u5b9e\u9a8c\u5206\u7ec4&#xff0c;\u90fd\u53ea\u4f1a\u6c61\u67d3\u6700\u540e\u4e00\u5c0f\u6bb5\u52a8\u6001\u5185\u5bb9&#xff0c;\u4e0d\u4f1a\u628a\u524d\u9762\u51e0\u5343\u751a\u81f3\u51e0\u4e07 token \u7684\u7f13\u5b58\u4e00\u8d77\u6253\u788e\u3002<\/p>\n<p>\u5b9e\u64cd\u91cc\u8fd8\u6709\u4e00\u4e2a\u5c0f\u7ec6\u8282&#xff1a;\u7a33\u5b9a\u5c42\u6700\u597d\u7531\u4ee3\u7801\u751f\u6210&#xff0c;\u4e0d\u8981\u7531\u591a\u4e2a\u6a21\u5757\u4e34\u65f6\u62fc\u63a5\u3002\u6bd4\u5982 tool schema \u7684\u5b57\u6bb5\u987a\u5e8f\u3001JSON \u7f29\u8fdb\u3001\u6362\u884c\u7b26\u5982\u679c\u6bcf\u6b21\u90fd\u4e0d\u4e00\u6837&#xff0c;\u4e5f\u4f1a\u9020\u6210\u770b\u4e0d\u89c1\u7684\u7f13\u5b58\u6296\u52a8\u3002\u6700\u7a33\u7684\u65b9\u5f0f\u662f\u5bf9\u7a33\u5b9a\u5757\u505a\u4e00\u6b21\u89c4\u8303\u5316\u5e8f\u5217\u5316&#xff1a;<\/p>\n<p>def canonical_json(value: dict) -&gt; str:return json.dumps(<br \/>\n        value,<br \/>\n        ensure_ascii&#061;False,<br \/>\n        sort_keys&#061;True,<br \/>\n        separators&#061;(&#034;,&#034;, &#034;:&#034;),)<\/p>\n<p>Python<\/p>\n<p>\u7f13\u5b58\u4e0d\u662f\u8bed\u4e49\u5339\u914d&#xff0c;\u5b83\u5f88\u5c0f\u6c14\u3002\u4f60\u89c9\u5f97&#034;\u610f\u601d\u4e00\u6837&#034;\u6ca1\u7528&#xff0c;token \u5e8f\u5217\u4e00\u6837\u624d\u6709\u7528\u3002<\/p>\n<h4 id=\"heading-10\">2.\u9ad8\u5e76\u53d1&#xff1a;\u4e00\u4e07\u7528\u6237\u5171\u4eab\u4e00\u4efd KV<\/h4>\n<p>\u5927\u591a\u6570\u8bb2 Prompt Cache \u7684\u6587\u7ae0\u90fd\u53ea\u6709\u5355\u7528\u6237\u89c6\u89d2&#xff1a;\u540c\u4e00\u4e2a\u5e94\u7528\u7684\u591a\u6b21\u8bf7\u6c42\u590d\u7528\u540c\u4e00\u4efd\u7cfb\u7edf\u63d0\u793a\u8bcd\u3002\u4f46\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b&#xff0c;\u8fd8\u6709\u4e00\u4e2a\u66f4\u5938\u5f20\u7684\u6536\u76ca&#xff0c;\u5f88\u591a\u4eba\u6ca1\u610f\u8bc6\u5230\u3002<\/p>\n<p>\u60f3\u8c61\u4e00\u4e07\u4e2a\u7528\u6237\u540c\u65f6\u5728\u7528\u4f60\u7684\u4ea7\u54c1\u3002\u6ca1\u6709 Prompt Cache \u7684\u8bdd&#xff0c;\u670d\u52a1\u7aef\u8981\u4e3a\u6bcf\u4e2a\u5e76\u53d1\u8bf7\u6c42\u5355\u72ec\u7b97\u4e00\u904d\u7cfb\u7edf\u63d0\u793a\u8bcd\u7684 KV&#8212;&#8212;\u4e00\u4e07\u6b21\u5b8c\u5168\u76f8\u540c\u7684\u8ba1\u7b97\u540c\u65f6\u53d1\u751f&#xff0c;\u7b97\u529b\u5c31\u8fd9\u4e48\u70e7\u6389\u4e86\u3002\u6709\u4e86\u5728\u670d\u52a1\u7aef\u81ea\u52a8\u8bc6\u522b\u516c\u5171\u524d\u7f00\u7684\u673a\u5236&#xff08;OpenAI\u3001vLLM \u90fd\u662f\u8fd9\u4e2a\u601d\u8def&#xff09;&#xff0c;\u670d\u52a1\u7aef\u53ea\u9700\u8981\u7ef4\u62a4\u4e00\u4efd KV \u77e9\u9635&#xff0c;\u4e00\u4e07\u4e2a\u7528\u6237\u5171\u7528\u3002<\/p>\n<p>\u7b2c\u4e00\u4e2a\u8bf7\u6c42\u7684\u6210\u672c&#xff0c;\u5927\u5bb6\u4e00\u8d77\u644a\u3002\u8fd9\u624d\u662f\u4f01\u4e1a\u7ea7\u90e8\u7f72\u91cc Prompt Cache \u771f\u6b63\u7684\u6740\u624b\u7ea7\u573a\u666f&#xff0c;\u547d\u4e2d\u7387\u7684\u63d0\u5347\u5e45\u5ea6\u6bd4\u5355\u7528\u6237\u89c6\u89d2\u5927\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002\u5982\u679c\u4f60\u5728\u505a C \u7aef\u4ea7\u54c1&#xff0c;\u8fd9\u4e00\u70b9\u53ef\u80fd\u662f\u6700\u503c\u5f97\u4f18\u5148\u5173\u6ce8\u7684\u5730\u65b9\u3002<\/p>\n<p>\u8fd9\u91cc\u7684\u5de5\u7a0b\u91cd\u70b9\u4e0d\u662f&#034;\u5927\u5bb6\u90fd\u7528\u540c\u4e00\u4e2a prompt&#034;\u8fd9\u4e48\u7c97&#xff0c;\u800c\u662f\u628a\u79df\u6237\u3001\u5b9e\u9a8c\u3001\u6743\u9650\u8fd9\u4e9b\u7ef4\u5ea6\u653e\u5bf9\u4f4d\u7f6e&#xff1a;<\/p>\n<p>shared_prefix &#061; [<br \/>\n    stable_system,<br \/>\n    stable_policy,<br \/>\n    stable_tool_schema,]<\/p>\n<p>tenant_suffix &#061; f&#034;&#034;&#034;<br \/>\n\u5f53\u524d\u79df\u6237&#xff1a;{tenant.name}<br \/>\n\u53ef\u8bbf\u95ee\u77e5\u8bc6\u5e93\u7248\u672c&#xff1a;{tenant.kb_version}<br \/>\n\u6743\u9650\u8303\u56f4&#xff1a;{tenant.permission_scope}<br \/>\n&#034;&#034;&#034;<\/p>\n<p>Python<\/p>\n<p>\u5982\u679c\u628a\u79df\u6237\u4fe1\u606f\u653e\u5728\u6700\u524d\u9762&#xff0c;\u6bcf\u4e2a\u79df\u6237\u90fd\u4f1a\u5f62\u6210\u4e00\u4efd\u72ec\u7acb\u524d\u7f00&#xff0c;\u8de8\u7528\u6237\u5171\u4eab\u5c31\u88ab\u5207\u788e\u4e86\u3002\u66f4\u5408\u7406\u7684\u987a\u5e8f\u662f&#xff1a;\u5168\u7ad9\u516c\u5171\u89c4\u5219\u5728\u524d&#xff0c;\u79df\u6237\u5dee\u5f02\u5728\u540e&#xff0c;\u7528\u6237\u8f93\u5165\u6700\u540e\u3002\u8fd9\u6837\u81f3\u5c11\u540c\u79df\u6237\u5185\u90e8\u53ef\u4ee5\u5171\u4eab&#xff0c;\u516c\u5171\u89c4\u5219\u8fd8\u53ef\u4ee5\u5728\u66f4\u5927\u8303\u56f4\u91cc\u590d\u7528\u3002<\/p>\n<p>\u5bf9\u5ef6\u8fdf\u654f\u611f\u7684\u4e1a\u52a1&#xff0c;\u8fd8\u53ef\u4ee5\u505a\u9884\u70ed&#xff1a;\u53d1\u5e03\u65b0\u7248\u672c\u540e&#xff0c;\u7528\u5178\u578b\u8bf7\u6c42\u63d0\u524d\u6253\u4e00\u6b21\u7a33\u5b9a\u524d\u7f00&#xff0c;\u8ba9\u7b2c\u4e00\u6279\u771f\u5b9e\u7528\u6237\u4e0d\u8981\u627f\u62c5\u51b7\u542f\u52a8\u6210\u672c\u3002<\/p>\n<p>def warmup_prompt_cache():<br \/>\n    client.messages.create(<br \/>\n        model&#061;MODEL,<br \/>\n        max_tokens&#061;16,<br \/>\n        system&#061;build_stable_system_blocks(),<br \/>\n        messages&#061;[{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u8bf7\u56de\u590d OK&#xff0c;\u7528\u4e8e\u7f13\u5b58\u9884\u70ed\u3002&#034;}],)<\/p>\n<p>Python<\/p>\n<p>\u9884\u70ed\u8bf7\u6c42\u7684\u8f93\u51fa\u4e0d\u91cd\u8981&#xff0c;\u91cd\u8981\u7684\u662f\u628a\u7a33\u5b9a\u524d\u7f00\u7684 KV \u5148\u5efa\u8d77\u6765\u3002<\/p>\n<h4 id=\"heading-11\">3.Tool Use&#xff1a;schema \u548c\u7ed3\u679c\u8981\u5207\u5f00<\/h4>\n<p>Agent \u5e94\u7528\u91cc\u6709\u4e2a\u7279\u522b\u5bb9\u6613\u5ffd\u89c6\u7684\u5730\u65b9&#xff1a;\u5de5\u5177\u8c03\u7528\u91cc&#xff0c;\u54ea\u4e9b\u90e8\u5206\u8be5\u7f13\u5b58&#xff0c;\u54ea\u4e9b\u4e0d\u8be5&#xff1f;<\/p>\n<p>\u7b54\u6848\u5f88\u76f4\u63a5&#xff1a;Tool schema \u5b9a\u4e49\u00a0&#xff08;\u5de5\u5177\u540d\u79f0\u3001\u53c2\u6570\u63cf\u8ff0\u3001\u8fd4\u56de\u683c\u5f0f&#xff09;\u662f\u9759\u6001\u7684&#xff0c;\u6bcf\u6b21\u8bf7\u6c42\u5b8c\u5168\u76f8\u540c&#xff0c;\u9002\u5408\u7f13\u5b58&#xff1b;Tool \u7684\u5b9e\u9645\u8c03\u7528\u7ed3\u679c\u662f\u52a8\u6001\u7684&#xff0c;\u6bcf\u6b21\u4e0d\u540c&#xff0c;\u4e0d\u8be5\u7f13\u5b58\u3002<\/p>\n<p>system&#061;[{&#034;type&#034;: &#034;text&#034;, &#034;text&#034;: &#034;\u7cfb\u7edf\u63d0\u793a\u8bcd&#8230;&#034;},{&#034;type&#034;: &#034;text&#034;,&#034;text&#034;: &#034;&#034;&#034;<br \/>\n        &lt;tools&gt;<br \/>\n          &lt;tool name&#061;&#034;search_docs&#034;&gt;&#8230;&lt;\/tool&gt;<br \/>\n          &lt;tool name&#061;&#034;run_code&#034;&gt;&#8230;&lt;\/tool&gt;<br \/>\n          &lt;!&#8211; \u51e0\u5341\u4e2a\u5de5\u5177\u5b9a\u4e49 &#8211;&gt;<br \/>\n        &lt;\/tools&gt;<br \/>\n        &#034;&#034;&#034;,&#034;cache_control&#034;: {&#034;type&#034;: &#034;ephemeral&#034;}  # schema \u5728\u65ad\u70b9\u524d&#xff0c;\u7ed3\u679c\u5728\u65ad\u70b9\u540e}],<br \/>\nmessages&#061;[# tool \u8c03\u7528\u7ed3\u679c\u653e\u5728 messages \u91cc&#xff0c;\u4e0d\u53c2\u4e0e\u7f13\u5b58{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: user_input},{&#034;role&#034;: &#034;assistant&#034;, &#034;content&#034;: [{&#034;type&#034;: &#034;tool_use&#034;, &#034;&#8230;&#034;: &#034;&#8230;&#034;}]},{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: [{&#034;type&#034;: &#034;tool_result&#034;, &#034;&#8230;&#034;: &#034;&#8230;&#034;}]},]<\/p>\n<p>Python<\/p>\n<p>Agent \u5e94\u7528\u5de5\u5177\u5f80\u5f80\u5f88\u591a&#xff0c;\u8fd9\u4e9b schema \u5b9a\u4e49\u52a0\u8d77\u6765\u53ef\u80fd\u5360\u7cfb\u7edf\u63d0\u793a\u8bcd\u76f8\u5f53\u5927\u7684\u6bd4\u4f8b&#xff0c;\u5206\u5bf9\u4e86&#xff0c;\u547d\u4e2d\u7387\u7684\u5dee\u8ddd\u4f1a\u5f88\u660e\u663e\u3002\u51e0\u5341\u4e2a\u5de5\u5177\u7684\u53c2\u6570\u8bf4\u660e\u3001\u679a\u4e3e\u503c\u3001\u8fd4\u56de\u683c\u5f0f\u52a0\u8d77\u6765\u53ef\u80fd\u6709\u51e0\u5343 token&#xff0c;\u5982\u679c\u6bcf\u8f6e\u90fd\u91cd\u65b0 prefill&#xff0c;\u4e00\u8fb9\u70e7\u94b1&#xff0c;\u4e00\u8fb9\u589e\u52a0\u9996\u5b57\u5ef6\u8fdf\u3002<\/p>\n<p>\u53cd\u8fc7\u6765&#xff0c;\u5982\u679c\u628a tool result \u585e\u8fdb\u7cfb\u7edf\u63d0\u793a\u8bcd\u6216\u8005\u56fa\u5b9a\u6587\u6863\u5757\u91cc&#xff0c;\u7f13\u5b58\u547d\u4e2d\u7387\u4f1a\u7acb\u523b\u53d8\u5dee\u3002\u56e0\u4e3a\u641c\u7d22\u7ed3\u679c\u3001\u6570\u636e\u5e93\u8fd4\u56de\u3001\u4ee3\u7801\u6267\u884c\u8f93\u51fa\u5929\u7136\u6bcf\u6b21\u4e0d\u540c&#xff0c;\u5b83\u4eec\u5e94\u8be5\u4f5c\u4e3a\u6d88\u606f\u5386\u53f2\u7684\u4e00\u90e8\u5206\u8ffd\u52a0\u5728\u540e\u9762\u3002<\/p>\n<h4 id=\"heading-12\">4.\u7f13\u5b58\u5b89\u5168\u5206\u53c9&#xff1a;\u4e0a\u4e0b\u6587\u538b\u7f29\u7684\u6b63\u786e\u59ff\u52bf<\/h4>\n<p>\u7528\u6237\u548c Agent \u804a\u4e86\u5f88\u957f\u4e00\u6bb5&#xff0c;\u5e0c\u671b Agent \u80fd\u81ea\u52a8\u538b\u7f29\u4e0a\u4e0b\u6587\u3002\u4e00\u4e2a\u5bb9\u6613\u60f3\u5230\u7684\u505a\u6cd5\u662f&#xff0c;\u53d1\u8d77\u4e00\u4e2a\u5168\u65b0\u7684\u8bf7\u6c42\u8ba9\u5927\u6a21\u578b\u505a\u603b\u7ed3&#xff1a;<\/p>\n<p># \u9519\u8bef\u505a\u6cd5&#xff1a;\u65b0\u8d77\u4e00\u4e2a\u8bf7\u6c42\u505a\u603b\u7ed3<br \/>\nresponse &#061; client.messages.create(<br \/>\n    system&#061;&#034;\u4f60\u662f\u4e00\u4e2a\u52a9\u624b&#xff0c;\u8bf7\u7ed3\u5408\u4ee5\u4e0b\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u63d0\u53d6\u6458\u8981\u5e76\u8fd4\u56de&#034;,  # \u63d0\u793a\u8bcd\u4ece\u5934\u53d8\u4e86<br \/>\n    messages&#061;[{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: f&#034;[\u5bf9\u8bdd\u4e0a\u4e0b\u6587]\\\\n{history}&#034;}])<\/p>\n<p>Python<\/p>\n<p>\u8fd9\u4efd\u65b0\u63d0\u793a\u8bcd\u4ece\u7b2c\u4e00\u4e2a\u5b57\u5c31\u53d8\u4e86&#xff0c;\u5b8c\u5168\u4eab\u53d7\u4e0d\u5230\u4efb\u4f55\u7f13\u5b58\u7ea2\u5229&#xff0c;\u5168\u6309\u65b0\u751f\u6210\u4ef7\u683c\u7b97\u3002\u66f4\u9ebb\u70e6\u7684\u662f&#xff0c;\u4f60\u628a\u539f\u672c\u5df2\u7ecf\u7a33\u5b9a\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u548c\u5386\u53f2\u4e0a\u4e0b\u6587\u91cd\u65b0\u5305\u6210\u4e86\u4e00\u4e2a\u65b0\u5b57\u7b26\u4e32&#xff0c;\u6a21\u578b\u8fd8\u8981\u91cd\u65b0\u7406\u89e3\u4e00\u904d\u4efb\u52a1\u8fb9\u754c\u3002<\/p>\n<p>\u6b63\u786e\u505a\u6cd5\u662f\u7f13\u5b58\u5b89\u5168\u5206\u53c9&#8212;&#8212;\u6267\u884c\u8f85\u52a9\u4efb\u52a1\u65f6&#xff0c;\u6545\u610f\u4fdd\u6301\u4e0a\u4e0b\u6587\u524d\u7f00\u5b8c\u5168\u4e0d\u52a8&#xff0c;\u53ea\u5728\u6700\u540e\u8ffd\u52a0\u4e00\u6761\u65b0\u6d88\u606f&#xff1a;<\/p>\n<p># \u6b63\u786e\u505a\u6cd5&#xff1a;\u4fdd\u6301\u524d\u7f00\u4e0d\u52a8&#xff0c;\u8ffd\u52a0\u538b\u7f29\u6307\u4ee4<br \/>\nresponse &#061; client.messages.create(<br \/>\n    system&#061;original_system,   # \u5b8c\u5168\u4e0d\u53d8&#xff0c;\u547d\u4e2d\u5df2\u6709\u7f13\u5b58<br \/>\n    messages&#061;[*original_history,    # \u5b8c\u5168\u4e0d\u53d8&#xff0c;\u547d\u4e2d\u5df2\u6709\u7f13\u5b58{                     # \u53ea\u5728\u6700\u540e\u52a0\u4e00\u6761\u65b0\u6d88\u606f&#034;role&#034;: &#034;user&#034;,&#034;content&#034;: &#034;\u8bf7\u57fa\u4e8e\u4ee5\u4e0a\u6240\u6709\u5bf9\u8bdd\u5185\u5bb9&#xff0c;\u751f\u6210\u4e00\u4efd\u7b80\u6d01\u7684\u538b\u7f29\u6458\u8981&#xff0c;\u4fdd\u7559\u5173\u952e\u51b3\u7b56\u548c\u4e0a\u4e0b\u6587\u3002&#034;}])<\/p>\n<p>Python<\/p>\n<p>\u524d\u7f00\u5b8c\u5168\u4e00\u81f4&#xff0c;\u5df2\u6709\u7684 KV Cache \u5168\u90e8\u590d\u7528&#xff0c;\u53ea\u6709\u6700\u540e\u90a3\u6761\u65b0\u6d88\u606f\u9700\u8981\u91cd\u65b0\u8ba1\u7b97\u3002\u538b\u7f29\u4efb\u52a1\u5b8c\u6210\u540e&#xff0c;\u7528\u6458\u8981\u66ff\u6362\u6389\u539f\u6765\u7684\u5386\u53f2\u5bf9\u8bdd&#xff0c;\u7f13\u5b58\u53c8\u80fd\u7ee7\u7eed\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>compressed_history &#061; [{&#034;role&#034;: &#034;user&#034;,&#034;content&#034;: f&#034;&#034;&#034;<br \/>\n\u4ee5\u4e0b\u662f\u6b64\u524d\u5bf9\u8bdd\u7684\u538b\u7f29\u6458\u8981&#xff0c;\u540e\u7eed\u56de\u7b54\u5fc5\u987b\u89c6\u4e3a\u4e0a\u4e0b\u6587\u4e8b\u5b9e&#xff1a;<br \/>\n{summary}<br \/>\n&#034;&#034;&#034;,}]<\/p>\n<p>Python<\/p>\n<p>\u8fd9\u91cc\u6709\u4e24\u4e2a\u6ce8\u610f\u70b9\u3002\u7b2c\u4e00&#xff0c;\u6458\u8981\u672c\u8eab\u4f1a\u6210\u4e3a\u65b0\u7684\u7a33\u5b9a\u524d\u7f00\u7684\u4e00\u90e8\u5206&#xff0c;\u6240\u4ee5\u6458\u8981\u683c\u5f0f\u4e5f\u8981\u7a33\u5b9a\u3002\u4e0d\u8981\u4eca\u5929\u8f93\u51fa Markdown&#xff0c;\u660e\u5929\u8f93\u51fa JSON&#xff0c;\u540e\u5929\u53c8\u6362\u6210\u81ea\u7136\u8bed\u8a00\u3002\u683c\u5f0f\u4e00\u53d8&#xff0c;\u540e\u9762\u7684\u7f13\u5b58\u53c8\u8981\u91cd\u5efa\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u522b\u8f7b\u6613\u4e3a\u4e86\u538b\u7f29\u5207\u6362\u6a21\u578b\u3002\u63d0\u793a\u8bcd\u7f13\u5b58\u662f\u6a21\u578b\u4e13\u6709\u7684&#xff0c;\u4e3b\u94fe\u8def\u4ece\u9ad8\u4ef7\u6a21\u578b\u5207\u5230\u4f4e\u4ef7\u6a21\u578b&#xff0c;\u539f\u6765\u7684 KV Cache \u901a\u5e38\u4e0d\u80fd\u590d\u7528\u3002\u591a\u8f6e\u5bf9\u8bdd\u91cc\u5982\u679c\u53ea\u662f\u60f3\u505a\u6458\u8981&#xff0c;\u53ef\u4ee5\u628a\u538b\u7f29\u4efb\u52a1\u59d4\u6d3e\u7ed9 subAgent \u6216\u540e\u53f0\u4efb\u52a1&#xff0c;\u4f46\u4e3b\u94fe\u8def\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u548c\u6d88\u606f\u524d\u7f00\u5c3d\u91cf\u4fdd\u6301\u7a33\u5b9a\u3002<\/p>\n<h4 id=\"heading-13\">5.\u5148\u7b97\u8d26&#xff0c;\u518d\u770b\u547d\u4e2d\u7387<\/h4>\n<p>\u7f13\u5b58\u5199\u5165\u672c\u8eab\u4e0d\u662f\u514d\u8d39\u7684\u3002\u4ee5 Anthropic \u4e3a\u4f8b&#xff0c;\u5199\u5165\u4ef7\u683c\u662f\u666e\u901a\u8f93\u5165\u7684 1.25 \u500d&#xff0c;\u8fd8\u6709\u6301\u7eed\u7684\u5b58\u50a8\u8d39\u7528\u3002\u5982\u679c\u7f13\u5b58\u7684\u5185\u5bb9\u6ca1\u88ab\u91cd\u590d\u7528\u51e0\u6b21&#xff0c;\u4e0d\u7701\u94b1&#xff0c;\u53cd\u800c\u66f4\u4e8f\u3002<\/p>\n<p>\u4ec0\u4e48\u65f6\u5019\u624d\u5408\u7b97&#xff1f;\u6709\u4e2a\u4e34\u754c\u70b9\u53ef\u4ee5\u7b97\u4e00\u4e0b&#xff1a;<\/p>\n<p>\u91cd\u7528\u6b21\u6570 \u00d7 (1 &#8211; \u7f13\u5b58\u547d\u4e2d\u4ef7\u683c\u6bd4) &gt; \u5199\u5165\u989d\u5916\u5f00\u9500<\/p>\n<p>\u4ee5 Anthropic \u4e3a\u4f8b&#xff08;\u5199\u5165 1.25x&#xff0c;\u547d\u4e2d 0.1x&#xff09;&#xff1a;<br \/>\n\u91cd\u7528\u6b21\u6570 \u00d7 0.9 &gt; 0.25<br \/>\n\u91cd\u7528\u6b21\u6570 &gt; 0.28<\/p>\n<p>Plain<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u5728 Anthropic \u7684\u5b9a\u4ef7\u4e0b&#xff0c;\u540c\u4e00\u6bb5\u5185\u5bb9\u53ea\u8981\u88ab\u7528\u8d85\u8fc7\u4e00\u6b21&#xff0c;\u7f13\u5b58\u5c31\u57fa\u672c\u5408\u7b97\u4e86&#xff0c;\u95e8\u69db\u76f8\u5f53\u4f4e\u3002<\/p>\n<p>\u4f46\u8fd9\u4e2a\u516c\u5f0f\u6709\u4e2a\u524d\u63d0&#xff1a;\u7f13\u5b58\u771f\u7684\u4f1a\u88ab\u547d\u4e2d\u3002\u5982\u679c TTL \u5f88\u77ed\u3001\u5185\u5bb9\u66f4\u65b0\u9891\u7e41&#xff0c;\u5b9e\u9645\u7684\u91cd\u7528\u6b21\u6570\u53ef\u80fd\u8fdc\u4f4e\u4e8e\u4f60\u7684\u9884\u671f\u3002<\/p>\n<p>\u6240\u4ee5\u751f\u4ea7\u73af\u5883\u91cc\u81f3\u5c11\u8981\u8bb0\u5f55\u4e09\u7ec4\u6307\u6807&#xff1a;<\/p>\n<p>cache_creation_input_tokens   \u672c\u6b21\u5199\u5165\u7f13\u5b58\u7684 token \u6570<br \/>\ncache_read_input_tokens       \u672c\u6b21\u547d\u4e2d\u7f13\u5b58\u7684 token \u6570<br \/>\ninput_tokens                  \u672c\u6b21\u4ecd\u6309\u666e\u901a\u8f93\u5165\u8ba1\u8d39\u7684 token \u6570<\/p>\n<p>Plain<\/p>\n<p>\u7136\u540e\u6309\u63a5\u53e3\u3001\u79df\u6237\u3001\u6a21\u578b\u7248\u672c\u3001prompt \u7248\u672c\u5206\u522b\u805a\u5408\u3002\u53ea\u770b\u603b\u4f53\u547d\u4e2d\u7387\u5f88\u5bb9\u6613\u8bef\u5224&#xff1a;\u4e00\u4e2a\u70ed\u95e8\u63a5\u53e3\u547d\u4e2d\u5f88\u597d&#xff0c;\u53ef\u80fd\u63a9\u76d6\u6389\u5341\u4e2a\u4f4e\u9891\u63a5\u53e3\u4e00\u76f4\u5728\u4e8f\u94b1\u3002<\/p>\n<p>\u5b9e\u64cd\u5efa\u8bae\u662f&#xff1a;\u5148\u8ba9\u7cfb\u7edf\u4ee5\u81ea\u7136\u65b9\u5f0f\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4&#xff0c;\u89c2\u5bdf\u54ea\u4e9b\u7a33\u5b9a\u5757\u771f\u7684\u4f1a\u88ab\u590d\u7528&#xff0c;\u518d\u51b3\u5b9a\u8981\u4e0d\u8981\u663e\u5f0f\u6807\u8bb0\u7f13\u5b58\u3002\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u628a\u6240\u6709\u5185\u5bb9\u90fd\u6253\u4e0a\u7f13\u5b58\u6807\u8bb0&#xff0c;\u5c24\u5176\u662f\u957f\u5c3e\u77e5\u8bc6\u5e93\u6587\u6863\u3001\u7528\u6237\u7ea7\u914d\u7f6e\u3001\u5b9e\u9a8c\u6027 prompt&#xff0c;\u8fd9\u4e9b\u4e1c\u897f\u770b\u8d77\u6765\u7a33\u5b9a&#xff0c;\u5b9e\u9645\u590d\u7528\u6b21\u6570\u53ef\u80fd\u5f88\u4f4e\u3002<\/p>\n<h3 id=\"heading-14\">\u751f\u4ea7\u73af\u5883\u4f1a\u8e29\u7684\u5751<\/h3>\n<p>\u7f13\u5b58\u5185\u5bb9\u548c\u6587\u6863\u72b6\u6001\u4e0d\u540c\u6b65\u3002\u00a0\u6587\u6863\u6539\u4e86&#xff0c;\u7f13\u5b58\u6ca1\u66f4\u65b0&#xff0c;\u6a21\u578b\u7ee7\u7eed\u62ff\u7740\u8fc7\u671f\u5185\u5bb9\u56de\u7b54\u7528\u6237\u3002\u4ea7\u54c1\u4ef7\u683c\u53d8\u4e86\u3001\u653f\u7b56\u66f4\u65b0\u4e86&#xff0c;\u8fd9\u7c7b\u573a\u666f\u4e0b\u76f4\u63a5\u51fa\u9519\u3002\u7248\u672c\u53f7\u5199\u8fdb\u7f13\u5b58 key&#xff0c;\u662f\u6700\u7701\u4e8b\u7684\u89e3\u6cd5\u3002<\/p>\n<p>\u591a\u79df\u6237\u6570\u636e\u9694\u79bb\u95ee\u9898\u3002\u00a0\u591a\u4e2a\u79df\u6237\u7684\u8bf7\u6c42\u53ef\u80fd\u547d\u4e2d\u540c\u4e00\u4efd\u7f13\u5b58\u3002\u5982\u679c\u7cfb\u7edf\u63d0\u793a\u8bcd\u91cc\u542b\u6709\u79df\u6237\u7279\u5b9a\u7684\u654f\u611f\u4fe1\u606f&#xff0c;\u8bbe\u8ba1\u7a0d\u6709\u4e0d\u614e\u5c31\u53ef\u80fd\u51fa\u73b0\u8de8\u7528\u6237\u6570\u636e\u6cc4\u9732\u3002\u5305\u542b\u7528\u6237\u7279\u5b9a\u6570\u636e\u7684\u5185\u5bb9\u4e0d\u8981\u7f13\u5b58&#xff0c;\u6216\u8005\u7f13\u5b58 key \u91cc\u5fc5\u987b\u5e26\u7528\u6237\u5f3a\u6807\u8bc6\u3002<\/p>\n<p>\u6a21\u578b\u5347\u7ea7\u5bfc\u81f4\u5168\u91cf\u5931\u6548\u3002\u00a0\u7248\u672c\u5207\u6362\u540e&#xff0c;\u5df2\u6709\u7684 KV Cache \u5168\u90e8\u4f5c\u5e9f&#8212;&#8212;\u4e0d\u540c\u7248\u672c\u5185\u90e8\u7ef4\u5ea6\u8868\u793a\u4e0d\u540c&#xff0c;\u6ca1\u6cd5\u590d\u7528\u3002\u5927\u89c4\u6a21\u90e8\u7f72\u4e0b&#xff0c;\u5347\u7ea7\u5f53\u5929\u7684\u6210\u672c\u548c\u5ef6\u8fdf\u4f1a\u540c\u65f6\u98d9\u5347&#xff0c;\u9700\u8981\u63d0\u524d\u505a\u597d\u9884\u70ed\u65b9\u6848&#xff0c;\u522b\u7b49\u5230\u51fa\u95ee\u9898\u624d\u60f3\u8d77\u6765\u3002<\/p>\n<p>\u51b7\u542f\u52a8\u6296\u52a8\u3002\u00a0\u670d\u52a1\u91cd\u542f\u3001\u7f13\u5b58\u8fc7\u671f\u3001\u65b0\u7248\u672c\u4e0a\u7ebf&#8212;&#8212;\u7b2c\u4e00\u6279\u8bf7\u6c42\u5168\u90e8\u65e0\u6cd5\u547d\u4e2d\u7f13\u5b58&#xff0c;\u5ef6\u8fdf\u548c\u6210\u672c\u540c\u65f6\u62c9\u9ad8\u3002\u5bf9\u5ef6\u8fdf\u654f\u611f\u7684\u5e94\u7528&#xff0c;\u771f\u5b9e\u6d41\u91cf\u8fdb\u6765\u4e4b\u524d\u4e00\u5b9a\u8981\u4e3b\u52a8\u9884\u70ed&#xff0c;\u4e0d\u80fd\u7b49\u7740\u7528\u6237\u66ff\u4f60\u628a\u7f13\u5b58\u5efa\u8d77\u6765\u3002<\/p>\n<p>\u663e\u5b58\u662f\u6709\u4e0a\u9650\u7684\u3002\u00a0\u9664\u4e86 DeepSeek \u8fd9\u7c7b\u505a\u4e86 NVMe offload \u7684&#xff0c;\u4f20\u7edf KV Cache \u76f4\u63a5\u5403\u663e\u5b58\u3002\u5927\u89c4\u6a21\u591a\u79df\u6237\u573a\u666f\u4e0b&#xff0c;\u5fc5\u987b\u8bbe\u8ba1\u597d\u7f13\u5b58\u5206\u5c42\u548c\u6dd8\u6c70\u7b56\u7565&#xff08;LRU\/LFU&#xff09;&#xff0c;\u522b\u4ee5\u4e3a\u7f13\u5b58\u662f\u65e0\u9650\u7684\u3002<\/p>\n<h3 id=\"heading-15\">\u4e3b\u6d41\u5382\u5546\u600e\u4e48\u9009<\/h3>\n<p>\u5b9a\u4ef7\u548c\u529f\u80fd\u7ec6\u8282\u66f4\u65b0\u9891\u7e41&#xff0c;\u51b3\u7b56\u524d\u5efa\u8bae\u67e5\u9605\u5404\u5bb6\u6700\u65b0\u6587\u6863\u3002<\/p>\n<p>\u8bb2\u5b8c\u5b9e\u73b0\u7ec6\u8282&#xff0c;\u518d\u770b\u5382\u5546\u9009\u62e9\u5c31\u4e0d\u7a81\u5140\u4e86&#xff1a;\u4f60\u9009\u7684\u4e0d\u662f&#034;\u54ea\u5bb6\u4fbf\u5b9c&#034;&#xff0c;\u800c\u662f\u9009\u4e00\u5957\u7f13\u5b58\u63a7\u5236\u6a21\u578b\u3002\u6838\u5fc3\u5dee\u5f02\u6709\u4e09\u4e2a&#xff1a;\u7f13\u5b58\u7531\u8c01\u521b\u5efa\u3001\u547d\u4e2d\u662f\u5426\u53ef\u63a7\u3001\u7f13\u5b58\u751f\u547d\u5468\u671f\u600e\u4e48\u7ba1\u7406\u3002<\/p>\n<p>\u6d77\u5916\u4e09\u5bb6&#xff1a;<\/p>\n<p>| \u5382\u5546 | \u63a7\u5236\u65b9\u5f0f | \u6210\u672c\u6298\u6263 | \u7279\u70b9 | | &#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; | | Anthropic | \u663e\u5f0f cache_control | \u7ea6 90% | \u5b8c\u5168\u63a7\u5236&#xff1b;\u5199\u5165 1.25x&#xff1b;\u6700\u591a 4 \u4e2a\u65ad\u70b9 | | OpenAI | \u81ea\u52a8&#xff0c;\u65e0\u9700\u6807\u8bb0 | \u6700\u9ad8\u7ea6 90% | \u63a5\u5165\u6700\u7b80\u5355&#xff1b;\u8d85\u8fc7\u9608\u503c\u540e\u81ea\u52a8\u8bb0\u5f55 cached_tokens | | Google Gemini | \u9690\u5f0f &#043; \u663e\u5f0f cachedContents API | \u7ea6 90% | \u652f\u6301\u591a\u6a21\u6001\u7f13\u5b58\u548c TTL \u7ba1\u7406 |<\/p>\n<p>Anthropic \u9002\u5408\u90a3\u4e9b\u613f\u610f\u7cbe\u7ec6\u7ba1\u7406 prompt \u7ed3\u6784\u7684\u56e2\u961f\u3002\u4f60\u77e5\u9053\u54ea\u4e9b\u5757\u7a33\u5b9a&#xff0c;\u77e5\u9053\u65ad\u70b9\u5e94\u8be5\u6253\u5728\u54ea\u91cc&#xff0c;\u4e5f\u613f\u610f\u4e3a\u7b2c\u4e00\u6b21\u5199\u5165\u591a\u4ed8\u4e00\u70b9\u94b1&#xff0c;\u6362\u6765\u540e\u7eed\u66f4\u786e\u5b9a\u7684\u547d\u4e2d\u3002\u590d\u6742 Agent\u3001\u957f\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u4ee3\u7801\u52a9\u624b\u3001\u5e26\u5927\u91cf\u5de5\u5177\u5b9a\u4e49\u7684\u5e73\u53f0&#xff0c;\u901a\u5e38\u66f4\u5403\u8fd9\u4e00\u5957\u3002<\/p>\n<p>OpenAI \u7684\u4f18\u52bf\u662f\u7701\u5fc3\u3002\u5b83\u628a\u7f13\u5b58\u505a\u6210\u57fa\u7840\u8bbe\u65bd\u80fd\u529b&#xff0c;\u8d85\u8fc7\u9608\u503c\u540e\u81ea\u52a8\u5904\u7406&#xff0c;\u5e76\u5728 usage \u91cc\u8fd4\u56de cached_tokens&#xff0c;\u5e94\u7528\u4fa7\u4e0d\u7528\u663e\u5f0f\u6807\u8bb0\u3002\u4ee3\u4ef7\u662f\u63a7\u5236\u611f\u5f31\u4e00\u4e9b&#xff1a;\u4f60\u80fd\u901a\u8fc7 prompt \u6392\u5e8f\u63d0\u9ad8\u547d\u4e2d\u6982\u7387&#xff0c;\u4f46\u4e0d\u80fd\u50cf Anthropic \u90a3\u6837\u660e\u786e\u6307\u5b9a\u6bcf\u4e2a\u65ad\u70b9\u3002\u5bf9\u5927\u591a\u6570\u4ea7\u54c1\u56e2\u961f\u6765\u8bf4&#xff0c;\u8fd9\u79cd\u6a21\u5f0f\u53cd\u800c\u66f4\u53cb\u597d&#xff0c;\u5c24\u5176\u9002\u5408\u8c03\u7528\u91cf\u5927\u3001\u8bf7\u6c42\u5f62\u6001\u76f8\u5bf9\u7edf\u4e00\u7684\u5728\u7ebf\u5e94\u7528\u3002<\/p>\n<p>Gemini \u540c\u65f6\u6709\u9690\u5f0f\u548c\u663e\u5f0f\u4e24\u79cd\u7f13\u5b58\u3002\u5b83\u7684 cachedContents \u66f4\u50cf\u8d44\u6e90\u7ba1\u7406&#xff1a;\u4f60\u663e\u5f0f\u521b\u5efa\u4e00\u4efd\u53ef\u590d\u7528\u5185\u5bb9&#xff0c;\u8bbe\u7f6e TTL&#xff0c;\u518d\u5728\u540e\u7eed\u8bf7\u6c42\u91cc\u5f15\u7528\u5b83\u3002\u5b83\u7684\u4f18\u52bf\u5728\u591a\u6a21\u6001\u548c\u957f\u4e0a\u4e0b\u6587\u573a\u666f&#xff0c;\u6bd4\u5982\u628a\u4e00\u4efd\u957f PDF\u3001\u89c6\u9891\u5e27\u8bf4\u660e\u6216\u5927\u578b\u8d44\u6599\u5305\u7f13\u5b58\u8d77\u6765&#xff0c;\u540e\u7eed\u56f4\u7ed5\u540c\u4e00\u4efd\u8d44\u6599\u8fde\u7eed\u63d0\u95ee\u3002<\/p>\n<p>\u56fd\u5185\u5382\u5546\u4e5f\u53ef\u4ee5\u6309\u540c\u4e00\u5957\u903b\u8f91\u770b&#xff1a;<\/p>\n<p>DeepSeek \u662f&#034;\u57fa\u7840\u8bbe\u65bd\u964d\u672c&#034;\u8def\u7ebf\u3002\u5b83\u628a KV Cache offload \u5230 NVMe \u9635\u5217&#xff0c;\u7ed5\u5f00\u663e\u5b58\u5bb9\u91cf\u9650\u5236&#xff0c;\u6240\u4ee5\u7f13\u5b58\u547d\u4e2d\u4ef7\u683c\u53ef\u4ee5\u538b\u5f97\u5f88\u4f4e\u3002\u5bf9\u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u6700\u5927\u7684\u4ef7\u503c\u662f\u4e0d\u7528\u4e3a\u663e\u5f0f\u7f13\u5b58\u8bbe\u8ba1\u4ed8\u51fa\u592a\u591a\u5fc3\u667a\u6210\u672c&#xff0c;\u5148\u628a\u7a33\u5b9a\u5185\u5bb9\u653e\u524d\u9762&#xff0c;\u5c31\u80fd\u5403\u5230\u76f8\u5f53\u4e00\u90e8\u5206\u7ea2\u5229\u3002<\/p>\n<p>\u963f\u91cc\u4e91\u767e\u70bc\u66f4\u504f&#034;\u751f\u4ea7\u63a7\u5236&#034;\u8def\u7ebf&#xff0c;\u9690\u5f0f\u548c\u663e\u5f0f\u4e24\u79cd\u6a21\u5f0f\u90fd\u652f\u6301\u3002\u666e\u901a\u4e1a\u52a1\u53ef\u4ee5\u5148\u7528\u9690\u5f0f\u7f13\u5b58&#xff0c;\u7b49\u63a5\u53e3\u8c03\u7528\u91cf\u548c prompt \u7ed3\u6784\u7a33\u5b9a\u540e&#xff0c;\u518d\u628a\u9ad8\u9891\u3001\u957f\u524d\u7f00\u7684\u90e8\u5206\u6539\u6210\u663e\u5f0f\u7f13\u5b58\u3002\u8fd9\u4e2a\u8def\u5f84\u9002\u5408\u4f01\u4e1a\u5185\u90e8\u7cfb\u7edf&#xff1a;\u5148\u4f4e\u6210\u672c\u63a5\u5165&#xff0c;\u518d\u9010\u6b65\u6cbb\u7406\u3002<\/p>\n<p>\u6708\u4e4b\u6697\u9762\u628a\u7f13\u5b58\u505a\u6210\u4e86\u66f4\u660e\u786e\u7684\u79df\u8d41\u5546\u54c1&#xff0c;\u6309\u521b\u5efa\u8d39\u3001\u5b58\u50a8\u5206\u949f\u8d39\u548c\u8c03\u7528\u8d39\u7ec4\u5408\u8ba1\u4ef7\u3002\u5b83\u5bf9\u5de5\u7a0b\u56e2\u961f\u7684\u8981\u6c42\u66f4\u9ad8&#xff1a;\u4f60\u9700\u8981\u771f\u7684\u77e5\u9053 TTL \u8bbe\u591a\u957f\u3001\u54ea\u4e9b\u7f13\u5b58\u503c\u5f97\u4fdd\u7559\u3001\u54ea\u4e9b\u8fc7\u671f\u5c31\u8be5\u5220\u3002\u597d\u5904\u662f\u8d26\u7b97\u5f97\u7ec6&#xff0c;\u574f\u5904\u662f\u6ca1\u7b97\u6e05\u695a\u5c31\u5bb9\u6613\u628a\u7f13\u5b58\u5f53\u6210\u53e6\u4e00\u4e2a\u6210\u672c\u9ed1\u6d1e\u3002<\/p>\n<p>\u767e\u5ea6\u3001\u5b57\u8282\u8fd9\u7c7b\u5e73\u53f0\u901a\u5e38\u66f4\u5f3a\u8c03\u81ea\u52a8\u5316\u548c\u5e73\u53f0\u96c6\u6210&#xff0c;\u9002\u5408\u5df2\u7ecf\u5728\u5bf9\u5e94\u4e91\u6216\u6a21\u578b\u751f\u6001\u91cc\u7684\u56e2\u961f\u3002\u9009\u62e9\u5b83\u4eec\u65f6&#xff0c;\u91cd\u70b9\u4e0d\u662f\u5355\u770b\u7f13\u5b58\u6298\u6263&#xff0c;\u800c\u662f\u770b\u65e5\u5fd7\u91cc\u80fd\u4e0d\u80fd\u62ff\u5230\u8db3\u591f\u6e05\u695a\u7684\u7f13\u5b58\u547d\u4e2d\u6307\u6807\u3002\u62ff\u4e0d\u5230\u6307\u6807&#xff0c;\u540e\u9762\u4f18\u5316\u5c31\u53ea\u80fd\u9760\u731c\u3002<\/p>\n<p>\u600e\u4e48\u9009&#xff1a;\u00a0\u666e\u901a\u4e1a\u52a1\u3001\u6210\u672c\u654f\u611f\u3001\u4e0d\u60f3\u6298\u817e&#xff1a;\u4f18\u5148\u9009\u81ea\u52a8\u9690\u5f0f&#xff0c;\u5148\u628a prompt \u987a\u5e8f\u5199\u5bf9\u3002\u7cfb\u7edf\u63d0\u793a\u8bcd\u5f88\u957f\u3001\u6709\u5927\u91cf Agent \u5de5\u5177\u5b9a\u4e49\u3001\u9700\u8981\u786e\u5b9a\u6027\u547d\u4e2d&#xff1a;\u9009\u663e\u5f0f\u6216\u53cc\u8f68\u5236&#xff0c;\u628a\u63a7\u5236\u6743\u63e1\u5728\u81ea\u5df1\u624b\u91cc\u3002\u957f\u6587\u6863\u3001\u591a\u6a21\u6001\u8d44\u6599\u5305\u3001\u591a\u8f6e\u56f4\u7ed5\u540c\u4e00\u6750\u6599\u63d0\u95ee&#xff1a;\u4f18\u5148\u770b\u8d44\u6e90\u578b\u7f13\u5b58\u80fd\u529b\u3002\u771f\u6b63\u5230\u4e86\u5927\u89c4\u6a21 C \u7aef&#xff0c;\u522b\u53ea\u770b\u5355\u6b21\u8c03\u7528\u4ef7\u683c&#xff0c;\u8981\u770b\u9ad8\u5e76\u53d1\u516c\u5171\u524d\u7f00\u80fd\u4e0d\u80fd\u7a33\u5b9a\u5171\u4eab\u3002<\/p>\n<h3 id=\"heading-16\">\u672a\u6765\u4f1a\u53d1\u751f\u4ec0\u4e48<\/h3>\n<p>Prompt Cache \u73b0\u5728\u770b\u8d77\u6765\u50cf\u4e00\u4e2a\u8ba1\u8d39\u4f18\u60e0&#xff0c;\u5f80\u540e\u770b&#xff0c;\u5b83\u66f4\u50cf\u5927\u6a21\u578b\u57fa\u7840\u8bbe\u65bd\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u7f13\u5b58\u4f1a\u4ece&#034;\u5355\u6b21\u8bf7\u6c42\u4f18\u5316&#034;\u53d8\u6210&#034;\u4f1a\u8bdd\u7ea7\u5185\u5b58\u7ba1\u7406&#034;\u3002\u4eca\u5929\u5f00\u53d1\u8005\u8fd8\u8981\u81ea\u5df1\u60f3\u529e\u6cd5\u538b\u7f29\u4e0a\u4e0b\u6587\u3001\u63a7\u5236\u65ad\u70b9\u3001\u51b3\u5b9a\u54ea\u4e9b\u5386\u53f2\u8981\u4fdd\u7559\u3002\u672a\u6765\u66f4\u53ef\u80fd\u51fa\u73b0\u6a21\u578b\u4fa7\u6216\u7f51\u5173\u4fa7\u7684\u4f1a\u8bdd\u7ba1\u7406\u5668&#xff1a;\u5b83\u77e5\u9053\u54ea\u4e9b token \u662f\u957f\u671f\u89c4\u5219&#xff0c;\u54ea\u4e9b\u662f\u77ed\u671f\u72b6\u6001&#xff0c;\u54ea\u4e9b\u53ea\u662f\u5de5\u5177\u566a\u58f0&#xff0c;\u7136\u540e\u81ea\u52a8\u628a\u5b83\u4eec\u5206\u5c42\u3001\u538b\u7f29\u3001\u6dd8\u6c70\u3002\u5230\u90a3\u65f6\u5019&#xff0c;\u5199 prompt \u7684\u65b9\u5f0f\u4f1a\u66f4\u50cf\u5199\u5185\u5b58\u5e03\u5c40\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u7f13\u5b58\u4f1a\u548c\u8def\u7531\u7cfb\u7edf\u7ed1\u5728\u4e00\u8d77\u3002\u73b0\u5728\u5f88\u591a\u56e2\u961f\u505a\u6a21\u578b\u8def\u7531&#xff0c;\u53ea\u770b&#034;\u8fd9\u4e2a\u8bf7\u6c42\u8be5\u7528\u8d35\u6a21\u578b\u8fd8\u662f\u4fbf\u5b9c\u6a21\u578b&#034;\u3002\u4f46\u7f13\u5b58\u52a0\u5165\u4ee5\u540e&#xff0c;\u8def\u7531\u51b3\u7b56\u4f1a\u590d\u6742\u5f97\u591a&#xff1a;\u4fbf\u5b9c\u6a21\u578b\u5982\u679c\u6ca1\u6709\u7f13\u5b58&#xff0c;\u672a\u5fc5\u771f\u7684\u4fbf\u5b9c&#xff1b;\u8d35\u6a21\u578b\u5982\u679c\u5df2\u7ecf\u6709\u4e00\u5927\u6bb5\u70ed\u7f13\u5b58&#xff0c;\u53ef\u80fd\u53cd\u800c\u6210\u672c\u66f4\u4f4e\u3001\u5ef6\u8fdf\u66f4\u7a33\u3002\u672a\u6765\u7684\u6a21\u578b\u7f51\u5173\u4f1a\u540c\u65f6\u8003\u8651\u4ef7\u683c\u3001\u5ef6\u8fdf\u3001\u7f13\u5b58\u70ed\u5ea6\u3001\u4e0a\u4e0b\u6587\u957f\u5ea6\u548c\u547d\u4e2d\u6982\u7387\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u7f13\u5b58\u547d\u4e2d\u4f1a\u53d8\u6210 Agent \u5e73\u53f0\u7684\u6838\u5fc3\u6307\u6807\u3002\u4eca\u5929\u5927\u5bb6\u770b token \u7528\u91cf\u3001\u5e73\u5747\u5ef6\u8fdf\u3001\u6210\u529f\u7387&#xff0c;\u5f80\u540e\u8fd8\u8981\u770b\u7a33\u5b9a\u524d\u7f00\u5360\u6bd4\u3001\u7f13\u5b58\u590d\u7528\u6b21\u6570\u3001\u51b7\u542f\u52a8\u6210\u672c\u3001prompt \u7248\u672c\u5bfc\u81f4\u7684\u5931\u6548\u7387\u3002\u4e00\u4e2a Agent \u5e73\u53f0\u505a\u5f97\u597d\u4e0d\u597d&#xff0c;\u4e0d\u53ea\u770b\u6a21\u578b\u56de\u7b54\u806a\u4e0d\u806a\u660e&#xff0c;\u8fd8\u8981\u770b\u5b83\u6709\u6ca1\u6709\u628a\u91cd\u590d\u8ba1\u7b97\u7ba1\u7406\u597d\u3002<\/p>\n<p>\u6240\u4ee5 Prompt Cache \u4e0d\u53ea\u662f&#034;\u7701\u70b9\u8f93\u5165 token \u94b1&#034;\u3002\u5b83\u4f1a\u903c\u7740\u5e94\u7528\u5f00\u53d1\u8005\u91cd\u65b0\u7406\u89e3 prompt&#xff1a;prompt \u4e0d\u662f\u4e00\u6bb5\u6587\u672c&#xff0c;\u800c\u662f\u4e00\u4efd\u4f1a\u88ab\u53cd\u590d\u6267\u884c\u3001\u53cd\u590d\u8ba1\u8d39\u3001\u53cd\u590d\u590d\u7528\u7684\u8ba1\u7b97\u8ba1\u5212\u3002<\/p>\n<h3 id=\"heading-17\">\u6700\u540e<\/h3>\n<p>Prompt Cache \u7684\u903b\u8f91\u8bf4\u5230\u5e95\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;\u76f8\u540c\u7684\u4e1c\u897f&#xff0c;\u7b97\u4e00\u904d\u5c31\u591f\u4e86\u3002<\/p>\n<p>\u843d\u5730\u7684\u5173\u952e\u53ea\u9700\u8981\u60f3\u6e05\u695a\u4e00\u4ef6\u4e8b&#xff1a;\u4ec0\u4e48\u5185\u5bb9\u662f\u7a33\u5b9a\u7684&#xff0c;\u4ec0\u4e48\u5185\u5bb9\u662f\u53d8\u5316\u7684&#xff0c;\u628a\u8fb9\u754c\u5212\u6e05\u695a&#xff0c;\u7a33\u5b9a\u7684\u653e\u524d\u9762\u3002\u00a0\u5176\u4ed6\u7684&#8212;&#8212;tool schema \u548c tool \u7ed3\u679c\u5206\u5f00\u3001ROI \u7b97\u6e05\u695a\u518d\u5f00\u7f13\u5b58\u3001\u76d1\u63a7\u547d\u4e2d\u7387\u3001\u51b7\u542f\u52a8\u9884\u70ed&#8212;&#8212;\u90fd\u662f\u5728\u8fd9\u4e2a\u57fa\u7840\u4e0a\u7684\u8865\u5145\u7ec6\u5316\u3002<\/p>\n<p>\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u90a3\u4e2a\u5bb9\u6613\u88ab\u4f4e\u4f30\u7684\u6536\u76ca\u503c\u5f97\u518d\u5f3a\u8c03\u4e00\u6b21&#xff1a;\u8de8\u7528\u6237\u7684\u524d\u7f00\u5171\u4eab&#xff0c;\u4e00\u4e07\u4e2a\u7528\u6237\u5171\u4eab\u4e00\u4efd KV \u77e9\u9635&#xff0c;\u6548\u679c\u6bd4\u5355\u7528\u6237\u89c6\u89d2\u5927\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002\u5f88\u591a\u56e2\u961f\u628a Prompt Cache \u5f53\u6210\u5355\u673a\u4f18\u5316\u6765\u770b&#xff0c;\u5176\u5b9e\u5b83\u5728 C \u7aef\u89c4\u6a21\u4e0b\u624d\u771f\u6b63\u53d1\u6325\u51fa\u91cf\u7ea7\u4e0a\u7684\u5a01\u529b\u3002<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u8bf4\u4e00\u4e2a\u8ba9\u4eba\u6709\u70b9\u5750\u4e0d\u4f4f\u7684\u8d26\u5355\u3002\u4e00\u4e2a\u7528 Claude Code \u7684\u5f00\u53d1\u56e2\u961f&#xff0c;\u67d0\u4e2a\u6708\u4e00\u5bf9\u8d26&#xff1a;$5,000\u3002\u4e0d\u662f\u56e0\u4e3a\u4ed6\u4eec\u7528\u5f97\u591a&#xff0c;\u662f\u56e0\u4e3a\u6bcf\u6b21\u8bf7\u6c42\u90fd\u5728\u91cd\u590d\u4e00\u4ef6\u5f88\u8822\u7684\u4e8b\u60c5&#8212;&#8212;\u628a\u540c\u4e00\u4efd 5,000 token \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u4e00\u904d\u904d\u585e\u7ed9\u6a21\u578b\u91cd\u65b0\u7b97\u3002\u7528\u6237\u95ee\u4e86\u4e2a\u65b0\u95ee\u9898&#xff0c;\u6a21\u578b\u5374\u8981\u628a\u5b83\u65e9\u5c31\\&#8221;\u89c1\u8fc7\\&#8221;\u7684\u90a3\u5806\u5185\u5bb9\u91cd\u65b0\u8fc7\u4e00\u904d&#xff0c;\u8fc7\u5b8c\u624d\u7ed9\u7b54\u6848\u3002\u7136\u540e\u4e0b\u4e00\u6b21&#xff0c;\u7ee7\u7eed\u3002\u63a5\u5165 Prompt Cache \u4e4b\u540e&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":90217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10267,10265,10266,50],"topic":[],"class_list":["post-90225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-kv","tag-10265","tag-10266","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \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\/90225.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5148\u8bf4\u4e00\u4e2a\u8ba9\u4eba\u6709\u70b9\u5750\u4e0d\u4f4f\u7684\u8d26\u5355\u3002\u4e00\u4e2a\u7528 Claude Code \u7684\u5f00\u53d1\u56e2\u961f&#xff0c;\u67d0\u4e2a\u6708\u4e00\u5bf9\u8d26&#xff1a;$5,000\u3002\u4e0d\u662f\u56e0\u4e3a\u4ed6\u4eec\u7528\u5f97\u591a&#xff0c;\u662f\u56e0\u4e3a\u6bcf\u6b21\u8bf7\u6c42\u90fd\u5728\u91cd\u590d\u4e00\u4ef6\u5f88\u8822\u7684\u4e8b\u60c5------\u628a\u540c\u4e00\u4efd 5,000 token \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u4e00\u904d\u904d\u585e\u7ed9\u6a21\u578b\u91cd\u65b0\u7b97\u3002\u7528\u6237\u95ee\u4e86\u4e2a\u65b0\u95ee\u9898&#xff0c;\u6a21\u578b\u5374\u8981\u628a\u5b83\u65e9\u5c31&quot;\u89c1\u8fc7&quot;\u7684\u90a3\u5806\u5185\u5bb9\u91cd\u65b0\u8fc7\u4e00\u904d&#xff0c;\u8fc7\u5b8c\u624d\u7ed9\u7b54\u6848\u3002\u7136\u540e\u4e0b\u4e00\u6b21&#xff0c;\u7ee7\u7eed\u3002\u63a5\u5165 Prompt Cache \u4e4b\u540e&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90225.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T12:57:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a71ba9f.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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90225.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90225.html\",\"name\":\"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-04T12:57:15+00:00\",\"dateModified\":\"2026-08-04T12:57:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90225.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90225.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90225.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7\"}]},{\"@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":"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \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\/90225.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5148\u8bf4\u4e00\u4e2a\u8ba9\u4eba\u6709\u70b9\u5750\u4e0d\u4f4f\u7684\u8d26\u5355\u3002\u4e00\u4e2a\u7528 Claude Code \u7684\u5f00\u53d1\u56e2\u961f&#xff0c;\u67d0\u4e2a\u6708\u4e00\u5bf9\u8d26&#xff1a;$5,000\u3002\u4e0d\u662f\u56e0\u4e3a\u4ed6\u4eec\u7528\u5f97\u591a&#xff0c;\u662f\u56e0\u4e3a\u6bcf\u6b21\u8bf7\u6c42\u90fd\u5728\u91cd\u590d\u4e00\u4ef6\u5f88\u8822\u7684\u4e8b\u60c5------\u628a\u540c\u4e00\u4efd 5,000 token \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u4e00\u904d\u904d\u585e\u7ed9\u6a21\u578b\u91cd\u65b0\u7b97\u3002\u7528\u6237\u95ee\u4e86\u4e2a\u65b0\u95ee\u9898&#xff0c;\u6a21\u578b\u5374\u8981\u628a\u5b83\u65e9\u5c31\"\u89c1\u8fc7\"\u7684\u90a3\u5806\u5185\u5bb9\u91cd\u65b0\u8fc7\u4e00\u904d&#xff0c;\u8fc7\u5b8c\u624d\u7ed9\u7b54\u6848\u3002\u7136\u540e\u4e0b\u4e00\u6b21&#xff0c;\u7ee7\u7eed\u3002\u63a5\u5165 Prompt Cache \u4e4b\u540e&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/90225.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-04T12:57:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804125711-6a71e1a71ba9f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90225.html","url":"https:\/\/www.wsisp.com\/helps\/90225.html","name":"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-04T12:57:15+00:00","dateModified":"2026-08-04T12:57:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90225.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90225.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90225.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528\u7f13\u5b58\u628a\u5927\u6a21\u578b\u8585\u51fa\u767d\u83dc\u4ef7"}]},{"@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\/90225","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=90225"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90225\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90217"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90225"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}