This commit is contained in:
yumoqing 2025-10-09 17:50:11 +08:00
parent 12454ae79f
commit 5166d62824

View File

@ -289,12 +289,12 @@ bricks.LlmIO = class extends bricks.VBox {
tip:'add new model', tip:'add new model',
css:'clickable' css:'clickable'
}); });
if (this.enable_kdb){ if (this.enabled_kdb){
this.kdb_w = new bricks.Svg({ this.kdb_w = new bricks.Svg({
rate:2, rate:2,
url:bricks_resource('imgs/input.svg'), url:bricks_resource('imgs/kdb.svg'),
margin:'14px', margin:'14px',
tip:'input data', tip:'setup kdb config',
css:'clickable' css:'clickable'
}); });
bottom_box.add_widget(this.kdb_w); bottom_box.add_widget(this.kdb_w);
@ -469,7 +469,10 @@ bricks.LlmIO = class extends bricks.VBox {
"value":data.kdbids, "value":data.kdbids,
"uitype":"checkbox", "uitype":"checkbox",
"multicheck": true, "multicheck": true,
required": true,
"label":"知识库", "label":"知识库",
"valueField":"id",
"textField":"name",
"dataurl":this.get_kdb_url "dataurl":this.get_kdb_url
}, },
{ {
@ -479,9 +482,10 @@ bricks.LlmIO = class extends bricks.VBox {
"label":"召回数量" "label":"召回数量"
}, },
{ {
"name":"prompt_format", "name":"prompt_tmpl",
"value":data.prompt_format, "value":data.prompt_tmpl,
"uitype":"text", "uitype":"text",
"required": true,
"label":"模版" "label":"模版"
} }
] ]