Skip to content

Commit ce1efca

Browse files
committed
use temperature on queries
1 parent f7879fc commit ce1efca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aichatassistant.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ void AIChatAssistant::slotSend()
163163

164164
QJsonObject dd;
165165
dd["model"]=config->ai_preferredModel;
166+
dd["temperature"]=config->ai_temperature;
166167
//dd["stream"] = "True";
167168
if(!config->ai_systemPrompt.isEmpty()){
168169
// add system prompt to query
@@ -272,6 +273,9 @@ void AIChatAssistant::slotOptions()
272273
auto *ly=new QVBoxLayout();
273274
auto *leSystemPrompt=new QTextEdit();
274275
leSystemPrompt->setText(config->ai_systemPrompt);
276+
if(config->ai_systemPrompt.isEmpty()){
277+
leSystemPrompt->setPlaceholderText(tr("System prompt"));
278+
}
275279
ly->addWidget(leSystemPrompt);
276280
auto *leTemp=new QLineEdit();
277281
leTemp->setText(config->ai_temperature);

0 commit comments

Comments
 (0)