mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
- Add error prop to ChatInput to detect error state - Update isDisabled logic to allow retry when there's an error - Pass combined error (SDK error + streamingError) to ChatInput When Bedrock returns 503 ServiceUnavailableException before streaming starts, AI SDK's onError fires but status may not transition to "ready". This fix ensures the input is re-enabled when an error occurs, allowing users to retry their request.