Fixup based on review.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-07-10 15:13:31 -04:00
parent 87fe2b5e18
commit 4cda2a8ce0
3 changed files with 7 additions and 6 deletions

View File

@ -194,7 +194,6 @@ public:
Chat *currentChat() const
{
Q_ASSERT(m_currentChat);
return m_currentChat;
}

View File

@ -203,10 +203,10 @@ private:
mutable int m_maxGpuLayers = -1;
double m_repeatPenalty = 1.18;
int m_repeatPenaltyTokens = 64;
QString m_promptTemplate = QObject::tr("### Human:\n%1\n\n### Assistant:\n");
QString m_systemPrompt = QObject::tr("### System:\nYou are an AI assistant who gives a quality response to whatever humans ask of you.\n\n");
QString m_chatNamePrompt = QObject::tr("Describe the above conversation in seven words or less.");
QString m_suggestedFollowUpPrompt = QObject::tr("Suggest three very short factual follow-up questions that have not been answered yet or cannot be found inspired by the previous conversation and excerpts.");
QString m_promptTemplate = "### Human:\n%1\n\n### Assistant:\n";
QString m_systemPrompt = "### System:\nYou are an AI assistant who gives a quality response to whatever humans ask of you.\n\n";
QString m_chatNamePrompt = "Describe the above conversation in seven words or less.";
QString m_suggestedFollowUpPrompt = "Suggest three very short factual follow-up questions that have not been answered yet or cannot be found inspired by the previous conversation and excerpts.";
friend class MySettings;
};
Q_DECLARE_METATYPE(ModelInfo)

View File

@ -1412,7 +1412,7 @@ Rectangle {
focus: false
readOnly: true
wrapMode: Text.WordWrap
hoverEnabled: true
hoverEnabled: !currentChat.responseInProgress
color: theme.textColor
font.pixelSize: theme.fontSizeLarge
background: Rectangle {
@ -1422,6 +1422,7 @@ Rectangle {
MouseArea {
id: maFollowUp
anchors.fill: parent
enabled: !currentChat.responseInProgress
onClicked: function() {
var chat = window.currentChat
var followup = modelData
@ -1444,6 +1445,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
width: 40
height: 40
visible: !currentChat.responseInProgress
Image {
id: plusImage
anchors.verticalCenter: parent.verticalCenter