Resolved bug when entire chat context is deleted and hypaV2Data becomes empty, throwing a undefined index error. Also changed it to typescript index.
Hopefully resolved issue where same chat is summarized over and over again by adding another field to mainChunks.