-
Notifications
You must be signed in to change notification settings - Fork 4
/
usetting.lfm
203 lines (203 loc) · 4.58 KB
/
usetting.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
object Frm_Setting: TFrm_Setting
Left = 350
Height = 231
Top = 31
Width = 467
Caption = 'Frm_Setting'
ClientHeight = 231
ClientWidth = 467
KeyPreview = True
OnCreate = FormCreate
OnKeyDown = FormKeyDown
OnShow = FormShow
Position = poScreenCenter
LCLVersion = '2.2.6.0'
object pnlBottom: TPanel
Left = 0
Height = 43
Top = 188
Width = 467
Align = alBottom
BevelOuter = bvLowered
ClientHeight = 43
ClientWidth = 467
TabOrder = 0
object Btn_Default: TButton
Left = 281
Height = 28
Top = 7
Width = 89
Anchors = [akRight, akBottom]
Caption = 'Load Defaults'
OnClick = Btn_DefaultClick
TabOrder = 0
end
object Btn_Save: TButton
Left = 372
Height = 28
Top = 7
Width = 89
Anchors = [akRight, akBottom]
Caption = 'Save && Close'
OnClick = Btn_SaveClick
TabOrder = 1
end
end
object pnlMain: TPanel
Left = 0
Height = 188
Top = 0
Width = 467
Align = alClient
ClientHeight = 188
ClientWidth = 467
TabOrder = 1
object grp_OpenAI: TGroupBox
Left = 1
Height = 184
Top = 1
Width = 465
Align = alTop
Caption = 'OpenAI preferences'
ClientHeight = 164
ClientWidth = 461
TabOrder = 0
object pnlOpenAI: TPanel
Left = 0
Height = 164
Top = 0
Width = 461
Align = alClient
BevelOuter = bvLowered
ClientHeight = 164
ClientWidth = 461
TabOrder = 0
object lbl_1: TLabel
Left = 30
Height = 15
Top = 18
Width = 51
Caption = 'Base URL:'
ParentColor = False
end
object lbl_2: TLabel
Left = 20
Height = 15
Top = 46
Width = 61
Caption = 'Access Key:'
ParentColor = False
end
object lbl_3: TLabel
Left = 44
Height = 15
Top = 75
Width = 37
Caption = 'Model:'
ParentColor = False
end
object lbl_4: TLabel
Left = 19
Height = 15
Top = 104
Width = 62
Caption = 'Max-Token:'
ParentColor = False
end
object lbl_5: TLabel
Left = 12
Height = 15
Top = 135
Width = 69
Caption = 'Temperature:'
ParentColor = False
end
object edt_Url: TEdit
Left = 89
Height = 23
Top = 12
Width = 318
TabOrder = 0
Text = 'https://api.openai.com/v1/completions'
end
object edt_ApiKey: TEdit
Left = 89
Height = 23
Top = 42
Width = 318
EchoMode = emPassword
PasswordChar = '*'
TabOrder = 1
end
object edt_MaxToken: TEdit
Left = 89
Height = 23
Top = 101
Width = 122
NumbersOnly = True
TabOrder = 2
Text = '2048'
end
object edt_Temperature: TEdit
Left = 89
Height = 23
Top = 131
Width = 122
NumbersOnly = True
TabOrder = 3
Text = '0'
end
object cbbModel: TComboBox
Left = 89
Height = 23
Top = 72
Width = 122
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'text-davinci-003'
'text-curie-001'
'text-babbage-001'
'text-ada-001'
'gpt-3.5-turbo'
'gpt-3.5-turbo-0301'
'code-davinci-002'
'text-davinci-002'
'gpt-4'
'gpt-4-32k'
'gpt-4-0314'
)
OnChange = cbbModelChange
Style = csDropDownList
TabOrder = 4
Text = 'text-davinci-003'
end
object chk_AnimatedLetters: TCheckBox
Left = 234
Height = 19
Top = 76
Width = 110
Caption = 'Animated Letters'
Color = clBtnFace
ParentColor = False
TabOrder = 5
end
object edtTimeout: TLabeledEdit
Left = 297
Height = 23
Top = 99
Width = 28
Alignment = taCenter
EditLabel.Height = 15
EditLabel.Width = 57
EditLabel.Caption = 'Timeout(s)'
EditLabel.ParentColor = False
LabelPosition = lpLeft
LabelSpacing = 5
TabOrder = 6
Text = '20'
end
end
end
end
end