openai-cookbook
openai-cookbook copied to clipboard
Handle a null answer from the server.
I'm finding that the server sometimes returns a null answer. This crashes the client app. This PR adds logic to spit out the response "I did not receive an answer!" when that happens. It isn't clear to me why the server returns a null answer rather than "I couldn't find the answer to that question in your files." It seems to vary with server restarts.