This commit is contained in:
Kyle Corbitt
2023-07-06 15:20:45 -07:00
parent 0844fb0da7
commit 1fa0d7bc62
5 changed files with 34 additions and 28 deletions

View File

@@ -8,7 +8,7 @@ export const evaluateOutput = (
evaluation: Evaluation
): boolean => {
const output = modelOutput.output as unknown as ChatCompletion;
const message = output.choices?.[0]?.message;
const message = output?.choices?.[0]?.message;
if (!message) return false;