-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathoptionsform.lfm
307 lines (307 loc) · 7.17 KB
/
optionsform.lfm
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
object Settings: TSettings
Left = 2913
Height = 394
Top = 619
Width = 444
BorderStyle = bsDialog
Caption = 'Options'
ClientHeight = 394
ClientWidth = 444
FormStyle = fsSystemStayOnTop
OnCreate = FormCreate
OnShow = FormCreate
Position = poMainFormCenter
LCLVersion = '3.0.0.1'
object PageControl1: TPageControl
Left = 0
Height = 344
Top = 8
Width = 438
ActivePage = TabSheet3
TabIndex = 1
TabOrder = 0
object TabSheet1: TTabSheet
Caption = 'Common'
ClientHeight = 313
ClientWidth = 428
object GroupBox1: TGroupBox
Left = 0
Height = 80
Top = 8
Width = 416
Caption = 'Basic'
ClientHeight = 62
ClientWidth = 414
TabOrder = 0
object CheckBoxAutosave: TCheckBox
Left = 137
Height = 23
Top = 16
Width = 127
Caption = 'Autosave chats'
TabOrder = 0
end
end
object GroupBox2: TGroupBox
Left = 0
Height = 153
Top = 120
Width = 416
Caption = 'Generation Parameters'
ClientHeight = 135
ClientWidth = 414
TabOrder = 1
object LabeledEditTemperature: TLabeledEdit
Left = 96
Height = 34
Top = 16
Width = 115
EditLabel.Height = 17
EditLabel.Width = 87
EditLabel.Caption = 'Temperature'
LabelPosition = lpLeft
TabOrder = 0
Text = '1.0'
end
object LabeledEditK: TLabeledEdit
Left = 280
Height = 34
Top = 16
Width = 115
EditLabel.Height = 17
EditLabel.Width = 41
EditLabel.Caption = 'Top_K'
LabelPosition = lpLeft
TabOrder = 1
Text = '40'
end
object LabeledEditP: TLabeledEdit
Left = 280
Height = 34
Top = 72
Width = 115
EditLabel.Height = 17
EditLabel.Width = 41
EditLabel.Caption = 'Top_P'
LabelPosition = lpLeft
TabOrder = 2
Text = '0.95'
end
object LabeledEditMaxLen: TLabeledEdit
Left = 96
Height = 34
Top = 72
Width = 115
EditLabel.Height = 17
EditLabel.Width = 58
EditLabel.Caption = 'Max_Len'
LabelPosition = lpLeft
TabOrder = 3
Text = '1024'
end
end
end
object TabSheet3: TTabSheet
Caption = 'Local AI'
ClientHeight = 313
ClientWidth = 428
object ComboBoxThreads: TComboBox
Left = 184
Height = 34
Top = 24
Width = 100
ItemHeight = 0
Items.Strings = (
'1'
'2'
'4'
'6'
'8'
'10'
'16'
'24'
)
ReadOnly = True
TabOrder = 0
Text = '4'
end
object Label3: TLabel
Left = 88
Height = 17
Top = 32
Width = 89
Caption = 'CPU Threads:'
end
object GroupBox3: TGroupBox
Left = 16
Height = 186
Top = 72
Width = 392
Caption = 'GPU Support'
ClientHeight = 168
ClientWidth = 390
TabOrder = 1
object CheckBoxGPUOffloadCache: TCheckBox
Left = 141
Height = 23
Top = 112
Width = 171
Caption = 'Offload Cache to GPU'
Checked = True
Enabled = False
State = cbChecked
TabOrder = 0
end
object ComboBoxGPULayers: TComboBox
Left = 141
Height = 34
Top = 56
Width = 192
Enabled = False
ItemHeight = 0
ItemIndex = 16
Items.Strings = (
'1'
'2'
'4'
'6'
'8'
'10'
'16'
'24'
'32'
'48'
'64'
'96'
'128'
'256'
'384'
'512'
'1024'
'2048'
)
ReadOnly = True
TabOrder = 1
Text = '1024'
end
object LabelGPU: TLabel
Left = 56
Height = 17
Top = 64
Width = 71
Caption = 'GPU layers'
Enabled = False
end
object CheckBoxGPU: TCheckBox
Left = 136
Height = 23
Top = 16
Width = 103
Caption = 'Enable GPU'
OnChange = CheckBoxGPUChange
TabOrder = 2
end
end
end
object TabSheet2: TTabSheet
Caption = 'ChatGPT API'
ClientHeight = 313
ClientWidth = 428
object Label4: TLabel
Left = 16
Height = 17
Top = 96
Width = 102
Caption = 'Custom Model:'
end
object ComboBoxModels: TComboBox
Left = 120
Height = 34
Top = 88
Width = 288
ItemHeight = 0
Items.Strings = (
'gpt-3.5-turbo-16k'
'gpt-4-0613'
'gpt-4-1106-preview'
)
ReadOnly = True
TabOrder = 0
Text = 'text-davinci-002'
end
object LabeledEditApiKey: TLabeledEdit
Left = 120
Height = 34
Top = 24
Width = 288
EditLabel.Height = 17
EditLabel.Width = 54
EditLabel.Caption = 'API Key:'
LabelPosition = lpLeft
TabOrder = 1
end
end
object TabSheet4: TTabSheet
Caption = 'Custom Personality'
ClientHeight = 313
ClientWidth = 428
object EditPromptPersonalityName: TEdit
Left = 120
Height = 34
Top = 8
Width = 296
TabOrder = 0
Text = 'Rick'
end
object Label1: TLabel
Left = 54
Height = 17
Top = 16
Width = 44
Caption = 'Name:'
end
object Label2: TLabel
Left = 16
Height = 17
Top = 72
Width = 82
Caption = 'Description:'
end
object MemoPersonalityDescription: TMemo
Left = 120
Height = 224
Top = 72
Width = 294
Lines.Strings = (
'A chat between a Morty and Rick Sanchez from Rick&Morty. Rick is a cynical, alcoholic, and borderline sociopathic mad scientist. He often embarks on interdimensional adventures, Rick is a genius inventor capable of creating advanced technology far beyond Earth''s comprehension. His catchphrase, “Wubba Lubba Dub-Dub,” roughly translates to “I am in great pain please help me” in alienese. He answers always with existential and nihilistic demeanor.'
)
TabOrder = 1
end
end
end
object BitBtnOK: TBitBtn
Left = 72
Height = 30
Top = 358
Width = 91
Anchors = [akLeft, akBottom]
Default = True
DefaultCaption = True
Kind = bkOK
ModalResult = 1
OnClick = BitBtnOKClick
TabOrder = 1
end
object BitBtnCancel: TBitBtn
Left = 256
Height = 30
Top = 358
Width = 96
Anchors = [akLeft, akBottom]
Cancel = True
DefaultCaption = True
Kind = bkCancel
ModalResult = 2
TabOrder = 2
end
end