mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-07 11:03:33 +00: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();
|
m_tokenSpeed = QString();
|
||||||
emit tokenSpeedChanged();
|
emit tokenSpeedChanged();
|
||||||
|
|
||||||
if (MySettings::globalInstance()->localDocsShowReferences()) {
|
|
||||||
const QString chatResponse = response();
|
const QString chatResponse = response();
|
||||||
QList<QString> references;
|
QList<QString> references;
|
||||||
QList<QString> referencesContext;
|
QList<QString> referencesContext;
|
||||||
@ -222,7 +221,6 @@ void Chat::responseStopped()
|
|||||||
const int index = m_chatModel->count() - 1;
|
const int index = m_chatModel->count() - 1;
|
||||||
m_chatModel->updateReferences(index, references.join("\n"), referencesContext);
|
m_chatModel->updateReferences(index, references.join("\n"), referencesContext);
|
||||||
emit responseChanged();
|
emit responseChanged();
|
||||||
}
|
|
||||||
|
|
||||||
m_responseInProgress = false;
|
m_responseInProgress = false;
|
||||||
m_responseState = Chat::ResponseStopped;
|
m_responseState = Chat::ResponseStopped;
|
||||||
|
@ -885,7 +885,7 @@ Rectangle {
|
|||||||
|
|
||||||
delegate: TextArea {
|
delegate: TextArea {
|
||||||
id: myTextArea
|
id: myTextArea
|
||||||
text: value + references
|
text: value + (MySettings.localDocsShowReferences ? references : "")
|
||||||
anchors.horizontalCenter: listView.contentItem.horizontalCenter
|
anchors.horizontalCenter: listView.contentItem.horizontalCenter
|
||||||
width: Math.min(1280, listView.contentItem.width)
|
width: Math.min(1280, listView.contentItem.width)
|
||||||
color: {
|
color: {
|
||||||
|
Loading…
Reference in New Issue
Block a user