mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
refactor: Change model back to phi
Refs: OPS-12
This commit is contained in:
parent
aeb3875564
commit
f7a7eeb3c7
2 changed files with 10 additions and 11 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue