Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

RimTalk Streaming End Fix

When using RimTalk with LLMs (like Gemini) via Streaming, the model occasionally hallucinates structural artifacts at the very end of a data chunk— inserting a redundant ] before the closing brace (resulting in "]}"). So I made this mod just replacing “]}” with "}" before json deserialization. This can avoid errors caused by "]}" , but I don't know if it has any actual impact on other functions. 3.14 update:Now It change the string which deliver to RimTalk.Util.JsonUtil:Sanitize. Theoretically less calculation and 100% coverage. (The previous patch was on Parser and only detected "]}" each time it was passed in, causing the streaming model to first output "]" or " \"] " and then "}" which could not be detected.) If your LLM and prompt words don't cause this problem, you don't need to subscribe to this mod.