Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 增加新特性,可以正则过滤编辑器选中的内容,提问内容更加精简,明确 #174

Merged
merged 1 commit into from
May 3, 2024

Conversation

c913168497
Copy link
Contributor

需求开发背景:我有一个提示词模板,但是相关的代码,在整个代码文件中,存在于多处,我不希望把所有的代码都一并上传,让大模型进行分析,那样提供的信息太多太杂,大模型分析的结果往往会受到干扰,生成的结果并不完美,因此我想考虑在选中内容时,有一个正则工具对提问的选择内容进行提前筛洗。
特性功能:在AutoDev的Custome Engine Prompt(Json) 中,属性:prompts 属性中, 增加属性:selectedRegex, 此属性表示标准正则表达式内容,用于在将选中的编辑器内容,进行正则匹配,将匹配的内容,筛选出来,如果有多个匹配符合,则会用 \n 隔开, 最后将匹配的内容,给予至模型调用方法

@phodal phodal merged commit 89890b9 into unit-mesh:master May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants