mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
fix: Fix poem extraction from AI response
Refs: OPS-64
This commit is contained in:
parent
308a2cf981
commit
3168b250e0
2 changed files with 4 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -174,3 +174,6 @@ pyrightconfig.json
|
||||||
|
|
||||||
# Ollama Local Dir
|
# Ollama Local Dir
|
||||||
ollama
|
ollama
|
||||||
|
|
||||||
|
# Yes i know
|
||||||
|
*.kate-swp
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class Haiku:
|
||||||
|
|
||||||
lines = ai_response.split("\n")
|
lines = ai_response.split("\n")
|
||||||
|
|
||||||
for _ in range(0, 2):
|
while len(lines) != 3:
|
||||||
lines.pop()
|
lines.pop()
|
||||||
|
|
||||||
logging.warning(lines)
|
logging.warning(lines)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue