Files
gpt-pilot/pilot/utils
Jay 74cbe33421 Add check when the response is empty
{
  "id": "",
  "object": "",
  "created": 0,
  "model": "",
  "prompt_annotations": [
    {
      "prompt_index": 0,
      "content_filter_results": {
        "hate": { "filtered": false, "severity": "safe" },
        "self_harm": { "filtered": false, "severity": "safe" },
        "sexual": { "filtered": false, "severity": "safe" },
        "violence": { "filtered": false, "severity": "safe" }
      }
    }
  ],
  "choices": [],
  "usage": null
}


In newer versions of models, at times choices array can be empty
2023-09-12 00:01:13 +05:30
..
2023-08-16 14:57:55 +02:00
2023-09-09 11:54:16 +10:00
Fix
2023-09-07 19:47:05 +02:00
2023-08-16 14:57:55 +02:00
2023-09-09 12:02:22 +10:00