Skip to content

Commit

Permalink
Merge pull request #10406 from hicommonwealth/ib.fix-image-generation
Browse files Browse the repository at this point in the history
fix: update image generation model to DALL-E 2 and reduce size to 256…
  • Loading branch information
ilijabojanovic authored Dec 20, 2024
2 parents 7af5c1d + 657eabb commit 037f800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libs/model/src/services/openai/generateTokenIdea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const generateTokenIdea = async function* ({
const imageResponse = await openai.images.generate({
prompt: TOKEN_AI_PROMPTS_CONFIG.image(tokenIdea.name, tokenIdea.symbol),
size: '256x256',
model: 'dall-e-2',
n: 1,
response_format: 'url',
});
Expand Down
4 changes: 2 additions & 2 deletions packages/commonwealth/server/routes/generateImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const generateImage = async (
let image;
try {
const response = await openai.images.generate({
model: 'dall-e-3',
model: 'dall-e-2',
n: 1,
prompt: description,
size: '512x512',
size: '256x256',
response_format: 'url',
});

Expand Down

0 comments on commit 037f800

Please sign in to comment.