This commit is contained in:
yumoqing 2025-10-09 18:53:10 +08:00
parent 94d66390b3
commit cb99227078
2 changed files with 12 additions and 2 deletions

View File

@ -446,6 +446,16 @@ bricks.LlmIO = class extends bricks.VBox {
}
async setup_kdb(event){
var data = this.kdb_setting
if (this.kdb_setting.prompt_tmpl){
this.kdb_setting.prompt_tmpl = `将下面的提示词按照后面贴出的参考知识改写:
{{prompt}}
{% for i, r in enumerate(records) %}
参考{{i}}:{{r.content}}
{% endfor %}`;
}
event.preventDefault();
event.stopPropagation();
var rect = this.showRectage();

View File

@ -36,9 +36,9 @@ bricks.UserInputView = class extends bricks.VBox {
} else {
mdtext += `
* ${f.label || f.name}
\`\`\`
${data[f.name]}
\`\`\`
`;
}
}