@@ -215,50 +215,50 @@ export default {
215215 } ,
216216 } ,
217217 } ) ,
218- // new AdminForthAgent({
219- // audioAdapter: new OpenAIAudioAdapter({
220- // apiKey: process.env.OPENAI_API_KEY,
221- // }),
222- // placeholderMessages: async ({ adminUser, httpExtra }) => {
223- // return [
224- // "What is a cars count in SQLite",
225- // "Build average car price by days chart in SQLite",
226- // ]
227- // },
228- // modes: [
229- // {
230- // name: 'Balanced',
231- // completionAdapter: createAgentCompletionAdapter('gpt-5.4-mini', 'medium'),
232- // },
233- // {
234- // name: 'Fast',
235- // completionAdapter: createAgentCompletionAdapter('gpt-5.4-mini', 'low'),
236- // },
237- // {
238- // name: 'Smart Thinking',
239- // completionAdapter: createAgentCompletionAdapter('gpt-5.4', 'xhigh'),
240- // },
241- // ],
242- // maxTokens: 10000,
243- // reasoning: 'none',
244- // sessionResource: {
245- // resourceId: 'sessions',
246- // idField: 'id',
247- // titleField: 'title',
248- // turnsField: 'turns',
249- // askerIdField: 'asker_id',
250- // createdAtField: 'created_at',
251- // },
252- // turnResource: {
253- // resourceId: 'turns',
254- // idField: 'id',
255- // sessionIdField: 'session_id',
256- // createdAtField: 'created_at',
257- // promptField: 'prompt',
258- // responseField: 'response',
259- // debugField: 'dubbug',
260- // },
261- // }),
218+ new AdminForthAgent ( {
219+ audioAdapter : new OpenAIAudioAdapter ( {
220+ apiKey : process . env . OPENAI_API_KEY ,
221+ } ) ,
222+ placeholderMessages : async ( { adminUser, httpExtra } ) => {
223+ return [
224+ "What is a cars count in SQLite" ,
225+ "Build average car price by days chart in SQLite" ,
226+ ]
227+ } ,
228+ modes : [
229+ {
230+ name : 'Balanced' ,
231+ completionAdapter : createAgentCompletionAdapter ( 'gpt-5.4-mini' , 'medium' ) ,
232+ } ,
233+ {
234+ name : 'Fast' ,
235+ completionAdapter : createAgentCompletionAdapter ( 'gpt-5.4-mini' , 'low' ) ,
236+ } ,
237+ {
238+ name : 'Smart Thinking' ,
239+ completionAdapter : createAgentCompletionAdapter ( 'gpt-5.4' , 'xhigh' ) ,
240+ } ,
241+ ] ,
242+ maxTokens : 10000 ,
243+ reasoning : 'none' ,
244+ sessionResource : {
245+ resourceId : 'sessions' ,
246+ idField : 'id' ,
247+ titleField : 'title' ,
248+ turnsField : 'turns' ,
249+ askerIdField : 'asker_id' ,
250+ createdAtField : 'created_at' ,
251+ } ,
252+ turnResource : {
253+ resourceId : 'turns' ,
254+ idField : 'id' ,
255+ sessionIdField : 'session_id' ,
256+ createdAtField : 'created_at' ,
257+ promptField : 'prompt' ,
258+ responseField : 'response' ,
259+ debugField : 'dubbug' ,
260+ } ,
261+ } ) ,
262262 ] ,
263263 hooks : {
264264 create : {
0 commit comments