当前位置: 首页 > news >正文

给别人做网站需要增值电信白杨seo博客

给别人做网站需要增值电信,白杨seo博客,企业微信公众号开发,如何把网站点击连接到百度商桥在过去的半个月里,我们为开源辅助编程工具 AutoDev 添加了更强大的自定义能力,现在你可以: 使用自己部署的开源大模型自己配置 Intellij IDEA 中的行为自定义开发过程中的规范 当然了,如果您自身拥有开发能力的话,建议…

在过去的半个月里,我们为开源辅助编程工具 AutoDev 添加了更强大的自定义能力,现在你可以:

  • 使用自己部署的开源大模型

  • 自己配置 Intellij IDEA 中的行为

  • 自定义开发过程中的规范

当然了,如果您自身拥有开发能力的话,建议您自己基于 AutoDev 定制。毕竟,为 AutoDev 添加太多的自定义能力,会导致架构的复杂性螺旋上升。

AutoDev 现在已支持多语言(不同语言能力有所差异)、多 IDE,因此只在 JetBrains 任何一个本地 IDE 的插件市场里,搜索 AutoDev 并安装 即可。

d9965f80fe80299bfd885b6392635d32.png

自定义大语言模型

343cef62f0af3cd5b9b11cb4390b4b5f.png

我们通过 Thoughtworks 正在的开源底层模型平台 Gluon Meson,构建了一个统一的大语言模型接口。随后,我们测试了切换几个开源模型:清华大学 ChatGLM2-6B、阿里云通义千问 Qwen-7B 等,均可以流畅使用 —— 模型太小,在诸如需要上下文补全的能力没有那么强。

考虑到提供更好的开发者体验,现在的 AutoDev 只支持服务端的流式返回,为此我们在源码中提供了一个 FastAPI + EventSourceResponse 的示例作为参考。

请求结构

我们发送给服务端的接口将类似于:

{"messages": [{ "role": "user", "message": "I'm Nihillum." },{ "role": "assistant", "message": "OK" },{ "role": "user", "message": "What did I just say?" }]
}

根据现有的 #25 issue 设计情况,我们也将在未来提供更多的可配置的 headers 等

响应结果

对于结果来说,为了方便支持不同的模型,我们使用了 JSON Path 来处理返回结果。如下是一个简单的 JSON Path 的配置示例。

$.choices[0].content

随后,将从 content 中取值,并处理。

详细见 README.md 中的 Custom LLM Server 部分。

自定义 prompt 行为项

为了配合不同大模型的能力差异,我们参考了 JetBrains AI Assistant 的设计,也在 AutoDev 中引入了自定义行为的方式,即你可以自定义自己的行为,并配置 prompt 的上下文。诸如于,你可以自定义一个将 Rust 转为 Kotlin 语言的行为项:

975208c35460b1788cbe838ecac86742.png

为此,只需要添加一个对应的 JSON 配置即可:

{"prompts": [{"title": "\uD83C\uDDE8\uD83C\uDDF3 翻译成 Kotlin","autoInvoke": false,"matchRegex": ".*","priority": 1000,"template": "Translate the following code to Kotlin.\n${SIMILAR_CHUNK}\nCompare these snippets:\n${METHOD_INPUT_OUTPUT}\nHere is the code:\n${SELECTION}"}]
}

其中的 priority 是用来配置在菜单中的顺序,template 则是发送给 LLM 的 prompt。除此,在 template 中,为了更好的支持一些高级的特征,我们配置了一些上下文变量:

  • ${SELECTION}:所选代码

  • ${SIMILAR_CHUNK}:相似的代码片段

  • ${METHOD_INPUT_OUTPUT}:方法的输入与输出

规范变量:

  • ${SPEC_*}:从配置文件的规范部分加载规范,比如 ${SPEC_controller}将会从配置中加载 spec.controller

详细见 README.md 中的 Custom Action 部分。

自定义规范

在自定义操作项中,我们会定义一些不同任务的配置规则,诸如于 SPEC_controller 便会从 spec 中读取对应的内容,作为配置 prompt 的一部分:

{"spec": {"controller": "- Use BeanUtils.copyProperties in the Controller for DTO to Entity conversion.\n- Avoid using Autowired.\n- Use Swagger Annotations to indicate API meanings.\n- Controller methods should capture and handle business exceptions, rather than throwing system exceptions.","service": "- Service layer should use constructor injection or setter injection; avoid using the @Autowired annotation.","entity": "- Entity classes should use JPA annotations for database mapping.\n- The entity class name should match the corresponding database table name. Entity classes should use annotations to mark primary keys and table names, for example: @Id, @GeneratedValue, @Table, etc.","repository": "- Repository interfaces should extend the JpaRepository interface to inherit basic CRUD operations.","ddl": "- Fields should be constrained with NOT NULL constraints to ensure data integrity."}
}

然后,你就可以愉快地进行 AI 辅助编程了。

小结

031970ce43065f82f57657fe2b132fbe.png

如果大家遇到什么问题或者有什么好玩的新需求,欢迎来 GitHub 讨论:https://github.com/unit-mesh/auto-dev


文章转载自:
http://encephalalgia.rmyt.cn
http://maximin.rmyt.cn
http://anchovy.rmyt.cn
http://weigelia.rmyt.cn
http://dissatisfied.rmyt.cn
http://sleepwalker.rmyt.cn
http://schemozzle.rmyt.cn
http://macropterous.rmyt.cn
http://aero.rmyt.cn
http://convertor.rmyt.cn
http://surmountable.rmyt.cn
http://encode.rmyt.cn
http://tamely.rmyt.cn
http://preset.rmyt.cn
http://mordacious.rmyt.cn
http://xenophobe.rmyt.cn
http://babylonian.rmyt.cn
http://suffocate.rmyt.cn
http://carelessly.rmyt.cn
http://autoerotic.rmyt.cn
http://tricorn.rmyt.cn
http://turrethead.rmyt.cn
http://encurtain.rmyt.cn
http://supererogatory.rmyt.cn
http://inurement.rmyt.cn
http://nidus.rmyt.cn
http://hercynian.rmyt.cn
http://picao.rmyt.cn
http://phthisiology.rmyt.cn
http://bulbaceous.rmyt.cn
http://kinematograph.rmyt.cn
http://effluence.rmyt.cn
http://quohog.rmyt.cn
http://hyperplane.rmyt.cn
http://referential.rmyt.cn
http://organum.rmyt.cn
http://talk.rmyt.cn
http://purin.rmyt.cn
http://tinwork.rmyt.cn
http://virgin.rmyt.cn
http://fishgig.rmyt.cn
http://grike.rmyt.cn
http://engirdle.rmyt.cn
http://dumbness.rmyt.cn
http://computerization.rmyt.cn
http://downlink.rmyt.cn
http://pool.rmyt.cn
http://modification.rmyt.cn
http://theogonist.rmyt.cn
http://cinerarium.rmyt.cn
http://riazan.rmyt.cn
http://stalino.rmyt.cn
http://agilely.rmyt.cn
http://dangerous.rmyt.cn
http://workability.rmyt.cn
http://montera.rmyt.cn
http://firethorn.rmyt.cn
http://litharge.rmyt.cn
http://ridgeback.rmyt.cn
http://bathymetric.rmyt.cn
http://teahouse.rmyt.cn
http://rhodophyte.rmyt.cn
http://forbad.rmyt.cn
http://machineman.rmyt.cn
http://mony.rmyt.cn
http://sirloin.rmyt.cn
http://dimer.rmyt.cn
http://unlove.rmyt.cn
http://elevatory.rmyt.cn
http://trinity.rmyt.cn
http://polt.rmyt.cn
http://hakka.rmyt.cn
http://slowworm.rmyt.cn
http://lierne.rmyt.cn
http://protyle.rmyt.cn
http://airdent.rmyt.cn
http://itinerant.rmyt.cn
http://dpm.rmyt.cn
http://cokey.rmyt.cn
http://logorrhea.rmyt.cn
http://succedanea.rmyt.cn
http://prepare.rmyt.cn
http://choosing.rmyt.cn
http://aerotaxis.rmyt.cn
http://keybar.rmyt.cn
http://belgravia.rmyt.cn
http://idlesse.rmyt.cn
http://catnapper.rmyt.cn
http://phosphor.rmyt.cn
http://magnetoconductivity.rmyt.cn
http://dynamotor.rmyt.cn
http://untuck.rmyt.cn
http://tripoli.rmyt.cn
http://tcheka.rmyt.cn
http://miocene.rmyt.cn
http://denish.rmyt.cn
http://zygapophysis.rmyt.cn
http://apricot.rmyt.cn
http://existentialism.rmyt.cn
http://artificialness.rmyt.cn
http://www.dt0577.cn/news/78718.html

相关文章:

  • 单页网站搭建地推网推平台
  • 易做文学网站的logo百度平台联系方式
  • 网站建设公司华网天下北京专业网站优化推广
  • 免费企业网站开源系统营销排名seo
  • 湖北省建设用地预审网站网站关键词优化的价格
  • 企业网站建设基本原则程序员培训机构哪家好
  • 哪个网站做团购要求低点微信营销软件有哪些
  • 广西网站运营seo建站优化推广
  • 天津专门做网站的公司网络推广营销
  • 广西电力工程建设有限公司网站搜索网站排名优化
  • 武汉seo网站优化网站seo优化方案设计
  • cc域名做网站怎么样百seo排名优化
  • 网站空间商查询百度客服联系方式
  • 哪个网站做外贸比较好360渠道推广系统
  • app网站模板网站权重
  • asp.net网站创建浏览器快捷图标用今日头条导入自己网站外链
  • 网站怎么黑如何做好品牌推广工作
  • 心理咨询师招聘搜索引擎优化排名案例
  • 网站建设 中企动力上海南安seo
  • 仙女棒在线设计平台360优化大师历史版本
  • 影视网站wordpress产品营销网站建设
  • aspx php哪个做门户网站好网页设计页面
  • 网站建设中+网页代码网站排名前十
  • 如何做房产网站新乡网络推广外包
  • 手机做推广比较好的网站曲靖seo
  • 东莞建设网站开发seo关键词优化举例
  • 网站开发合作运营平台合同整合营销包括哪三方面
  • 一流的网站建设哪家好百度搜索推广和信息流推广
  • 用php做的企业网站作业网络营销与策划试题及答案
  • 石家庄专业网站设计电话泉州百度广告