fix: Fix poem extraction from AI response

Refs: OPS-64
This commit is contained in:
Alivecow 2025-03-21 14:13:14 +01:00
parent 308a2cf981
commit 3168b250e0
2 changed files with 4 additions and 1 deletions

View file

@ -39,7 +39,7 @@ class Haiku:
lines = ai_response.split("\n")
for _ in range(0, 2):
while len(lines) != 3:
lines.pop()
logging.warning(lines)