GPT sometimes gives output containing Question:/Answer: instead of the Q:/A: that the code tests for, resulting in the following error:
ValueError: not enough values to unpack (expected 2, got 1)
Example output:
Question: How should you prepare for an interview focused on your area of expertise?
Answer: Prepare by focusing on being straight to the point, testing one fact, and using a Q&A format.
Maybe we should test for those prefixes too at least.
Thanks for reporting this! I think this is fairly easy to fix by improving the prompt to tell GPT to respond with a parsable format like JSON (and specify the keys)
GPT sometimes gives output containing
Question:
/Answer:
instead of theQ:
/A:
that the code tests for, resulting in the following error:Example output:
Maybe we should test for those prefixes too at least.