refactor: Change model back to phi

Refs: OPS-12
This commit is contained in:
Alivecow 2025-03-17 16:43:04 +01:00
parent aeb3875564
commit f7a7eeb3c7
2 changed files with 10 additions and 11 deletions

View file

@ -39,15 +39,14 @@ class Haiku:
lines = ai_response.split("\n")
for line in lines:
if len(line.split(" ")) > 8 or line == "\n" or line == " ":
lines.remove(line)
for _ in range(0, 2):
lines.pop()
logging.warning(lines)
if len(lines) != 3:
continue
logging.warning(lines)
haiku = Haiku(
[
lines[0],