| 1 | <html> |
| 2 | <head><title>Chat Naming</title></head> |
| 3 | <body> |
| 4 | <div x-data> |
| 5 | <template x-if="config"> |
| 6 | <div> |
| 7 | <div class="section-title">Chat Naming</div> |
| 8 | <div class="section-description"> |
| 9 | Configure automatic names for chats in this project and agent profile. |
| 10 | </div> |
| 11 | |
| 12 | <div class="field"> |
| 13 | <div class="field-label"> |
| 14 | <div class="field-title">Automatic chat naming</div> |
| 15 | <div class="field-description"> |
| 16 | Use the Utility Model to generate names for chats. |
| 17 | </div> |
| 18 | </div> |
| 19 | <div class="field-control"> |
| 20 | <label class="toggle"> |
| 21 | <input type="checkbox" x-model="config.automatic_naming" |
| 22 | x-init="if (config.automatic_naming == null) config.automatic_naming = true"> |
| 23 | <span class="toggler"></span> |
| 24 | </label> |
| 25 | </div> |
| 26 | </div> |
| 27 | |
| 28 | <div class="field" x-show="config.automatic_naming" x-transition> |
| 29 | <div class="field-label"> |
| 30 | <div class="field-title">Automatic naming method</div> |
| 31 | <div class="field-description" x-show="config.automatic_naming_mode === 'once'"> |
| 32 | Rename only when the chat has no name, using its first user message. |
| 33 | </div> |
| 34 | <div class="field-description" x-show="config.automatic_naming_mode === 'always'"> |
| 35 | Refresh the name after every user message so it stays in sync with the conversation. |
| 36 | </div> |
| 37 | </div> |
| 38 | <div class="field-control"> |
| 39 | <select x-model="config.automatic_naming_mode" |
| 40 | x-init="if (!['once', 'always'].includes(config.automatic_naming_mode)) |
| 41 | config.automatic_naming_mode = 'once'"> |
| 42 | <option value="once">Only once</option> |
| 43 | <option value="always">After every user message</option> |
| 44 | </select> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | </template> |
| 49 | </div> |
| 50 | </body> |
| 51 | </html> |