bugfix
This commit is contained in:
parent
ff91537b0e
commit
69b2012eb4
@ -341,10 +341,9 @@ bricks.AgentIO = class extends bricks.VBox {
|
|||||||
/*
|
/*
|
||||||
options:
|
options:
|
||||||
{
|
{
|
||||||
user_icon:
|
agent_using_llmid: #agent使用的大模型id
|
||||||
agent_icon:
|
reply_url: # 补充问题url
|
||||||
agent_url:
|
url: # agent接受问题的url
|
||||||
params:
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
constructor(opts){
|
constructor(opts){
|
||||||
@ -362,13 +361,15 @@ bricks.AgentIO = class extends bricks.VBox {
|
|||||||
}
|
}
|
||||||
user_inputed(e){
|
user_inputed(e){
|
||||||
this.show_input(e.params);
|
this.show_input(e.params);
|
||||||
|
var params = e.params;
|
||||||
|
params.llmid = this.agent_using_llmid;
|
||||||
var agent = new bricks.AgentModel(this, {
|
var agent = new bricks.AgentModel(this, {
|
||||||
url:this.opts.url,
|
url:this.opts.url,
|
||||||
params: this.opts.params,
|
params: params,
|
||||||
method: this.opts.method || 'POST',
|
method: this.opts.method || 'POST',
|
||||||
reply_url: this.opts.reply_url
|
reply_url: this.opts.reply_url
|
||||||
});
|
});
|
||||||
agent.set_inputed(e.params);
|
agent.set_inputed(params);
|
||||||
}
|
}
|
||||||
async show_input(params){
|
async show_input(params){
|
||||||
var box = new bricks.HBox({width:'100%'});
|
var box = new bricks.HBox({width:'100%'});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user