Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit a5708a1

Browse files
feat: adjust LLM parameters and add project name preservation rule for logo generation
1 parent 3b1d992 commit a5708a1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

api/services/BandIdentity/branding.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ export class BrandingService extends GenericService {
439439
provider: LLMProvider.GEMINI,
440440
modelName: "gemini-2.0-flash",
441441
llmOptions: {
442-
maxOutputTokens: 5000,
443-
temperature: 0.7,
442+
maxOutputTokens: 3500,
443+
temperature: 0.1,
444444
topP: 0.9,
445-
topK: 40,
445+
topK: 50,
446446
},
447447
});
448448
const colorsResult: ISectionResult = sectionResults[0];
@@ -627,7 +627,7 @@ export class BrandingService extends GenericService {
627627
{
628628
promptConstant: optimizedPrompt,
629629
stepName: `Logo Concept ${conceptIndex + 1}`,
630-
maxOutputTokens: 2000,
630+
maxOutputTokens: 3500,
631631
modelParser: (content) => {
632632
try {
633633
// Parse JSON response containing SVG

api/services/BandIdentity/prompts/singleGenerations/00_logo-generation-section.prompt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ LAYOUT INTELLIGENCE:
4343
- Adjust viewBox dimensions accordingly: horizontal=200x80, vertical=120x120
4444
- Ensure no overlapping between icon and text elements
4545
- Maintain professional spacing and visual balance
46+
- don't change project name. take it from the project description that is provided to you
4647
4748
SVG STRUCTURE EXAMPLE:
4849
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 80" width="200" height="80">

0 commit comments

Comments
 (0)