openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Handle a null answer from the server.

Open sammyjava opened this issue 1 year ago • 1 comments

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.

sammyjava avatar Mar 05 '23 18:03 sammyjava