diff --git a/src/helpers/determineNextAction.ts b/src/helpers/determineNextAction.ts index 4c090e8..8cb9a62 100644 --- a/src/helpers/determineNextAction.ts +++ b/src/helpers/determineNextAction.ts @@ -222,7 +222,7 @@ export async function determineNextAction( // TODO: need to verify the new API error format console.error("determineNextAction error:"); console.error(error); - if (error.includes("server error")) { + if (error.message.includes("server error")) { // Problem with the OpenAI API, try again if (notifyError) { notifyError(error);