feat(api): change default aspect ratio from 1:1 to 16:9

Update default aspect ratio for image generation to 16:9 widescreen
format, matching common display resolutions and user expectations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Oleg Proskurin 2026-01-01 16:32:18 +07:00
parent ef47653296
commit 3d18fcfeb5
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export class ImageGenService {
// Use default values if not provided // Use default values if not provided
const finalOrgSlug = orgSlug || process.env['DEFAULT_ORG_SLUG'] || 'default'; const finalOrgSlug = orgSlug || process.env['DEFAULT_ORG_SLUG'] || 'default';
const finalProjectSlug = projectSlug || process.env['DEFAULT_PROJECT_SLUG'] || 'main'; const finalProjectSlug = projectSlug || process.env['DEFAULT_PROJECT_SLUG'] || 'main';
const finalAspectRatio = aspectRatio || '1:1'; // Default to square const finalAspectRatio = aspectRatio || '16:9'; // Default to widescreen
// Step 1: Generate image from Gemini AI // Step 1: Generate image from Gemini AI
let generatedData: GeneratedImageData; let generatedData: GeneratedImageData;

View File

@ -39,7 +39,7 @@ export const IMAGE_LIMITS = {
export const GENERATION_LIMITS = { export const GENERATION_LIMITS = {
MAX_PROMPT_LENGTH: 5000, MAX_PROMPT_LENGTH: 5000,
MAX_RETRY_COUNT: 3, MAX_RETRY_COUNT: 3,
DEFAULT_ASPECT_RATIO: '1:1', DEFAULT_ASPECT_RATIO: '16:9',
ALLOWED_ASPECT_RATIOS: ['1:1', '16:9', '9:16', '3:2', '2:3', '4:3', '3:4'] as const, ALLOWED_ASPECT_RATIOS: ['1:1', '16:9', '9:16', '3:2', '2:3', '4:3', '3:4'] as const,
} as const; } as const;