mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Change the behavior of show references setting for localdocs.
Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
parent
e27653219b
commit
94a9943782
@ -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;
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user