Change the behavior of show references setting for localdocs.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-04-15 11:34:57 -04:00 committed by AT
parent e27653219b
commit 94a9943782
2 changed files with 35 additions and 37 deletions

View File

@ -184,7 +184,6 @@ void Chat::responseStopped()
m_tokenSpeed = QString();
emit tokenSpeedChanged();
if (MySettings::globalInstance()->localDocsShowReferences()) {
const QString chatResponse = response();
QList<QString> references;
QList<QString> referencesContext;
@ -222,7 +221,6 @@ void Chat::responseStopped()
const int index = m_chatModel->count() - 1;
m_chatModel->updateReferences(index, references.join("\n"), referencesContext);
emit responseChanged();
}
m_responseInProgress = false;
m_responseState = Chat::ResponseStopped;

View File

@ -885,7 +885,7 @@ Rectangle {
delegate: TextArea {
id: myTextArea
text: value + references
text: value + (MySettings.localDocsShowReferences ? references : "")
anchors.horizontalCenter: listView.contentItem.horizontalCenter
width: Math.min(1280, listView.contentItem.width)
color: {