error handling AI chat

pull/5344/head
STetsing 2 months ago
parent 3d17a58083
commit 1af0283c3d
  1. 2
      libs/remix-ai-core/src/helpers/streamHandler.ts

@ -55,7 +55,7 @@ export const HandleStreamResponse = async (streamResponse,
}
catch (error) {
console.error('Error parsing JSON:', error);
return { 'generateText': '', 'isGenerating': false }
return { 'generateText': 'Try again!', 'isGenerating': false }
}
}

Loading…
Cancel
Save