Hansimov commited on
Commit
2544ded
1 Parent(s): cf83c0e

:zap: [Enhance] Group advanced settings of new-agent-modal in collapsed component

Browse files
Files changed (1) hide show
  1. widgets/new_agent_modal_widget.js +21 -17
widgets/new_agent_modal_widget.js CHANGED
@@ -77,7 +77,7 @@ export class NewAgentModalWidget {
77
  <div class="modal-dialog modal-dialog-centered" role="document">
78
  <div class="modal-content">
79
  <div class="modal-header">
80
- <h4 class="modal-title">Create New Agent</h4>
81
  <button class="btn" data-bs-dismiss="modal">
82
  <i class="fa fa-close"></i>
83
  </button>
@@ -88,31 +88,35 @@ export class NewAgentModalWidget {
88
  <input id="${this.name_widget_id}" class="form-control" type="text"/>
89
  <label class="form-label">Name</label>
90
  </div>
91
- <!-- description -->
92
- <div class="form-floating mb-2">
93
- <textarea id="${this.description_widget_id}" class="form-control" rows="1"></textarea>
94
- <label>Description</label>
95
- </div>
96
  <!-- model -->
97
  <div id="${this.model_widget_id}" class="form-floating mb-2">
98
  <label class="form-label">Model</label>
99
  </div>
100
- <!-- temperature -->
101
- <div id="${this.temperature_widget_id}" class="row mb-0"">
102
- </div>
103
- <!-- top_p -->
104
- <div id="${this.top_p_widget_id}" class="row mb-0"">
105
- </div>
106
- <!-- max output tokens -->
107
- <div id="${this.max_output_tokens_widget_id}" class="row mb-2">
108
- </div>
109
  <!-- system prompt -->
110
  <div class="form-floating mb-2">
111
  <textarea id="${this.system_prompt_widget_id}" class="form-control" rows="3"></textarea>
112
  <label>System Prompt</label>
113
  </div>
114
- <!-- max token -->
115
- <!-- max history messages token -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  </div>
117
  <div class="modal-footer justify-content-end">
118
  <button id="${this.save_button_id}" class="btn btn-success">Save</button>
 
77
  <div class="modal-dialog modal-dialog-centered" role="document">
78
  <div class="modal-content">
79
  <div class="modal-header">
80
+ <h5 class="modal-title">Create New Agent</h5>
81
  <button class="btn" data-bs-dismiss="modal">
82
  <i class="fa fa-close"></i>
83
  </button>
 
88
  <input id="${this.name_widget_id}" class="form-control" type="text"/>
89
  <label class="form-label">Name</label>
90
  </div>
 
 
 
 
 
91
  <!-- model -->
92
  <div id="${this.model_widget_id}" class="form-floating mb-2">
93
  <label class="form-label">Model</label>
94
  </div>
 
 
 
 
 
 
 
 
 
95
  <!-- system prompt -->
96
  <div class="form-floating mb-2">
97
  <textarea id="${this.system_prompt_widget_id}" class="form-control" rows="3"></textarea>
98
  <label>System Prompt</label>
99
  </div>
100
+ <a class="btn mx-0 px-0" data-bs-toggle="collapse" href="#new-agent-advanced-settings">
101
+ <b>Advanced Settings</b> <i class="fa fa-chevron-down"></i>
102
+ </a>
103
+ <div class="collapse" id="new-agent-advanced-settings">
104
+ <!-- description -->
105
+ <div class="form-floating my-2">
106
+ <textarea id="${this.description_widget_id}" class="form-control" rows="1"></textarea>
107
+ <label>Description</label>
108
+ </div>
109
+ <!-- temperature -->
110
+ <div id="${this.temperature_widget_id}" class="row mb-0"">
111
+ </div>
112
+ <!-- top_p -->
113
+ <div id="${this.top_p_widget_id}" class="row mb-0"">
114
+ </div>
115
+ <!-- max output tokens -->
116
+ <div id="${this.max_output_tokens_widget_id}" class="row mb-2">
117
+ </div>
118
+ <!-- max history messages token -->
119
+ </div>
120
  </div>
121
  <div class="modal-footer justify-content-end">
122
  <button id="${this.save_button_id}" class="btn btn-success">Save</button>