gpt4all
gpt4all copied to clipboard
Fixes for issue #2519.
Send text directly into the text document from the chat view rather than using a signal to post process the text. This is still not ideal in that we want to move to preprocessing the text in the future and to do so by streaming the content in rather than replacing it all at the same time, but it does fix a hang that we experience with an infinite recursive loop of text changed signals in the markdown processing.
This fixes issue #2519.
| :rocket: | This description was created by Ellipsis for commit 068343fbfaef73d99ad005cfc7603a7435da3055 |
|---|
Summary:
Fixes issue #2519 by sending text directly to the text document in the chat view, avoiding infinite recursive loops during markdown processing.
Key points:
- Fixes issue #2519 by sending text directly to the text document in the chat view, avoiding infinite recursive loops during markdown processing.
- Removed
forceUpdatemethod fromgpt4all-chat/chatmodel.h. - Added
valueChangedsignal inChatModelclass ingpt4all-chat/chatmodel.h. - Modified
updateValuemethod inChatModelto emitvalueChangedsignal. - Replaced
m_textDocumentwithm_quickTextDocumentinChatViewTextProcessorclass ingpt4all-chat/chatviewtextprocessor.cppandgpt4all-chat/chatviewtextprocessor.h. - Added
setValuemethod toChatViewTextProcessorclass to set plain text directly. - Updated
ChatView.qmlto usetextProcessor.setValue(value)instead ofchatModel.forceUpdate(index).
Generated with :heart: by ellipsis.dev