Titellänge nun parametrisierbar
This commit is contained in:
+4
-2
@@ -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);
|
||||
|
||||
+2
@@ -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, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user