hark130 / jack-in-the-box

Connecting Jackbox games to the OpenAI API
GNU General Public License v3.0
1 stars 0 forks source link

JITB-19: Consider some "strstr" when parsing AI's answer to a fill-in-the-blank prompt #24

Closed hark130 closed 8 months ago

hark130 commented 8 months ago

The AI likes to repeat the fill-in-the-blank precursor in it's answer.

For instance, ANSWERED A terrible idea for a children’s pop-up book: The Adventures of _______ with The Adventures of Booger Man!

Instead, do a strstr() for words preceding the fill-in-the-blank and remove them.

hark130 commented 8 months ago

I have solved this issue, and verified it with unit tests. That being said, I haven't been able to easily replicate the original BUG(?) in functional testing. However, I left a debugging log entry so I can see it when it happens in the future. I hope I remember to source control the example solution.

hark130 commented 8 months ago

Merged