fix: 加file日志 + AgentInput提交后清空文件列表UI
This commit is contained in:
parent
523adc5303
commit
03d3116a30
@ -82,6 +82,8 @@ bricks.AgentInput = class extends bricks.VBox {
|
||||
this.dispatch('inputed', d);
|
||||
this.textw.setValue('');
|
||||
this.add_files = [];
|
||||
this.filesbar.clear_widgets();
|
||||
this.filesbar.hide();
|
||||
}
|
||||
|
||||
file_added(e) {
|
||||
|
||||
@ -550,7 +550,7 @@ if action == 'send_message':
|
||||
message_text = (params_kw or {}).get('message_text', '').strip()
|
||||
user_model_id = (params_kw or {}).get('model_id', '')
|
||||
file_paths_raw = (params_kw or {}).get('file_paths', '[]')
|
||||
debug(f'send_message: model_id={user_model_id} iteration_id={iteration_id} msg_len={len(message_text)}')
|
||||
debug(f'send_message: model_id={user_model_id} iteration_id={iteration_id} msg_len={len(message_text)} files={file_paths_raw[:200]}')
|
||||
|
||||
if not message_text:
|
||||
return json.dumps({"error": "message_text is required"}, ensure_ascii=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user