mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-29 19:12:15 +00:00
Previous to this fix we would diff the entire body of text, this could lead to situations where a diff presented to a user was wildly off matching areas in the text that should not have been tested. New algorithm only checks a portion of the string, this ensures that during streaming there is no chance for wild mistakes