@@ -4,14 +4,7 @@ import Button from '../../shared/Button'
4
4
import Select from '../../shared/Select'
5
5
import PersonaAttributes , { fromAttrs , toAttrs } from '../../shared/PersonaAttributes'
6
6
import TextInput from '../../shared/TextInput'
7
- import {
8
- chatStore ,
9
- msgStore ,
10
- presetStore ,
11
- scenarioStore ,
12
- settingStore ,
13
- userStore ,
14
- } from '../../store'
7
+ import { chatStore , msgStore , presetStore , scenarioStore , userStore } from '../../store'
15
8
import { FormLabel } from '../../shared/FormLabel'
16
9
import { defaultPresets , isDefaultPreset } from '/common/presets'
17
10
import { Card , TitleCard } from '/web/shared/Card'
@@ -38,7 +31,6 @@ const ChatSettings: Component<{
38
31
close : ( ) => void
39
32
footer : ( children : any ) => void
40
33
} > = ( props ) => {
41
- const cfg = settingStore ( )
42
34
const state = chatStore ( ( s ) => ( { chat : s . active ?. chat , char : s . active ?. char } ) )
43
35
const [ edit , setEdit ] = createStore ( getInitState ( state . chat , state . char ) )
44
36
const user = userStore ( )
@@ -245,29 +237,27 @@ const ChatSettings: Component<{
245
237
</ Card >
246
238
</ Show >
247
239
248
- < Show when = { cfg . flags . debug } >
249
- < Card >
250
- < TextInput
251
- class = "text-sm"
252
- value = { edit ?. name || '' }
253
- onChange = { ( ev ) => setEdit ( 'name' , ev . currentTarget . value ) }
254
- label = {
255
- < >
256
- Chat name{ ' ' }
257
- < div
258
- onClick = { ( ) =>
259
- msgStore . chatQuery ( 'Generate a name for this conversation' , ( msg ) =>
260
- setEdit ( 'name' , msg )
261
- )
262
- }
263
- >
264
- < Wand />
265
- </ div >
266
- </ >
267
- }
268
- />
269
- </ Card >
270
- </ Show >
240
+ < Card >
241
+ < TextInput
242
+ class = "text-sm"
243
+ value = { edit ?. name || '' }
244
+ onChange = { ( ev ) => setEdit ( 'name' , ev . currentTarget . value ) }
245
+ label = {
246
+ < >
247
+ Chat name{ ' ' }
248
+ < div
249
+ onClick = { ( ) =>
250
+ msgStore . chatQuery ( 'Generate a name for this conversation' , ( msg ) =>
251
+ setEdit ( 'name' , msg )
252
+ )
253
+ }
254
+ >
255
+ < Wand />
256
+ </ div >
257
+ </ >
258
+ }
259
+ />
260
+ </ Card >
271
261
272
262
< Card >
273
263
< Toggle
0 commit comments