@@ -15,6 +15,7 @@ import MarkdownPlugin from '../../../plugins/adminforth-markdown/index.js';
1515import QuickFiltersPlugin from '../../../plugins/adminforth-quick-filters/index.js' ;
1616import Many2ManyPlugin from '../../../plugins/adminforth-many2many/index.js' ;
1717import JSONFormPlugin from '../../../plugins/adminforth-json-form/index.js'
18+ import CloneRowPlugin from '../../../plugins/adminforth-clone-row/index.js' ;
1819
1920import CompletionAdapterOpenAIResponses from '../../../adapters/adminforth-completion-adapter-openai-responses/index.js' ;
2021import CompletionAdapterGoogleGemini from '../../../adapters/adminforth-completion-adapter-google-gemini/index.js' ;
@@ -261,7 +262,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
261262 completion : {
262263 adapter : new CompletionAdapterOpenAIResponses ( {
263264 openAiApiKey : process . env . OPENAI_API_KEY as string ,
264- model : 'gpt-5-mini ' ,
265+ model : 'gpt-6-luna ' ,
265266 } ) ,
266267 expert : {
267268 debounceTime : 250 ,
@@ -282,6 +283,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
282283 new ListInPlaceEditPlugin ( {
283284 columns : [ "model" , "engine_type" , "price" ] ,
284285 } ) ,
286+ new CloneRowPlugin ( { } ) ,
285287 new ForeignInlineShowPlugin ( {
286288 foreignResourceId : 'adminuser' ,
287289 } ) ,
@@ -364,7 +366,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
364366 countToGenerate : 2 ,
365367 adapter : new ImageGenerationAdapterOpenAI ( {
366368 openAiApiKey : process . env . OPENAI_API_KEY as string ,
367- model : 'gpt-image-1' ,
369+ model : 'gpt-image-2.5-flare' ,
368370 } ) ,
369371 attachFiles : async ( { record } ) => {
370372 if ( ! record . promo_picture ) {
@@ -380,7 +382,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
380382 fieldName : 'model' ,
381383 adapter : new CompletionAdapterOpenAIResponses ( {
382384 openAiApiKey : process . env . OPENAI_API_KEY as string ,
383- model : 'gpt-5-nano ' ,
385+ model : 'gpt-6-luna ' ,
384386 extraRequestBodyParameters : {
385387 temperature : 1
386388 }
@@ -391,7 +393,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
391393 askConfirmationBeforeGenerating : true ,
392394 textCompleteAdapter : new CompletionAdapterOpenAIResponses ( {
393395 openAiApiKey : process . env . OPENAI_API_KEY as string ,
394- model : " gpt-5-mini" ,
396+ model : ' gpt-6-luna' ,
395397 extraRequestBodyParameters : {
396398 temperature : 1 ,
397399 } ,
@@ -411,7 +413,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
411413 askConfirmationBeforeGenerating : true ,
412414 visionAdapter : new AdminForthImageVisionAdapterOpenAi ( {
413415 openAiApiKey : process . env . OPENAI_API_KEY as string ,
414- model : 'gpt-5-mini ' ,
416+ model : 'gpt-6-luna ' ,
415417 } ) ,
416418 fillFieldsFromImages : {
417419 body_type : "What is the body type of the car shown in the image?" ,
@@ -435,7 +437,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
435437 askConfirmationBeforeGenerating : true ,
436438 imageGenerationAdapter : new ImageGenerationAdapterOpenAI ( {
437439 openAiApiKey : process . env . OPENAI_API_KEY as string ,
438- model : 'gpt-image-1 ' ,
440+ model : 'gpt-image-2.5-flare ' ,
439441 } ) ,
440442 generateImages : {
441443 generated_promo_picture : {
0 commit comments