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-45: Joke Boat edge case BUG #66

Closed hark130 closed 1 month ago

hark130 commented 1 month ago

SCENARIO:

  1. Joke Boat Round 1 (though this could be Round 2)
  2. Choose setup
  3. OpenAI response goes off the rails so an answer is randomly selected
  4. The answer (AKA button) randomly selected is "reset my choices"

The rest is history...

[2024-10-02 16:09:15.439] DEBUGGING - This is a(n) VOTE page!
[2024-10-02 16:09:18.047] INFO      - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
[2024-10-02 16:09:18.053] DEBUGGING - OpenAI followed instructions and god created _______ by was chosen
[2024-10-02 16:09:18.123] DEBUGGING - Chose "god created _______ by" for "Joke 1 (of 2) Choose a joke set-up:"!
[2024-10-02 16:09:18.123] DEBUGGING - JbgJb.vote_answers() called vote_answer(element_name=prompt, element_type=id, vote_clues=['Choose a joke set-up', 'Complete your set-up', 'Pick your favorite joke', 'Pick the joke you want to compete against'], clean_string=True) which returned: Joke 1 (of 2) Choose a joke set-up:
[2024-10-02 16:09:18.861] INFO      - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
[2024-10-02 16:09:18.863] DEBUGGING - OpenAI went crazy with I choose C. so reset my choices was chosen randomly
[2024-10-02 16:09:18.938] DEBUGGING - Chose "reset my choices" for "Joke 1 (of 2) Complete your set-up: god created _______ by"!
[2024-10-02 16:09:18.938] DEBUGGING - JbgJb.vote_answers() called vote_answer(element_name=prompt, element_type=id, vote_clues=['Choose a joke set-up', 'Complete your set-up', 'Pick your favorite joke', 'Pick the joke you want to compete against'], clean_string=True) which returned: Joke 1 (of 2) Complete your set-up: god created _______ by
[2024-10-02 16:09:20.425] DEBUGGING - JbgJb.vote_answers() called vote_answer(element_name=prompt, element_type=id, vote_clues=['Choose a joke set-up', 'Complete your set-up', 'Pick your favorite joke', 'Pick the joke you want to compete against'], clean_string=True) which returned: 
[2024-10-02 16:09:25.064] DEBUGGING - This is a(n) VOTE page!

See: logs/jitb_20241002_160743-0.log for details.

hark130 commented 1 month ago

Merged