<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>lzzd 博客</title>
        <link>https://lazy-zed.com/</link>
        <description>Hi，这里是lzzd的博客，欢迎来访🎈🎉</description>
        <lastBuildDate>Wed, 03 Jun 2026 12:10:47 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, lzzd</copyright>
        <item>
            <title><![CDATA[Unity—TimeLine]]></title>
            <link>https://lazy-zed.com/article/u3d_16</link>
            <guid>https://lazy-zed.com/article/u3d_16</guid>
            <pubDate>Sat, 02 Aug 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Playable]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-19a85e127d7c801189fafa3e60ef54a8"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-19a85e127d7c813caf3fc5aef6fdf2b7"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">在Unity中，<code class="notion-inline-code">Timeline</code>和<code class="notion-inline-code">Playable</code>是两个强大的工具，用于控制和管理动画、音频、粒子效果等内容的播放。</div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-19a85e127d7c81e5af52db18aa447fac" data-id="19a85e127d7c81e5af52db18aa447fac"><span><div id="19a85e127d7c81e5af52db18aa447fac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19a85e127d7c81e5af52db18aa447fac" title="TimeLine"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">TimeLine</span></span></h3><blockquote class="notion-quote notion-block-19a85e127d7c81a5b3a2dad70c6a71f9"><div>可视化+多轨道</div></blockquote><div class="notion-text notion-block-19f85e127d7c804d8eeafa630a5513b7">其实就是一个可视化工具，通过时间轴去控制各类资源(粒子，音效，动画等)的播放，这些轨道资源可以并行/串行播放，当然也可以写逻辑去自定义剪辑类型和行为。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-37485e127d7c803fa9a2dd299a956b7c" data-id="37485e127d7c803fa9a2dd299a956b7c"><span><div id="37485e127d7c803fa9a2dd299a956b7c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37485e127d7c803fa9a2dd299a956b7c" title="Playable"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Playable</span></span></h3><blockquote class="notion-quote notion-block-37485e127d7c80159412fb39d0c93ffd"><div>是unity中的底层API，用于创建和控制复杂的动画和播放行为。提供灵活的方式来管理动画混合、过渡和其他复杂的动画逻辑</div></blockquote><div class="notion-blank notion-block-37485e127d7c809a8742d3711a66c600"> </div><div class="notion-blank notion-block-19a85e127d7c81ef8a99c685978a0c3a"> </div><div class="notion-blank notion-block-19a85e127d7c8167bcb1e3dcf05c2728"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[本地部署AI并创建智能体/工作流]]></title>
            <link>https://lazy-zed.com/article/AI_1</link>
            <guid>https://lazy-zed.com/article/AI_1</guid>
            <pubDate>Sat, 25 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[Ollama和dify本地部署大模型并创建专属模型/工作流]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1a185e127d7c80fbaa2ccfd350dc3816"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-1a185e127d7c81e092aff07bbeeab0db"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">最近工作中听见同事在交流，能否用AI处理多语言本地化的问题，直接扔个语言表让它自动处理好所以国家的语言翻译，我也来了兴趣，在AI横行的今天，不去了解了解好像也说不过去，于是发现了dify和ollama两个工具，可以本地化部署大模型，并且创建工作流应用。</div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1a185e127d7c81a2b7bac266981edc57" data-id="1a185e127d7c81a2b7bac266981edc57"><span><div id="1a185e127d7c81a2b7bac266981edc57" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1a185e127d7c81a2b7bac266981edc57" title="前期准备"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前期准备</span></span></h3><blockquote class="notion-quote notion-block-1a185e127d7c81179d49cedf666f1eee"><div>下载好docker desktop,ollama即可</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-1a185e127d7c81cc892ce656cbd704de" data-id="1a185e127d7c81cc892ce656cbd704de"><span><div id="1a185e127d7c81cc892ce656cbd704de" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1a185e127d7c81cc892ce656cbd704de" title="流程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">流程</span></span></h3><div class="notion-text notion-block-1a185e127d7c81c59258c7f945195590">1.用git clone下dify的代码<a target="_blank" rel="noopener noreferrer" href="https://github.com/langgenius/dify.git" class="notion-external notion-external-mention"><div class="notion-external-image"><svg viewBox="0 0 260 260"><g><path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z" fill="#161614"></path></g></svg></div><div class="notion-external-description"><div class="notion-external-title">dify</div><div class="notion-external-subtitle"><span>langgenius</span><span> • </span><span>Updated <!-- -->Feb 24, 2025</span></div></div></a>，或者直接下载zip压缩包到本地解压。</div><div class="notion-blank notion-block-1a485e127d7c80bfa34dc386ca6a909b"> </div><div class="notion-text notion-block-1a485e127d7c80099e03e26657487b4f">2.进入dify的docekr控制台执行docker compose up -d，执行可能会有80端口冲突，记得把docker-compose.yaml文件中的80端口改为83或其他。</div><div class="notion-blank notion-block-1a485e127d7c8002ac11fd68f6c1558a"> </div><div class="notion-text notion-block-1a485e127d7c803f8ca5c98a3ad61729">3.进入localhost:83(你修改的端口号)即可，注册好账号，然后点击页面右上角的用户名，进入设置</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1a485e127d7c80869429c63dc0973fb9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Addb66d6b-cdac-4a83-b836-074d4339c7d0%3Aimage.png?table=block&amp;id=1a485e12-7d7c-8086-9429-c63dc0973fb9&amp;t=1a485e12-7d7c-8086-9429-c63dc0973fb9" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1a185e127d7c81e9a0dfd016251393a0">可以选中获取APIkey获取通义千问等大模型，我这边是接入用ollama本地化部署的大模型。</div><div class="notion-blank notion-block-1a485e127d7c80ffaab2d1d102879971"> </div><div class="notion-text notion-block-1a185e127d7c812890a4f29bc850fc5b">4.进入<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://ollama.com/search">Ollama</a>查看可以本地化部署的大模型，点进去看也有具体的控制台命令，直接cmd开控制台部署即可，如果后期下载速度慢，可以ctrl+c停止后再次继续下载，如果不想下在c盘，可以配个环境变量。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1a485e127d7c806e8c2dc66136d1f186"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A521d112e-d652-45de-8ac1-c3a70594439a%3Aimage.png?table=block&amp;id=1a485e12-7d7c-806e-8c2d-c66136d1f186&amp;t=1a485e12-7d7c-806e-8c2d-c66136d1f186" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1a485e127d7c8091bd43ef7e13e3f96f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0708627b-08b2-4fc9-bda6-d03f5a8a0810%3Aimage.png?table=block&amp;id=1a485e12-7d7c-8091-bd43-ef7e13e3f96f&amp;t=1a485e12-7d7c-8091-bd43-ef7e13e3f96f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-1a485e127d7c80a3ab09d6dedcdb7904"> </div><div class="notion-text notion-block-1a185e127d7c811099e1f26d575253af">5.接入dify,控制台输入ollama list看自己部署的模型信息，其中的name就是模型名称，模型的url就是http://(你的ip地址):11434。其中11434是ollama的运行地址，本地ip可以去控制台输ipconfig查看。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1a485e127d7c8086b7ade07f3341194a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af8fcd096-60f9-4ade-9e98-0a7a547cb4a8%3Aimage.png?table=block&amp;id=1a485e12-7d7c-8086-b7ad-e07f3341194a&amp;t=1a485e12-7d7c-8086-b7ad-e07f3341194a" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1a485e127d7c8020a7f5d15ceb69cba1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A614d95b5-f78f-41af-a4c5-1561ef902945%3Aimage.png?table=block&amp;id=1a485e12-7d7c-8020-a7f5-d15ceb69cba1&amp;t=1a485e12-7d7c-8020-a7f5-d15ceb69cba1" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-callout notion-gray_background_co notion-block-1a185e127d7c81afbde8f75225274c7f"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">这样就能成功部署了，然后可以体验其中的各类功能，聊天助手，知识库助手，智能体以及工作流，这里的工作流就可以用于解决文章开头提到的问题了</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[混元AI-开源3D大模型2.0]]></title>
            <link>https://lazy-zed.com/article/AI_3</link>
            <guid>https://lazy-zed.com/article/AI_3</guid>
            <pubDate>Sat, 01 Mar 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[免费使用，支持文生3D、图生3D、纹理生成、低多边形生成、骨骼绑定、动作驱动、草图生3D、3D风格化、3D游戏以及
类似Comfyui的在线3D工作流]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-19885e127d7c80f8ae4ac6a1bdfafa59"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c809d9701dd7c76df02c5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">Hunyuan3D-2.0，从模型层面看，用了现在AI 3D业界效果最好的一种方式，把模型和材质进行解藕分步生成，用这样的架构，两个子模型可以各司其职，整体效果会比只用1个模型同时去生存模型和材质效果更好。</div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-19885e127d7c800192d1e03170ae393d" data-id="19885e127d7c800192d1e03170ae393d"><span><div id="19885e127d7c800192d1e03170ae393d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19885e127d7c800192d1e03170ae393d" title="独游开发/gamejam竞赛的福音"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">独游开发/gamejam竞赛的福音</span></span></h3><blockquote class="notion-quote notion-block-19885e127d7c80e881b2f87e399f80c2"><div>不仅免费使用，支持文生3D、<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://zhida.zhihu.com/search?content_id=252951199&amp;content_type=Article&amp;match_order=1&amp;q=%E5%9B%BE%E7%94%9F3D&amp;zhida_source=entity">图生3D</a>、纹理生成、低多边形生成、骨骼绑定、动作驱动、草图生3D、3D风格化、3D游戏等等<b>。</b></div></blockquote><div class="notion-text notion-block-19985e127d7c801f9a57c2b7d22f2c8d">直接看效果：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-19985e127d7c801cbecde1ef5c4db32a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:658.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad08de599-ddd8-4a57-b517-25333b984770%3Aimage.png?table=block&amp;id=19985e12-7d7c-801c-becd-e1ef5c4db32a&amp;t=19985e12-7d7c-801c-becd-e1ef5c4db32a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-19985e127d7c80be9d4bf23246e3a2eb">    如果对于3D或者游戏有了解的朋友可能会知道，在游戏开发里，游戏模型是有面数的的面数非常的重要，有经验的建模大佬都是在能省的地方就省，在能达到差不多效果的前提下，减少面数，节省内存，能让你的游戏玩起来不卡帧。</div><div class="notion-text notion-block-19985e127d7c8022b281de3fcf3dace8">一般来说，主机游戏项目一般主角能干到十几万面左右，但是在手游项目里，一般角色都不能超过两万面。模型面数的节省，就变成了重中之重，所以说腾讯还是太懂了游戏了，在这次3D模型生成上，就给了一个非常实用的功能：<b>低多边形</b>。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-19985e127d7c803086ebe9544a4b8f43"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:534.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae1824f94-7411-4100-ad07-c92e703e5ecb%3Aimage.png?table=block&amp;id=19985e12-7d7c-8030-86eb-e9544a4b8f43&amp;t=19985e12-7d7c-8030-86eb-e9544a4b8f43" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-19985e127d7c8078bdb4cb1efbda2bd0">简单的说，就是自适应给你用最小的面数实现你想生成的最优效果。作为一个游戏开发，生成出来的东西，虽然还是会有AI 3D的很难二次编辑的问题，但是已经可以修改，并且直接扔到游戏引擎里面进行渲染，这一点我觉得还是蛮酷的，很明显就是奔着解决游戏开发中模型的实际问题而去的，毕竟，中国你要说靠游戏这事吃饭的，腾讯敢说第一，没人敢说第二。</div><div class="notion-text notion-block-19985e127d7c804abf89c617c4998250">而且在生成后的3D模型里，不仅有纹理贴图，还有骨骼绑定和动作！</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-19985e127d7c801b84afee4a618cc529"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae7a81af8-ccf1-4e42-b96e-32dcbd91e700%3Aimage.png?table=block&amp;id=19985e12-7d7c-801b-84af-ee4a618cc529&amp;t=19985e12-7d7c-801b-84af-ee4a618cc529" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-19985e127d7c8004920ae1af60ad7ca5">属实超模，不愧是游戏头部大厂，最后介绍也就是最牛的一个功能。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-19985e127d7c80a9b485f997ddaa981d" data-id="19985e127d7c80a9b485f997ddaa981d"><span><div id="19985e127d7c80a9b485f997ddaa981d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19985e127d7c80a9b485f997ddaa981d" title="工作流"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">工作流</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-19985e127d7c8074ac17f91f49ce11e6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Adb1d35b9-47ae-480b-b983-66abfc187357%3Aimage.png?table=block&amp;id=19985e12-7d7c-8074-ac17-f91f49ce11e6&amp;t=19985e12-7d7c-8074-ac17-f91f49ce11e6" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-19985e127d7c80f79936e98be8254d43">目前有四个模版且并未开放自定义，但想必很快就会开放，业内人应该都能想到，这完全能巨幅提高3D创作管线的效率。</div><div class="notion-text notion-block-19985e127d7c80648105fb68658db9df">    以官方的图生游戏角色工作流为例，可以一张图进去，进行背景去除，然后直接调整为T-pose，再进行模型和纹理生成，再进行骨骼绑定，输出动作动画。最超模的是把任意图扔进去，能直接给你变成T-pose。我们把图片传进去，然后运行工作流。就会发现，工作流把背景去掉，而然后直接把人物变成了T字型的人物造型，后续的模型生成，也会以这个T字型的图片去进行生成，转成T字型这一步，对于<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://zhida.zhihu.com/search?content_id=252951199&amp;content_type=Article&amp;match_order=1&amp;q=3D%E5%BB%BA%E6%A8%A1&amp;zhida_source=entity">3D建模</a>管线来说，非常重要。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-19885e127d7c808998afc63cd75e6c1b" data-id="19885e127d7c808998afc63cd75e6c1b"><span><div id="19885e127d7c808998afc63cd75e6c1b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19885e127d7c808998afc63cd75e6c1b" title="🤗 如何使用混元3D 2.0?"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 如何使用混元3D 2.0?</span></span></h2><div class="notion-text notion-block-19985e127d7c8039aa28d0f9a494bd35">在线使用: <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://3d.hunyuan.tencent.com/">https://3d.hunyuan.tencent.com</a></div><div class="notion-text notion-block-19985e127d7c8073891ada2c2c536995">项目官网: <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://3d-models.hunyuan.tencent.com/">https://3d-models.hunyuan.tencent.com</a></div><div class="notion-text notion-block-19985e127d7c80019fe4e6d5f4946d39">代码仓库: <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/tencent/Hunyuan3D-2">https://github.com/tencent/Hunyuan3D-2</a></div><div class="notion-text notion-block-19985e127d7c8082a730d28a327de5f1">模型权重：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://huggingface.co/tencent/Hunyuan3D-2">https://huggingface.co/tencent/Hunyuan3D-2</a></div><div class="notion-text notion-block-19985e127d7c80a8ab85e7945f15bf83">demo页面：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/tencent/Hunyuan3D-2%E6%A8%A1%E5%9E%8B%E6%9D%83%E9%87%8D%EF%BC%9Ahttps://huggingface.co/tencent/Hunyuan3D-2demo%E9%A1%B5%E9%9D%A2%EF%BC%9Ahttps://huggingface.co/spaces/tencent/Hunyuan3D-2">https://huggingface.co/spaces/tencent/Hunyuan3D-2</a></div><div class="notion-blank notion-block-19885e127d7c8099b410f0b1cdcafe91"> </div><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c80dfafb9eff8cb995b56"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">    在游戏领域，腾讯本身顶尖游戏部门像天美、光子、魔方。他们非常懂游戏，也清楚开发管线里哪里最痛。很多时候，美术资源占了项目的大半成本和周期，而AI 3D的出现恰好能先解决大批量的基础建模、贴图、优化等工作，尤其是一些NPC、小怪、道具、场景，完全可以用Hunyuan3D批量生成，然后再让美术做微调和二次设计就行。这样就能把宝贵的人力和时间，更多集中在核心角色、故事氛围、独特风格这些高价值环节上，把故事和游戏做的更加丰富精彩。</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[给 NotionNext 博客接入 Dify AI 助手：从原理到避坑全记录]]></title>
            <link>https://lazy-zed.com/article/AI_5</link>
            <guid>https://lazy-zed.com/article/AI_5</guid>
            <pubDate>Fri, 25 Apr 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[本文记录了在 NotionNext 博客中集成 Dify AI 对话助手的完整过程，解释了 Notion 作为配置中心、Vercel 作为部署平台的工作原理，详细说明了 Dify 知识库的配置方式，并重点记录了三个实际踩坑：配置缓存未刷新、BASE_URL 地址混用、以及 siteConfig 读取链在特定渲染时机失效的根因与解决方案码]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-19885e127d7c8090b2f9d59fd470ae2a"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c80ccbdb8f04851cc3df5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text"><h3 class="notion-h notion-h2 notion-block-34485e127d7c80d6a0f5c5ba4a3101d4" data-id="34485e127d7c80d6a0f5c5ba4a3101d4"><span><div id="34485e127d7c80d6a0f5c5ba4a3101d4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80d6a0f5c5ba4a3101d4" title="背景：先搞清楚架构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">背景：先搞清楚架构</span></span></h3><div class="notion-text notion-block-34485e127d7c80218428cc6de85e2399">在开始之前，需要理解 NotionNext 博客的运作方式，否则后面的配置步骤会让人摸不着头脑。</div><div class="notion-text notion-block-34485e127d7c805c9b38f0a0a455caf3"><b>Notion 的角色</b></div><div class="notion-text notion-block-34485e127d7c801db9b7c78af9971170">Notion 在这套方案里不只是写文章的地方，它同时承担了三件事：</div><ul class="notion-list notion-list-disc notion-block-34485e127d7c804e8eace2229feea431"><li><b>内容数据库</b>：所有博客文章、页面都存在 Notion 数据库里</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c80af8fe3e3140f36bf0d"><li><b>配置中心</b>：博客的各种开关、参数（比如主题、评论系统、AI 配置）也存在一个 type 为 <code class="notion-inline-code">Config</code> 的 Notion 页面里</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c80ae9cd8c15ca31ca7fc"><li><b>数据源</b>：每次有人访问博客，服务器会通过 Notion 私有 API 拉取最新数据</li></ul><div class="notion-text notion-block-34485e127d7c801bbb73fbb78bc00d99"><b>Vercel 的角色</b></div><div class="notion-text notion-block-34485e127d7c800aad86e4015b5a1a82">Vercel 是部署平台，负责把 GitHub 仓库里的 Next.js 代码编译并运行。它的工作方式：</div><ul class="notion-list notion-list-disc notion-block-34485e127d7c80eb82a0eb8f9e13847f"><li>每次你向 GitHub 推送代码，Vercel 自动重新构建部署</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c80aba796f94fa12d0592"><li>支持环境变量（类似 <code class="notion-inline-code">.env</code> 文件），注入到构建过程中</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c80dba991d2b00305db25"><li>使用 ISR（增量静态再生）：页面第一次被访问时生成静态 HTML，之后定时从 Notion 拉取最新数据刷新缓存</li></ul><div class="notion-text notion-block-34485e127d7c8060a7adc31945592357"><b>为什么配置有两个地方</b></div><div class="notion-text notion-block-34485e127d7c80be9b25c1133c864195">这是很多人困惑的地方。NotionNext 的配置读取优先级是：</div><div class="notion-text notion-block-34485e127d7c80638797f8f148af3bab"><code class="notion-inline-code">Notion 配置页 &gt; Vercel 环境变量 &gt; blog.config.js 默认值</code></div><div class="notion-text notion-block-34485e127d7c803290f4ec463298f522">简单说：Notion 配置页优先级最高，Vercel 环境变量次之。两个地方都可以写，但有些配置在特定时机只能读到其中一个，这是后面踩坑的根源。</div></div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34485e127d7c800986d0e2aa5002a4ee" data-id="34485e127d7c800986d0e2aa5002a4ee"><span><div id="34485e127d7c800986d0e2aa5002a4ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c800986d0e2aa5002a4ee" title="为什么选 Dify"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">为什么选 Dify</span></span></h3><div class="notion-text notion-block-34485e127d7c80d18b43e6dab85c2e92">NotionNext 内置了五种 AI 组件：Dify、Coze、Chatbase、WebWhiz、TianliGPT。</div><div class="notion-text notion-block-34485e127d7c80538735eaa13b89f811">选 Dify 的理由：</div><ul class="notion-list notion-list-disc notion-block-34485e127d7c809ba72be6e1aba5f00f"><li>免费版支持<b>知识库 + URL 爬取</b>，可以让 AI 读懂你的博客文章</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c80fdacd7d09e21a93ade"><li>可以选底层模型（接 Claude、GPT、国产模型均可）</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c804691c1d90f5a74fdda"><li>博客代码里已内置 <code class="notion-inline-code">DifyChatbot.js</code> 组件，理论上只需填配置</li></ul><hr class="notion-hr notion-block-34485e127d7c80709cd7ed2889f56c1d"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34485e127d7c80bfba4de62af47447a4" data-id="34485e127d7c80bfba4de62af47447a4"><span><div id="34485e127d7c80bfba4de62af47447a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80bfba4de62af47447a4" title="完整接入步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">完整接入步骤</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c80d6a229ea1443156771" data-id="34485e127d7c80d6a229ea1443156771"><span><div id="34485e127d7c80d6a229ea1443156771" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80d6a229ea1443156771" title="第一步：在 Dify 创建应用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第一步：在 Dify 创建应用</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34485e127d7c805f8143feddacc85be8"><li>访问 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cloud.dify.ai/">cloud.dify.ai</a> 注册并登录</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34485e127d7c8038861bc30a37fc21e1"><li>左侧点<b>工作室</b> → <b>创建应用</b> → 选 <b>Agent</b></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34485e127d7c806dbc3ac33558948f94"><li>填写系统提示词，让 AI 了解自己的定位，例如：</li><ol class="notion-list notion-list-numbered notion-block-34485e127d7c806dbc3ac33558948f94"><div class="notion-text notion-block-34485e127d7c80988e47da39002a181f"><code class="notion-inline-code">你是 [你的博客名] 的 AI 助手，熟悉博客的所有文章内容。
用中文回答用户问题，优先检索知识库中的相关文章。</code></div></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34485e127d7c808b89c1d7fdaeb0ccc9"><li>选择底层模型（免费额度内可用 GPT-3.5 或 Claude Haiku）</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c806994ebc8ba5b97a769" data-id="34485e127d7c806994ebc8ba5b97a769"><span><div id="34485e127d7c806994ebc8ba5b97a769" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c806994ebc8ba5b97a769" title="第二步：创建知识库并爬取博客"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第二步：创建知识库并爬取博客</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34485e127d7c803fae72d14b303a5559"><li>左侧点<b>知识库</b> → <b>创建知识库</b></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34485e127d7c801c92fadd4388a92790"><li>选择**「从网页同步」**</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34485e127d7c8098bf15cb3e182a6e5a"><li>填入你的博客地址，开启爬取子页面</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34485e127d7c80e493e0fb9e092a3450"><li>等待爬取完成后，回到刚才创建的 Agent，在<b>工具</b>里添加这个知识库</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c80d28e9ff73b453e73c1" data-id="34485e127d7c80d28e9ff73b453e73c1"><span><div id="34485e127d7c80d28e9ff73b453e73c1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80d28e9ff73b453e73c1" title="第三步：获取 API Token"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第三步：获取 API Token</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34485e127d7c80cdbbc7f3d56032235a"><li>打开你的 Agent 应用</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34485e127d7c8097b45afaba2f8d5fbf"><li>左侧菜单找**「API 访问」**</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34485e127d7c80a69beceaf7ea0bb81b"><li>点**「创建密钥」**，生成格式为 <code class="notion-inline-code">app-xxxxxxxxxx</code> 的 Token，保存好</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c80c09a33c14d029abd2f" data-id="34485e127d7c80c09a33c14d029abd2f"><span><div id="34485e127d7c80c09a33c14d029abd2f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80c09a33c14d029abd2f" title="第四步：修改代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第四步：修改代码</span></span></h4><div class="notion-text notion-block-34485e127d7c80fea13aced496533956">由于 NotionNext 的配置读取链在某些渲染时机会失效，最可靠的方式是<b>让 DifyChatbot 直接读取环境变量</b>，而不依赖 siteConfig 体系。</div><div class="notion-text notion-block-34485e127d7c80179c11d753d371be5b"><b>修改 </b><code class="notion-inline-code"><b>components/DifyChatbot.js</b></code>（完整替换）：</div><div class="notion-text notion-block-34485e127d7c807da575fd6232d03590"><code class="notion-inline-code">import { useEffect } from &#x27;react&#x27;

const TOKEN = process.env.NEXT_PUBLIC_DIFY_CHATBOT_TOKEN
const BASE_URL = process.env.NEXT_PUBLIC_DIFY_CHATBOT_BASE_URL || &#x27;https://udify.app&#x27;

export default function DifyChatbot() {
  useEffect(() =&gt; {
    if (!TOKEN) return

    window.difyChatbotConfig = { token: TOKEN, baseUrl: BASE_URL }

    const script = document.createElement(&#x27;script&#x27;)
    script.src = `${BASE_URL}/embed.min.js`
    script.id = TOKEN
    script.defer = true
    document.body.appendChild(script)

    return () =&gt; {
      document.getElementById(TOKEN)?.remove()
    }
  }, [])

  return null
}</code></div><div class="notion-text notion-block-34485e127d7c8012b725fa7fe57c84eb"><b>修改 </b><code class="notion-inline-code"><b>components/ExternalPlugins.js</b></code> 一行：</div><div class="notion-text notion-block-34485e127d7c802f91a3c87f995aa108">找到：</div><div class="notion-text notion-block-34485e127d7c803d80dede656db453b3"><code class="notion-inline-code">const DIFY_CHATBOT_ENABLED = siteConfig(&#x27;DIFY_CHATBOT_ENABLED&#x27;, null, NOTION_CONFIG)</code></div><div class="notion-text notion-block-34485e127d7c8000b65dc77c62250a9e">改为：</div><div class="notion-text notion-block-34485e127d7c807e9b14fc51221dfeee"><code class="notion-inline-code">const DIFY_CHATBOT_ENABLED = siteConfig(&#x27;DIFY_CHATBOT_ENABLED&#x27;, null, NOTION_CONFIG) || process.env.NEXT_PUBLIC_DIFY_CHATBOT_ENABLED</code></div><div class="notion-text notion-block-34485e127d7c804cb352c84241645b82">改完后推送到 GitHub：</div><div class="notion-text notion-block-34485e127d7c80eb910cc5d014f69b02"><code class="notion-inline-code">git add components/DifyChatbot.js components/ExternalPlugins.js
git commit -m &quot;feat: 直接读取环境变量启用 Dify 聊天助手&quot;
git push</code></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c809ba35fdb4c387c43d6" data-id="34485e127d7c809ba35fdb4c387c43d6"><span><div id="34485e127d7c809ba35fdb4c387c43d6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c809ba35fdb4c387c43d6" title="第五步：在 Vercel 设置环境变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第五步：在 Vercel 设置环境变量</span></span></h4><div class="notion-text notion-block-34485e127d7c80fd8829f1df84273686">进入 Vercel 项目 → <b>Settings</b> → <b>Environment Variables</b>，添加三个变量：</div><table class="notion-simple-table notion-block-34485e127d7c80ffb1eef9d96a4d3e7b"><tbody><tr class="notion-simple-table-row notion-block-34485e127d7c805389cdcea004fb3bdd"><td class="" style="width:120px"><div class="notion-simple-table-cell">变量名</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">值</div></td></tr><tr class="notion-simple-table-row notion-block-34485e127d7c80b5a8a8cfda7f1bfbc5"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">NEXT_PUBLIC_DIFY_CHATBOT_ENABLED</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">true</code></div></td></tr><tr class="notion-simple-table-row notion-block-34485e127d7c8054b186ff6dac6bb64d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">NEXT_PUBLIC_DIFY_CHATBOT_TOKEN</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">app-你的Token</code></div></td></tr><tr class="notion-simple-table-row notion-block-34485e127d7c80789695e81aaf46f8f3"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">NEXT_PUBLIC_DIFY_CHATBOT_BASE_URL</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">https://udify.app</code></div></td></tr></tbody></table><blockquote class="notion-quote notion-block-34485e127d7c805db7ddccb7f8760646"><div>注意：<code class="notion-inline-code">BASE_URL</code> 填 <code class="notion-inline-code">https://udify.app</code>，不是 <code class="notion-inline-code">https://api.dify.ai</code>。前者是加载聊天气泡脚本的地址，后者是 API 接口地址，填错了脚本找不到，气泡不会出现。</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34485e127d7c80cbb2b6fb14e597a52e" data-id="34485e127d7c80cbb2b6fb14e597a52e"><span><div id="34485e127d7c80cbb2b6fb14e597a52e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c80cbb2b6fb14e597a52e" title="第六步：重新部署"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第六步：重新部署</span></span></h4><div class="notion-text notion-block-34485e127d7c80c2b23cf2c36a56cac7">Vercel <b>Deployments</b> → 最新一条 → 右侧 <code class="notion-inline-code">...</code> → <b>Redeploy</b>。</div><div class="notion-text notion-block-34485e127d7c80d79ffef2fc6bdab87c">部署完成后刷新博客，右下角出现聊天气泡即为成功。</div><hr class="notion-hr notion-block-34485e127d7c80bd8d52cefc7c997848"/><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c80a0a27ce9cd19bf5589"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text"><h3 class="notion-h notion-h2 notion-block-34485e127d7c802393d0fd37797f4f73" data-id="34485e127d7c802393d0fd37797f4f73"><span><div id="34485e127d7c802393d0fd37797f4f73" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34485e127d7c802393d0fd37797f4f73" title="踩过的坑"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">踩过的坑</span></span></h3><div class="notion-text notion-block-34485e127d7c8061a72ad96092fb5ba3"><b>坑一：配置改了没用</b></div><div class="notion-text notion-block-34485e127d7c809ab579df16544c85b6">原因：博客有缓存机制，Notion 配置页的改动要等缓存过期或重新部署才生效。改完 Notion 后必须 Redeploy。</div><div class="notion-text notion-block-34485e127d7c809f8933ef049f8a8195"><b>坑二：BASE_URL 填错</b></div><div class="notion-text notion-block-34485e127d7c807b8194ef0ac7e2a338"><code class="notion-inline-code">https://api.dify.ai</code> 是后端 API 地址，不提供 <code class="notion-inline-code">embed.min.js</code> 文件。聊天气泡脚本在 <code class="notion-inline-code">https://udify.app/embed.min.js</code>，两者不能混用。</div><div class="notion-text notion-block-34485e127d7c8055bc86ed36c4edfed2"><b>坑三：siteConfig 读取链在特定场景失效</b></div><div class="notion-text notion-block-34485e127d7c8039a845ca7b9d77fdc7"><code class="notion-inline-code">siteConfig</code> 依赖 React 的 <code class="notion-inline-code">useGlobal()</code> Context，如果组件在某些渲染时机不在 Provider 内，<code class="notion-inline-code">useGlobal()</code> 会抛出异常被静默捕获，整条配置链降级返回 <code class="notion-inline-code">null</code>，导致明明填了配置却不生效。解决方式是直接读 <code class="notion-inline-code">process.env.NEXT_PUBLIC_*</code>，绕过这个依赖。。</div></div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trae IDE - 原生中文AI IDE]]></title>
            <link>https://lazy-zed.com/article/AI_2</link>
            <guid>https://lazy-zed.com/article/AI_2</guid>
            <pubDate>Sat, 07 Jun 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[深度体验 Trae：字节跳动推出的 AI 原生 IDE，中国开发者的新选择]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-19885e127d7c80e09466ccfdb68a297f"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c8011b11aca2fa35aaef3"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">2025年3月3日，字节跳动正式发布了其国内首个AI原生集成开发环境工具Trae，一款真正为 AI 时代重新设计的编程工具，正在改变中国开发者的工作方式，到目前其功能已非常完善，完全可以投入生产使用</div></div><div class="notion-file notion-block-1a085e127d7c80659fc1fc8d7ab99153"><a target="_blank" rel="noopener noreferrer" class="notion-file-link"><svg class="notion-file-icon" viewBox="0 0 30 30"><path d="M22,8v12c0,3.866-3.134,7-7,7s-7-3.134-7-7V8c0-2.762,2.238-5,5-5s5,2.238,5,5v12c0,1.657-1.343,3-3,3s-3-1.343-3-3V8h-2v12c0,2.762,2.238,5,5,5s5-2.238,5-5V8c0-3.866-3.134-7-7-7S6,4.134,6,8v12c0,4.971,4.029,9,9,9s9-4.029,9-9V8H22z"></path></svg><div class="notion-file-info"><div class="notion-file-title">File</div></div></a></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c8052ab37c1f05557643b" data-id="34f85e127d7c8052ab37c1f05557643b"><span><div id="34f85e127d7c8052ab37c1f05557643b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8052ab37c1f05557643b" title="📌 什么是 Trae？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📌 什么是 Trae？</span></span></h3><div class="notion-text notion-block-34f85e127d7c80218621ec71b7d66e3d">Trae 是由**字节跳动（ByteDance）**推出的一款 AI 原生集成开发环境（IDE） 。它基于 VS Code 内核深度定制，集成了强大的 AI 编程助手能力，旨在让开发者通过自然语言与 AI 协作完成编码任务。</div><div class="notion-text notion-block-34f85e127d7c80db8375fd9dc1d1d18d">简单来说： Trae = VS Code + AI Agent + 中国开发者友好 。</div><div class="notion-text notion-block-34f85e127d7c80fa8256dcd118a0f081">官方地址： <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://trae.com/">https://trae.com</a></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34f85e127d7c8032ab28eec1d7460a4d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8c31d85f-32bc-4a8c-be98-df72358ae7bf%3Aimage.png?table=block&amp;id=34f85e12-7d7c-8032-ab28-eec1d7460a4d&amp;t=34f85e12-7d7c-8032-ab28-eec1d7460a4d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c80a48c23fa2a55de3cd6" data-id="34f85e127d7c80a48c23fa2a55de3cd6"><span><div id="34f85e127d7c80a48c23fa2a55de3cd6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80a48c23fa2a55de3cd6" title="✨ 核心功能详解"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">✨ 核心功能详解</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c8092bde5f80eee303b32" data-id="34f85e127d7c8092bde5f80eee303b32"><span><div id="34f85e127d7c8092bde5f80eee303b32" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8092bde5f80eee303b32" title="1. AI Agent 智能编程助手"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. AI Agent 智能编程助手</span></span></h4><div class="notion-text notion-block-34f85e127d7c802f89b7c830fc2c26d0">这是 Trae 最核心的差异化功能。与传统 IDE 的&quot;代码补全&quot;不同，Trae 的 AI Agent 可以：</div><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8042a489c8688c2a340b"><li>理解项目上下文 ：自动分析整个代码库的结构、依赖关系和业务逻辑</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80c185f8d7c308190b60"><li>多步任务执行 ：不是只给一段代码建议，而是可以自主规划并完成一个完整的功能模块</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80c8a408f5270de5a71a"><li>文件级操作 ：能够创建、修改、删除多个文件，进行跨文件的代码重构</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80829a30dbea163e3903"><li>终端命令执行 ：可以直接在 IDE 中运行构建、测试、部署等命令</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80e1b313e81a24f1ee6f" data-id="34f85e127d7c80e1b313e81a24f1ee6f"><span><div id="34f85e127d7c80e1b313e81a24f1ee6f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80e1b313e81a24f1ee6f" title="2. 深度代码理解"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2. 深度代码理解</span></span></h4><ul class="notion-list notion-list-disc notion-block-34f85e127d7c803481a9f15b452e77f7"><li>智能代码搜索 ：通过自然语言描述即可定位相关代码</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80b1ab91d4a03ec77551"><li>代码解释与分析 ：选中任意代码块，AI 可以详细解释其功能和设计意图</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8064b259e824f38eb845"><li>依赖关系追踪 ：自动梳理函数调用链和数据流向</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c8018920ffac31498a922" data-id="34f85e127d7c8018920ffac31498a922"><span><div id="34f85e127d7c8018920ffac31498a922" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8018920ffac31498a922" title="3. 多模型支持"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 多模型支持</span></span></h4><div class="notion-text notion-block-34f85e127d7c80319eb8d2517e734a7d">Trae 支持接入多种主流大语言模型：</div><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8078be3af3c549526bc1"><li>Claude 系列 （Anthropic）</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c805cbef8f51d62ef6fc1"><li>GPT-4 / GPT-4o 系列 （OpenAI）</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80269b03f3d68df8d3b4"><li>国产大模型 ：支持接入通义千问、文心一言等国内模型</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8025ade8c72c40cba287"><li>用户可以根据任务类型灵活切换不同模型</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80ac9933dd172382bf5b" data-id="34f85e127d7c80ac9933dd172382bf5b"><span><div id="34f85e127d7c80ac9933dd172382bf5b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80ac9933dd172382bf5b" title="4. 内置 Git 工作流"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4. 内置 Git 工作流</span></span></h4><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8036b8f6ed633d1b3635"><li>可视化 Git 操作界面</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c801580dce46d1860cb03"><li>智能 Commit Message 生成</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80d6a005dc58fb689d24"><li>代码冲突辅助解决</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c807ab89dea6203653d7b"><li>PR/Code Review 辅助</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c809fa75cebb93b649b04" data-id="34f85e127d7c809fa75cebb93b649b04"><span><div id="34f85e127d7c809fa75cebb93b649b04" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c809fa75cebb93b649b04" title="5. 插件生态兼容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5. 插件生态兼容</span></span></h4><div class="notion-text notion-block-34f85e127d7c8051973def1fa51630a1">由于基于 VS Code 内核，Trae 完美兼容 VS Code 的插件市场，开发者可以继续使用熟悉的扩展。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80b1842cdf1c1c85c32c" data-id="34f85e127d7c80b1842cdf1c1c85c32c"><span><div id="34f85e127d7c80b1842cdf1c1c85c32c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80b1842cdf1c1c85c32c" title="6. 团队协作功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6. 团队协作功能</span></span></h4><div class="notion-text notion-block-34f85e127d7c8059a468d10e11f62ad3">支持实时协作编辑、代码分享、团队知识库等协作场景。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c808d975bd0c1a307cf58" data-id="34f85e127d7c808d975bd0c1a307cf58"><span><div id="34f85e127d7c808d975bd0c1a307cf58" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c808d975bd0c1a307cf58" title="👍 优点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">👍 优点</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80508646cf8cff289ed0" data-id="34f85e127d7c80508646cf8cff289ed0"><span><div id="34f85e127d7c80508646cf8cff289ed0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80508646cf8cff289ed0" title="对个人开发者"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">对个人开发者</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34f85e127d7c80b49fc9ee507c0afec7"><li>完全免费 ：目前对个人用户完全免费，无使用限制</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34f85e127d7c8034a180ddbd64ccd774"><li>开箱即用 ：无需复杂配置，下载即用，AI 能力内置</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34f85e127d7c805280f2db5b26b2a6de"><li>中文体验极佳 ：UI 界面、文档、AI 交互全部原生支持中文</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34f85e127d7c8013b8cdf2a4d0129acf"><li>Agent 能力强大 ：能独立完成复杂的编码任务，不只是&quot;补全&quot;</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-34f85e127d7c80c499f9edfd928be856"><li>国内访问流畅 ：服务器在国内，无需科学上网</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80a291c3f3d9ca5dc3fd" data-id="34f85e127d7c80a291c3f3d9ca5dc3fd"><span><div id="34f85e127d7c80a291c3f3d9ca5dc3fd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80a291c3f3d9ca5dc3fd" title="对团队/企业"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">对团队/企业</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-34f85e127d7c80b498c7cfb20a6ca88f"><li>降低门槛 ：新手开发者也能借助 AI 完成高质量代码</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34f85e127d7c80dc8c32d3c590fdb67f"><li>提升效率 ：据官方数据，可提升 30%-50% 的编码效率</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34f85e127d7c80509872cdaf0e6cdd6b"><li>合规性 ：数据存储和处理符合国内法规要求</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34f85e127d7c80ea91d7eb9158c872dd"><li>成本控制 ：相比 Copilot 等付费工具，大幅降低团队成本</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c805a947ac2cc08005249" data-id="34f85e127d7c805a947ac2cc08005249"><span><div id="34f85e127d7c805a947ac2cc08005249" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c805a947ac2cc08005249" title="👎 缺点与不足"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">👎 缺点与不足</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-34f85e127d7c8045aac0e7f69f6d89df"><li>生态仍在建设中 ：虽然兼容 VS Code 插件，但原生插件生态还不够丰富</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-34f85e127d7c80fa8a08fd6c2ce60140"><li>模型选择有限 ：内置的模型选项相对较少，高级模型可能需要额外配置</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-34f85e127d7c80d9b59ae234fcc04229"><li>离线能力弱 ：重度依赖网络连接，离线状态下 AI 功能不可用</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-34f85e127d7c80a5a54dde548a5b3a4c"><li>自定义程度有限 ：相比于裸 VS Code，一些底层自定义选项受限</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-34f85e127d7c8011aa1af13c8f8ae7e5"><li>大型项目性能 ：在超大型项目中，AI 分析索引可能会占用较多资源</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-34f85e127d7c80b6834dd5ae776b6650"><li>社区规模较小 ：相比 VS Code，社区讨论和第三方资源还比较少</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-34f85e127d7c808683c8c47dc2f712fb"><li>长期免费存疑 ：目前免费，但商业化后是否保持免费策略未知</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c8074b667d6d7b8075c44" data-id="34f85e127d7c8074b667d6d7b8075c44"><span><div id="34f85e127d7c8074b667d6d7b8075c44" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8074b667d6d7b8075c44" title="🔥 对中国开发者的特殊意义"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🔥 对中国开发者的特殊意义</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c800f9ee4ed627f0da554" data-id="34f85e127d7c800f9ee4ed627f0da554"><span><div id="34f85e127d7c800f9ee4ed627f0da554" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c800f9ee4ed627f0da554" title="1. 打破国外工具垄断"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1. 打破国外工具垄断</span></span></h4><div class="notion-text notion-block-34f85e127d7c80b58db4f7d8d40b0682">长期以来，中国开发者主要依赖 VS Code + Copilot、JetBrains 等国外工具。Trae 的出现意味着 中国拥有了自主研发的世界级 AI IDE ，这在技术自主可控层面具有重要意义。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80e8b56bd4a8b35aa564" data-id="34f85e127d7c80e8b56bd4a8b35aa564"><span><div id="34f85e127d7c80e8b56bd4a8b35aa564" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80e8b56bd4a8b35aa564" title="2. 降低 AI 编程门槛"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2. 降低 AI 编程门槛</span></span></h4><div class="notion-text notion-block-34f85e127d7c80d3b41ae5a408c41115">很多中国开发者（尤其是学生和初学者）因为：</div><ul class="notion-list notion-list-disc notion-block-34f85e127d7c801394d2c84211d505db"><li>语言障碍（英文不够流利）</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8064a5c3e93918f75b46"><li>经济限制（Copilot 月费 [ o bj ec tO bj ec t ] 10 − 19）</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c804fbb94c4a7419aed00"><li>网络限制（需要 VPN）
而无法享受 AI 编程的红利。Trae 从根本上解决了这些问题。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c8055b02affa4961c5c4b" data-id="34f85e127d7c8055b02affa4961c5c4b"><span><div id="34f85e127d7c8055b02affa4961c5c4b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8055b02affa4961c5c4b" title="3. 推动国产大模型落地"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3. 推动国产大模型落地</span></span></h4><div class="notion-text notion-block-34f85e127d7c8097a307dea0740a01c2">Trae 对国产大模型的深度集成，为通义千问、文心一言等国产模型提供了重要的应用场景，形成了 &quot;IDE + 国产模型&quot; 的良性生态闭环。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80ff85c2dff7d74946e1" data-id="34f85e127d7c80ff85c2dff7d74946e1"><span><div id="34f85e127d7c80ff85c2dff7d74946e1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80ff85c2dff7d74946e1" title="4. 符合数据合规要求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4. 符合数据合规要求</span></span></h4><div class="notion-text notion-block-34f85e127d7c80ef9e22c255c6425999">对于企业级用户，代码数据不出境是一个硬性要求。Trae 作为国内产品，天然满足数据安全和合规需求。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-34f85e127d7c80bf8b43c194e65cfaa0" data-id="34f85e127d7c80bf8b43c194e65cfaa0"><span><div id="34f85e127d7c80bf8b43c194e65cfaa0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c80bf8b43c194e65cfaa0" title="5. 培养新一代开发者习惯"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5. 培养新一代开发者习惯</span></span></h4><div class="notion-text notion-block-34f85e127d7c8018bfd7e83f0f783c15">随着 AI 编程成为趋势，Trae 正在培养一代从第一天就习惯 &quot;人机协同编程&quot; 的中国开发者，这对整个行业的人才结构将产生深远影响。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c8072905af0f0415dab03" data-id="34f85e127d7c8072905af0f0415dab03"><span><div id="34f85e127d7c8072905af0f0415dab03" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c8072905af0f0415dab03" title="💡 适用场景推荐"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">💡 适用场景推荐</span></span></h3><div class="notion-text notion-block-34f85e127d7c804eb309e92427e0cb54">场景 推荐度 说明 个人学习/练手项目 ⭐⭐⭐⭐⭐ 免费且强大，完美适合 创业公司/MVP 开发 ⭐⭐⭐⭐⭐ 快速迭代，成本极低 大型企业项目 ⭐⭐⭐⭐ 需评估安全性和稳定性 教育培训 ⭐⭐⭐⭐⭐ 降低学习门槛 移动端/游戏开发 ⭐⭐⭐⭐ 支持多种语言和框架 极度依赖特定插件的场景 ⭐⭐⭐ 可能存在兼容性问题</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34f85e127d7c803593f8c93b9f3ee241" data-id="34f85e127d7c803593f8c93b9f3ee241"><span><div id="34f85e127d7c803593f8c93b9f3ee241" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34f85e127d7c803593f8c93b9f3ee241" title="🚀 总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🚀 总结</span></span></h3><div class="notion-text notion-block-34f85e127d7c806db794e472f3fee87c">Trae 不仅是一款好用的 IDE，更是 中国 AI 工具链崛起的一个缩影 。它证明了国内团队有能力做出世界级的开发者工具。</div><div class="notion-text notion-block-34f85e127d7c80a6befbeb6c5d6cf231">如果你是：</div><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8051a5dafeab2b2d52cc"><li>✅ 想尝试 AI 编程但还没入门的开发者</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8085b7ecccd5ef70efbf"><li>✅ 寻找 Copilot 免费替代品的个人开发者</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c80e28ee9cec739856e11"><li>✅ 关注国产工具发展的技术爱好者</li></ul><ul class="notion-list notion-list-disc notion-block-34f85e127d7c8093a21dd50232fde1dd"><li>✅ 需要 AI 辅助快速出原型/POC 的创业者
那么 Trae 绝对值得一试 。一句话总结 ：Trae 可能是目前对中国开发者最友好的 AI IDE —— 免费、好用、懂中文。</li></ul><div class="notion-blank notion-block-19885e127d7c803ca6f4fb3ba9441eeb"> </div><div class="notion-callout notion-gray_background_co notion-block-19885e127d7c80189b20ce4a56814042"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="💡">💡</span></div><div class="notion-callout-text">本文发布于 lzzd 博客 ，欢迎交流讨论 🎈</div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unity-Shader]]></title>
            <link>https://lazy-zed.com/article/u3d_22</link>
            <guid>https://lazy-zed.com/article/u3d_22</guid>
            <pubDate>Sat, 05 Jul 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[对shader的简单理解]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-32c85e127d7c802682f7ca26566fcbe9"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-32c85e127d7c80639efae98902d1755f"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">个人感觉shader这块，了解原理，有对它导致问题的判断力即可。</div></div><div class="notion-text notion-block-33d85e127d7c802d8c7bc009c6387dfd">ShaderLab</div><div class="notion-text notion-block-33d85e127d7c805b9d70c8fdd38629ed">本质是什么：</div><div class="notion-text notion-block-33d85e127d7c80dda0c9d7f36fa05d51">Shader 是跑在 GPU 上的程序，控制&quot;每个像素最终显示什么颜色&quot;。ShaderLab 是 Unity 封装的一套写 Shader 的语法格式。</div><div class="notion-text notion-block-34485e127d7c8030ab98f9ba55919def">渲染流水线：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34485e127d7c80a681a9d76f4e0b4815"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac16b61ec-44bd-4ace-93b5-da23dd37829e%3Aimage.png?table=block&amp;id=34485e12-7d7c-80a6-81a9-d76f4e0b4815&amp;t=34485e12-7d7c-80a6-81a9-d76f4e0b4815" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-34485e127d7c809481dccf18b9373b66"> </div><div class="notion-text notion-block-34485e127d7c8053b13fee6e454eddad">CPU→GPU</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34485e127d7c804da02fed089abf7ef1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A31024339-523e-4d1e-92e1-ad1873af2825%3Aimage.png?table=block&amp;id=34485e12-7d7c-804d-a02f-ed089abf7ef1&amp;t=34485e12-7d7c-804d-a02f-ed089abf7ef1" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34485e127d7c8020a4f9eeb9d8b92f5c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A71759283-7457-4dc6-9fd7-8ce7255947b5%3Aimage.png?table=block&amp;id=34485e12-7d7c-8020-a4f9-eeb9d8b92f5c&amp;t=34485e12-7d7c-8020-a4f9-eeb9d8b92f5c" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-34485e127d7c8020b757e4dd6e78ea0a"> </div><div class="notion-text notion-block-33d85e127d7c8009b076d6b479f15547">渲染管线流程(gpu流水线)：</div><div class="notion-text notion-block-33d85e127d7c80aaa6a3e42951116a29">CPU 准备网格数据</div><div class="notion-text notion-block-33d85e127d7c80d3a141f033e09487ce">↓
顶点着色器（Vertex Shader）
每个顶点在哪里，做坐标变换
↓
光栅化（Rasterization）
把三角形面片转成一个个像素
↓
片元着色器（Fragment Shader）
每个像素显示什么颜色
↓
输出到屏幕</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34485e127d7c80b1b292d77c1688600b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A63760a62-99c3-4734-a4a7-95f911a8f1fe%3Aimage.png?table=block&amp;id=34485e12-7d7c-80b1-b292-d77c1688600b&amp;t=34485e12-7d7c-80b1-b292-d77c1688600b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-33d85e127d7c8086aaebf59420437a35">需要知道的关键概念：</div><ul class="notion-list notion-list-disc notion-block-33d85e127d7c80c896c7d1b4b51e863a"><li>Pass：一次渲染流程，复杂效果可以多 Pass</li></ul><ul class="notion-list notion-list-disc notion-block-33d85e127d7c80a0890bd17911c20617"><li>Properties：暴露给 Inspector 面板的参数</li></ul><ul class="notion-list notion-list-disc notion-block-33d85e127d7c8071b55fc9f723a9cb4d"><li>URP vs Built-in：现在新项目基本用 URP，两套语法不完全通用</li></ul><ul class="notion-list notion-list-disc notion-block-33d85e127d7c80128552c5c9d01a1094"><li>什么时候找美术/图程：角色描边、溶解、水面等视觉效果找他们，你只需要能看懂 Shader 代码在做什么、会调参数</li></ul><ul class="notion-list notion-list-disc notion-block-34485e127d7c802e8b1bc96b6a5987c8"><li>空间变换：模型空间→世界空间→观察空间→裁剪空间→屏幕空间</li></ul><div class="notion-text notion-block-33d85e127d7c805aad3fca4a42b458de">我们作为程序需要的判断力：</div><div class="notion-text notion-block-33d85e127d7c80d6a471d2bb73f092cf">▎ 这个效果是 Shader 问题还是逻辑问题？这个 Shader 为什么在低端机掉帧（指令数太多 / 采样次数太多）？</div><div class="notion-blank notion-block-32c85e127d7c80859cf3ccab2c77cc3c"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>