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