Skip to content

Commit

Permalink
#3055 add: make it more clear how AI integration can be used
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Jul 16, 2024
1 parent 2c492c1 commit 7ff9699
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 105 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# QOwnNotes Changelog

## 24.7.2
- It was made more clear in the settings dialog how the AI integration can be used
(for [#3055](https://github.com/pbek/QOwnNotes/issues/3055))
- There now is a software repository for **Raspberry Pi OS 12**
- Please visit the [Raspberry Pi OS installation page](https://www.qownnotes.org/installation/raspberry-pi-os.html#raspberry-pi-os-12)
for instructions
Expand Down
2 changes: 2 additions & 0 deletions src/dialogs/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ SettingsDialog::SettingsDialog(int page, QWidget *parent)
ui->commandSnippetsNoteNameLineEdit->hide();
ui->openAiScriptingLabel->setText(ui->openAiScriptingLabel->text().arg(
"https://www.qownnotes.org/scripting/hooks.html#openaibackendshook"));
ui->openAiScriptingLabel3->setText(ui->openAiScriptingLabel3->text().arg(
"https://www.qownnotes.org/scripting/methods-and-objects.html#use-a-completion-prompt-on-the-currently-selected-ai-model"));

#ifndef Q_OS_LINUX
ui->systemIconThemeCheckBox->setHidden(true);
Expand Down
45 changes: 45 additions & 0 deletions src/dialogs/settingsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6958,6 +6958,51 @@ Just test yourself if you get sync conflicts and set a higher value if so.</stri
</layout>
</widget>
</item>
<item>
<spacer name="aiVerticalSpacer1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="openAiScriptingLabel3">
<property name="text">
<string>To make use of the AI backends, you can either use the scripting command &lt;a href=&quot;%1&quot;&gt;aiComplete&lt;/a&gt;, or look in the script repository for already-written scripts.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="aiVerticalSpacer2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="openAiScriptingLabel">
<property name="text">
Expand Down
Loading

0 comments on commit 7ff9699

Please sign in to comment.