From 634a4fa154b2d9d41be2512695b5c6327d671b26 Mon Sep 17 00:00:00 2001 From: davegilligan Date: Wed, 13 May 2026 07:41:41 +0200 Subject: [PATCH] Raise MAX_PASTE_CHARS to 128K and redaction max_tokens to 8000 --- includes/LegalTools.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/LegalTools.php b/includes/LegalTools.php index 62b237c..5b21410 100644 --- a/includes/LegalTools.php +++ b/includes/LegalTools.php @@ -6,7 +6,7 @@ require_once __DIR__ . '/AzureOpenAiGateway.php'; final class DbnLegalToolsService { - private const MAX_PASTE_CHARS = 32000; + private const MAX_PASTE_CHARS = 128000; private DbnAzureOpenAiGateway $azure; @@ -841,7 +841,7 @@ PROMPT; ['role' => 'user', 'content' => $preRedacted], ], [ 'temperature' => 0.1, - 'max_tokens' => 4000, + 'max_tokens' => 8000, 'json' => true, 'timeout' => 90, ]);