Titellänge nun parametrisierbar

This commit is contained in:
2026-04-22 09:53:03 +02:00
parent 088fd85572
commit 8286d0f0e5
74 changed files with 1450 additions and 236 deletions
@@ -349,17 +349,19 @@ public class BootstrapRunner {
new DocumentProcessingCoordinator(documentRecordRepository, processingAttemptRepository,
unitOfWorkPort, targetFolderPort, targetFileCopyPort, coordinatorLogger,
startConfig.maxRetriesTransient(),
startConfig.maxTitleLength(),
activeFamily.getIdentifier());
PromptPort promptPort = new FilesystemPromptPortAdapter(startConfig.promptTemplateFile());
ClockPort clockPort = new SystemClockAdapter();
AiResponseValidator aiResponseValidator = new AiResponseValidator(clockPort);
AiResponseValidator aiResponseValidator = new AiResponseValidator(clockPort, startConfig.maxTitleLength());
AiNamingService aiNamingService = new AiNamingService(
aiInvocationPort,
promptPort,
aiResponseValidator,
providerConfig.model(),
startConfig.maxTextCharacters());
startConfig.maxTextCharacters(),
startConfig.maxTitleLength());
ProcessingLogger useCaseLogger = new Log4jProcessingLogger(
DefaultBatchRunProcessingUseCase.class, aiContentSensitivity);
@@ -51,6 +51,7 @@ import de.gecheckt.pdf.umbenenner.application.config.provider.AiProviderFamily;
* max.retries.transient=...
* max.pages=...
* max.text.characters=...
* max.title.length=...
* prompt.template.file=...
* # Logging
* log.ai.sensitive=...
@@ -200,6 +201,7 @@ public final class GuiConfigurationPropertiesWriter implements GuiConfigurationF
appendKeyValue(sb, "max.retries.transient", values.maxRetriesTransient());
appendKeyValue(sb, "max.pages", values.maxPages());
appendKeyValue(sb, "max.text.characters", values.maxTextCharacters());
appendKeyValue(sb, "max.title.length", values.maxTitleLength());
appendKeyValue(sb, "prompt.template.file", values.promptTemplateFile());
appendLine(sb, "");