fix(config): validate final_tokens > 0 + add replace() revalidates regression test

This commit is contained in:
transcrilive
2026-05-10 02:40:59 +02:00
parent 08ae956986
commit 40bd38c2c5
2 changed files with 18 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ class RSAConfig:
raise ValueError("chunk_tokens must be positive")
if self.tail_tokens <= 0:
raise ValueError("tail_tokens must be positive")
if self.final_tokens is not None and self.final_tokens <= 0:
raise ValueError("final_tokens must be positive when set")
if self.parallel < 1:
raise ValueError("parallel must be >= 1")
if self.rounds < 1: