Skip to content
Merged

Dev #36

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions apps/api/api/services/BandIdentity/branding.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,18 @@ import { PdfService } from '../pdf.service';
import { cacheService } from '../cache.service';
import crypto from 'crypto';
import { projectService } from '../project.service';
import { LogoJsonToSvgService } from './logoJsonToSvg.service';
import { SvgOptimizerService } from './svgOptimizer.service';

export class BrandingService extends GenericService {
private pdfService: PdfService;
private logoJsonToSvgService: LogoJsonToSvgService;

// Configuration LLM pour la génération de logos et variations
// Temperature modérée pour équilibrer créativité et cohérence
private static readonly LOGO_LLM_CONFIG = {
provider: LLMProvider.GEMINI,
modelName: 'gemini-2.0-flash',
modelName: 'gemini-3-flash-preview',
llmOptions: {
maxOutputTokens: 3500,
maxOutputTokens: 500,
temperature: 0.4, // Équilibre entre créativité et cohérence
topP: 0.9,
topK: 55,
Expand Down Expand Up @@ -73,7 +71,6 @@ export class BrandingService extends GenericService {
constructor(promptService: PromptService) {
super(promptService);
this.pdfService = new PdfService();
this.logoJsonToSvgService = new LogoJsonToSvgService();
logger.info('BrandingService initialized with optimized logo generation');
}

Expand Down Expand Up @@ -1744,7 +1741,7 @@ export class BrandingService extends GenericService {
*/
private generateReadmeContent(project: any, extension: string, fileCount: number): string {
return `Logo Package - ${project.name}

Project: ${project.name}
Description: ${project.description || 'No description available'}
Format: ${extension.toUpperCase()}
Expand Down Expand Up @@ -1775,7 +1772,7 @@ Features:

Variations:
- light-background: Optimized for light backgrounds
- dark-background: Optimized for dark backgrounds
- dark-background: Optimized for dark backgrounds
- monochrome: Single color version

${
Expand Down
136 changes: 0 additions & 136 deletions apps/api/api/services/BandIdentity/svgIconExtractor.service.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/api/api/services/BusinessPlan/businessPlan.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class BusinessPlanService extends GenericService {
];
const promptConfig: PromptConfig = {
provider: LLMProvider.GEMINI,
modelName: 'gemini-2.5-flash',
modelName: 'gemini-3-flash-preview',
};

// Initialize empty sections array to collect results as they come in
Expand Down
4 changes: 2 additions & 2 deletions apps/api/api/services/Deployment/deployment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ Please provide only the terraform.tfvars file content as output.`;
// Use AI to generate the tfvars content
const promptConfig: PromptConfig = {
provider: LLMProvider.GEMINI,
modelName: 'gemini-2.5-flash',
modelName: 'gemini-3-flash-preview',
llmOptions: {
temperature: 0.3,
maxOutputTokens: 4000,
Expand Down Expand Up @@ -1140,7 +1140,7 @@ Please provide only the terraform.tfvars file content as output.`;
const aiResponse = await this.promptService.runPrompt(
{
provider: LLMProvider.GEMINI,
modelName: 'gemini-2.5-flash',
modelName: 'gemini-3-flash-preview',
llmOptions: {
temperature: 0.7,
maxOutputTokens: 1024,
Expand Down
2 changes: 1 addition & 1 deletion apps/api/api/services/common/generic.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class GenericService {
contextFromPreviousSteps: string = '',
promptConfig: PromptConfig = {
provider: LLMProvider.GEMINI,
modelName: 'gemini-2.5-flash',
modelName: 'gemini-3-flash-preview',
userId,
promptType: promptType || step.stepName,
}
Expand Down
40 changes: 4 additions & 36 deletions apps/appgen/apps/we-dev-next/src/app/api/model/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,13 @@ interface ModelConfig {
// Default model configurations
const defaultModelConfigs: ModelConfig[] = [
{
modelName: 'gemini-2.5-flash',
modelKey: 'gemini-2.5-flash',
modelName: 'gemini-3-flash-preview',
modelKey: 'gemini-3-flash-preview',
useImage: true,
provider: 'gemini',
description: 'Gemini 2.5 Flash model',
description: 'Gemini 3 Flash model',
functionCall: true,
},
{
modelName: 'claude-3-5-sonnet',
modelKey: 'claude-3-5-sonnet-20240620',
useImage: true,
provider: 'claude',
description: 'Claude 3.5 Sonnet model',
functionCall: true,
},
{
modelName: 'gpt-4o-mini',
modelKey: 'gpt-4o-mini',
useImage: false,
provider: 'openai',
description: 'GPT-4 Optimized Mini model',
functionCall: true,
},
{
modelName: 'deepseek-R1',
modelKey: 'deepseek-reasoner',
useImage: false,
provider: 'deepseek',
description: 'Deepseek R1 model with reasoning and chain-of-thought capabilities',
functionCall: false,
},
{
modelName: 'deepseek-v3',
modelKey: 'deepseek-chat',
useImage: false,
provider: 'deepseek',
description: 'Deepseek V3 model',
functionCall: true,
},
}
];

// Function to parse model configurations from environment variable
Expand Down
26 changes: 22 additions & 4 deletions apps/main-dashboard/public/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@
"buttons": {
"generate": "Generate Variations",
"clickToSelect": "Click to select",
"proceed": "Proceed with selection"
"proceed": "Proceed with selection",
"retry": "Retry",
"continueToSummary": "Continue to Summary"
},
"estimatedTime": "Estimated time: {{time}}",
"generating": {
Expand All @@ -385,7 +387,9 @@
},
"success": {
"title": "Logo Variations",
"subtitle": "Select the variations you want to keep for your project."
"subtitle": "Select the variations you want to keep for your project.",
"completed": "Variations Generated Successfully!",
"reviewAndProceed": "Review your variations and proceed when ready."
},
"categories": {
"withText": "With Text",
Expand All @@ -397,15 +401,29 @@
"withTextMonochrome": "With Text - Monochrome",
"iconOnlyLight": "Icon Only - Light Background",
"iconOnlyDark": "Icon Only - Dark Background",
"iconOnlyMonochrome": "Icon Only - Monochrome"
"iconOnlyMonochrome": "Icon Only - Monochrome",
"lightBackground": "Light Background",
"darkBackground": "Dark Background",
"monochrome": "Monochrome"
},
"descriptions": {
"withTextLight": "Full logo optimized for light backgrounds",
"withTextDark": "Full logo optimized for dark backgrounds",
"withTextMonochrome": "Full logo in monochrome version",
"iconOnlyLight": "Icon only optimized for light backgrounds",
"iconOnlyDark": "Icon only optimized for dark backgrounds",
"iconOnlyMonochrome": "Icon only in monochrome version"
"iconOnlyMonochrome": "Icon only in monochrome version",
"lightBackground": "Optimized for white and light backgrounds",
"darkBackground": "Optimized for dark and modern backgrounds",
"monochrome": "Version in black and white for all uses"
},
"status": {
"generated": "Generated",
"processing": "Processing variations...",
"preparingNext": "Preparing next step...",
"allGenerated": "All variations generated successfully!",
"readyToProceed": "Ready to proceed to the next step.",
"advancing": "Advancing to next step..."
},
"selectionsMade": "{{count}} selection(s) made"
},
Expand Down
26 changes: 22 additions & 4 deletions apps/main-dashboard/public/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@
"buttons": {
"generate": "Générer les variations",
"clickToSelect": "Cliquez pour sélectionner",
"proceed": "Continuer avec la sélection"
"proceed": "Continuer avec la sélection",
"retry": "Réessayer",
"continueToSummary": "Continuer vers le résumé"
},
"estimatedTime": "Temps estimé : {{time}}",
"generating": {
Expand All @@ -385,7 +387,9 @@
},
"success": {
"title": "Variations du logo",
"subtitle": "Sélectionnez les variations que vous souhaitez conserver pour votre projet."
"subtitle": "Sélectionnez les variations que vous souhaitez conserver pour votre projet.",
"completed": "Variations générées avec succès !",
"reviewAndProceed": "Examinez vos variations et continuez quand vous êtes prêt."
},
"categories": {
"withText": "Avec texte",
Expand All @@ -397,15 +401,29 @@
"withTextMonochrome": "Avec texte - Monochrome",
"iconOnlyLight": "Icône uniquement - Fond clair",
"iconOnlyDark": "Icône uniquement - Fond sombre",
"iconOnlyMonochrome": "Icône uniquement - Monochrome"
"iconOnlyMonochrome": "Icône uniquement - Monochrome",
"lightBackground": "Fond clair",
"darkBackground": "Fond sombre",
"monochrome": "Monochrome"
},
"descriptions": {
"withTextLight": "Logo complet optimisé pour les fonds clairs",
"withTextDark": "Logo complet optimisé pour les fonds sombres",
"withTextMonochrome": "Logo complet en version monochrome",
"iconOnlyLight": "Icône uniquement optimisée pour les fonds clairs",
"iconOnlyDark": "Icône uniquement optimisée pour les fonds sombres",
"iconOnlyMonochrome": "Icône uniquement en version monochrome"
"iconOnlyMonochrome": "Icône uniquement en version monochrome",
"lightBackground": "Optimisé pour les fonds blancs et clairs",
"darkBackground": "Optimisé pour les fonds sombres et modernes",
"monochrome": "Version en noir et blanc pour toutes les utilisations"
},
"status": {
"generated": "Généré",
"processing": "Traitement des variations...",
"preparingNext": "Préparation de l'étape suivante...",
"allGenerated": "Toutes les variations générées avec succès !",
"readyToProceed": "Prêt à passer à l'étape suivante.",
"advancing": "Passage à l'étape suivante..."
},
"selectionsMade": "{{count}} sélection(s) faite(s)"
},
Expand Down
Loading