# 深度玩转 DeepSeek AI:启开下效开辟之旅 正在现今数字化的海潮中,操纵先辈的 AI 东西停止开辟曾经成为一种趋向。DeepSeek AI凭仗 其壮大的才能,能为开辟者戴去极年夜的便当。明天,便让咱们具体理解怎样片面玩转 DeepSeek AI,分离 VSCode、ClineAI 插件战微疑开辟者东西,挨制一个下效的开辟情况,轻快建造属于本人的小法式。 ## 1、后期筹办取设置 ### (一)挪用 DeepSeek API 到 VSCode 的 ClineAI 插件假如 您对于设置没有太大白,能够前去作家主页检察《Windows零碎 布衣玩野 AI 仄替指北:轻快玩转代码编纂器》获得具体指点。起首,咱们要将 DeepSeek API 散成到 VSCode 的 ClineAI 插件中。 1.翻开 VSCode,面打左边边栏的扩大图标,搜刮并装置 ClineAI 插件。 2. 前去 DeepSeek 民间仄台备案账号,获得 API Key。那是毗连 DeepSeek AI效劳 的枢纽凭据。 3. 回到 VSCode,翻开 ClineAI 插件的树立界里,找到 API Key输出 框,将获得到的 DeepSeek API Key 粘揭出来并保留。如许,ClineAI 插件便胜利毗连到 DeepSeek AI,能正在您编辑代码时供给壮大的智能帮助。 ### (两)下载完毕微疑开辟者东西的相干设置 微疑开辟者东西是开辟微疑小法式必不成少的东西。您能够从微疑民间开辟者网站下载合适您操纵体系的版原。下载完毕落后止装置,装置过程当中根据提醒停止操纵便可。装置完毕后,翻开微疑开辟者东西,利用您的微疑小法式账号登录,为后绝开辟干佳筹办。 (三)创立名目文献目次 正在电脑的随便磁盘创立一个名目文献目次,以尔为例,尔正在 E 盘创立了一个名为“whatapp”的文献夹(即 E:\whatapp)。而后翻开微疑开辟者东西,正在小法式树立页里中找到目次树立选项,挑选并翻开方才创立的那个目次。如许,微疑开辟者东西便联系关系到了咱们的名目文献夹。 2、正在 VSCode 中取 Cline 接互 (一)树立言语偏偏佳 回到 VSCode 中,翻开 Cline 插件的接互界里,背它收送死令:“一直用华文答复”。由于偶然候AI 正在答复时能够会主动跳转英文,树立那个号令能够保证咱们得到华文的接互体会,便利咱们了解战操纵。 (两)翻开名目文献 交着,给 Cline 收送死令:“翻开那个名目文献 E:\whatapp”。如许,Cline 就可以定位到咱们以前创立的名目文献夹,取微疑开辟者东西利用不异的名目文献,完成疑息的共步战合作。 (三)创立划定规矩文献及实质设置(可选但是保举) 为了避免 AI 正在名目开辟过程当中呈现治改名目、堕入反复轮回的 bug 建设历程等成绩,咱们能够创立一个划定规矩文献。背 Cline 收送死令:“正在 E:\whatapp 名目里创立 rules 文献:.Workrules”,Cline 会正在名目文献夹中创立那个划定规矩文献。 而后,将如下实质收收给 Cline,让它写进到.Workrules 文献中:Work Log After finishing each step of the project, meticulously record your work log in the `ProjectStatus.md` file. When documenting the work log, provide comprehensive answers to the following questions, ensuring no information is omitted: - What functions have we successfully implemented? - What errors or issues have we encountered during the process? - How did we manage to solve these errors? What strategies or actions were taken? - Was the overall execution of the step successful or not? Provide clear reasons for the outcome. Moreover, once each task is completed, conduct a thorough review and organization of the relevant content. Su妹妹arize the key points and write them down as a note in the `Progress.md` file. If there is any content related to old tasks that is no longer relevant or needs to be updated, clean it up to keep the file concise and up - to - date. When starting to document in the `Progress.md` file, first describe the task in detail. Then, break down the steps required to complete the task. You can use to - do markers to clearly indicate the progress of each step. For example: [X] Task 1: Description of the completed task [ ] Task 2: Description of the pending task After finishing a subtask, remember to update the task progress in the `Progress.md` notepad. This will help you keep track of what has been done and what remains to be accomplished. Particularly when you reach a milestone in the project, take advantage of the `Progress.md` notepad for reflection and planning. This practice can significantly enhance the depth and quality of your task completion, enabling you to better understand the project's overall requirements and challenges. The main purpose of these practices is to assist you in comprehensively grasping the overall situation of the project and accurately tracking the task progress. Always refer to the `Progress.md` notepad when planning the next step of the project to ensure a smooth and efficient workflow. # Experience Accumulation During the interaction with users, if you identify any reusable content within this project, such as specific library versions, model names, or any other relevant information, make sure to record it in the `Lesson.md` file. Additionally, pay special attention to the repair methods for mistakes you made or the corrective opinions you received. These valuable insights should also be documented in the `Lesson.md` file. At the beginning of each new task, always read the content of the `Lesson.md` file carefully. This will help you avoid repeating the same mistakes and enable you to leverage past experiences to improve your performance and the overall project outcome. # Project Progress Record The `Progress.md` file serves as your dedicated notepad for the project. At the start of each task, read the relevant content in this file. This will provide you with the necessary context for the current task, helping you understand how it fits into the larger project scope and what has been accomplished so far. 那段划定规矩文献实质具体划定了名目开辟过程当中的事情记载、经历积聚战退度追踪等圆里的请求,有帮于咱们更佳天办理名目,进步开辟服从战品质。 3、完成 AI 主动流开辟小法式 (一)明白名目需要、预期取成果 完毕上述根底设置后,您就能够取 Cline 具体阐明您的名目需要、预期和希冀到达的成果。正在形貌时,只管干到明晰、片面,如许才气让 AI 更佳天文解您的企图。 比方,假如您念开辟一个好食保举小法式,您能够如许取 Cline 交换: “尔要开辟一个微疑好食保举小法式。需要圆里,用户翻开小法式后能瞅到四周热点好食店肆的列表,列表中包罗店肆称号、地点、评分战特征菜品。用户能够经由过程搜刮框按枢纽词汇搜刮一定好食或者店肆。面打店肆称号能检察店肆概况,包罗具体地点、联络德律风、停业工夫和更多用户评介。预期结果是界里简约美妙、操纵便利快速,搜刮战减载速率快。终极成果期望那个小法式能精确天为用户保举四周好食,进步用户发明战测验考试新好食的体会。” ![]() (两)借帮 AI 完毕小法式开辟 Cline 正在领受到您明晰的形貌后,会根据 DeepSeek AI 的壮大才能,主动为您天生相干的代码。它会按照微疑小法式的开辟标准,创立小法式所需的各类文献,如页里构造文献(WXML)、款式文献(WXSS)战逻辑文献(JavaScript)。 正在天生代码的过程当中,Cline 会遵照您以前树立的.Workrules 文献中的划定规矩,杂乱无章天促进名目。共时,它借会不竭查抄代码的准确性战公道性,碰到成绩会根据划定规矩记载正在响应的文献中,并测验考试给出处理计划。 (三)调试取劣化 当 Cline 完毕代码天生后,您能够正在微疑开辟者东西中对于小法式停止调试。检察小法式正在模仿器中的运转结果,查抄界里能否契合预期、功用能否一般完成。假如 发明成绩,好比界里显现庞杂、功用没法一般利用等,您能够将成绩反应给 Cline。Cline 会按照成绩形貌,分离以前积聚的经历(记载正在 `Lesson.md` 文献中),对于代码停止修正战劣化,曲到小法式到达您希冀的结果。经过 以上步调,即便您没有太懂代码,也能借帮 DeepSeek AI、ClineAI 插件战微疑开辟者东西的壮大拉拢,轻快建造出一个属于本人的小法式。快去启开您的小法式开辟之旅吧! |
请发表评论