@@ -17,7 +17,7 @@ import type { ModelSettings, SettingModel } from "../utils/types";
17
17
import LanguageCombobox from "./LanguageCombobox" ;
18
18
import clsx from "clsx" ;
19
19
import { AUTOMATIC_MODE , PAUSE_MODE } from "../types/agentTypes" ;
20
- import { useAgentStore } from "../components /stores" ;
20
+ import { useAgentStore } from "./stores" ;
21
21
import { useTranslation } from "next-i18next" ;
22
22
23
23
export const SettingsDialog : React . FC < {
@@ -172,7 +172,6 @@ export const SettingsDialog: React.FC<{
172
172
} ) } `} </ Button >
173
173
</ >
174
174
}
175
- contentClassName = "text-md relative flex flex-col gap-2 p-2 leading-relaxed"
176
175
>
177
176
< p >
178
177
Get your own OpenAI API key{ " " }
@@ -213,56 +212,58 @@ export const SettingsDialog: React.FC<{
213
212
</ b >
214
213
</ p >
215
214
) }
216
- < Input
217
- left = {
218
- < >
219
- < FaKey />
220
- < span className = "ml-2" > { `${ t ( "API_KEY" , {
221
- ns : "settings" ,
222
- } ) } `} </ span >
223
- </ >
224
- }
225
- placeholder = { "sk-..." }
226
- type = "password"
227
- value = { settings . customApiKey }
228
- onChange = { ( e ) => updateSettings ( "customApiKey" , e . target . value ) }
229
- />
230
- < LanguageCombobox />
231
- < Input
232
- left = {
233
- < >
234
- < FaMicrochip />
235
- < span className = "ml-2" > { `${ t ( "LABEL_MODEL" , {
236
- ns : "settings" ,
237
- } ) } `} </ span >
238
- </ >
239
- }
240
- type = "combobox"
241
- value = { settings . customModelName }
242
- onChange = { ( ) => null }
243
- setValue = { ( e ) => updateSettings ( "customModelName" , e ) }
244
- attributes = { { options : GPT_MODEL_NAMES } }
245
- disabled = { disabled }
246
- />
247
- < Input
248
- left = {
249
- < >
250
- < FaTachometerAlt />
251
- < span className = "ml-2" > Mode: </ span >
252
- </ >
253
- }
254
- value = { agentMode }
255
- disabled = { agent !== null }
256
- onChange = { ( ) => null }
257
- setValue = { updateAgentMode as ( agentMode : string ) => void }
258
- type = "combobox"
259
- toolTipProperties = { {
260
- message : `${ AUTOMATIC_MODE } (Default): Agent automatically executes every task. \n\n${ PAUSE_MODE } : Agent pauses after every set of task(s)` ,
261
- disabled : false ,
262
- } }
263
- attributes = { { options : [ AUTOMATIC_MODE , PAUSE_MODE ] } }
264
- />
265
- < Accordion child = { advancedSettings } name = { t ( "Advanced Settings" ) } />
215
+ < div className = "mt-2 flex flex-col gap-2" >
216
+ < Input
217
+ left = {
218
+ < >
219
+ < FaKey />
220
+ < span className = "ml-2" > { `${ t ( "API_KEY" , {
221
+ ns : "settings" ,
222
+ } ) } `} </ span >
223
+ </ >
224
+ }
225
+ placeholder = { "sk-..." }
226
+ type = "password"
227
+ value = { settings . customApiKey }
228
+ onChange = { ( e ) => updateSettings ( "customApiKey" , e . target . value ) }
229
+ />
230
+ < LanguageCombobox />
231
+ < Input
232
+ left = {
233
+ < >
234
+ < FaMicrochip />
235
+ < span className = "ml-2" > { `${ t ( "LABEL_MODEL" , {
236
+ ns : "settings" ,
237
+ } ) } `} </ span >
238
+ </ >
239
+ }
240
+ type = "combobox"
241
+ value = { settings . customModelName }
242
+ onChange = { ( ) => null }
243
+ setValue = { ( e ) => updateSettings ( "customModelName" , e ) }
244
+ attributes = { { options : GPT_MODEL_NAMES } }
245
+ disabled = { disabled }
246
+ />
247
+ < Input
248
+ left = {
249
+ < >
250
+ < FaTachometerAlt />
251
+ < span className = "ml-2" > Mode: </ span >
252
+ </ >
253
+ }
254
+ value = { agentMode }
255
+ disabled = { agent !== null }
256
+ onChange = { ( ) => null }
257
+ setValue = { updateAgentMode as ( agentMode : string ) => void }
258
+ type = "combobox"
259
+ toolTipProperties = { {
260
+ message : `${ AUTOMATIC_MODE } (Default): Agent automatically executes every task. \n\n${ PAUSE_MODE } : Agent pauses after every set of task(s)` ,
261
+ disabled : false ,
262
+ } }
263
+ attributes = { { options : [ AUTOMATIC_MODE , PAUSE_MODE ] } }
264
+ />
265
+ < Accordion child = { advancedSettings } name = { t ( "Advanced Settings" ) } />
266
+ </ div >
266
267
</ Dialog >
267
268
) ;
268
269
} ;
0 commit comments