Skip to content

Commit 00d52c2

Browse files
committed
live-demo: update image generation model
AdminForth/1731/security-audit
1 parent 4986c8b commit 00d52c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

live-demo/app/resources/apartments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const apartmentsResource: AdminForthResourceInput = {
209209
countToGenerate: 2,
210210
adapter: new ImageGenerationAdapterOpenAI({
211211
openAiApiKey: process.env.OPENAI_API_KEY as string,
212-
model: "dall-e-3",
212+
model: "gpt-image-2",
213213
}),
214214
outputSize: "1792x1024",
215215
generationPrompt: "Generate an image for apartment with title {{title}}. Make it look like a photo from a real estate listing.",
@@ -259,7 +259,7 @@ const apartmentsResource: AdminForthResourceInput = {
259259
),
260260
imageGenerationAdapter: new ImageGenerationAdapterOpenAI({
261261
openAiApiKey: process.env.OPENAI_API_KEY as string,
262-
model: 'gpt-image-1',
262+
model: 'gpt-image-2',
263263
}),
264264
fillFieldsFromImages: {
265265
'description': 'Describe what is in the image, also take into account that price is {{price}} and title is {{title}}',

0 commit comments

Comments
 (0)