Comments (20)
Interesting, good to know. Thank you!
from qownnotes.
Currently, you can create API Keys at https://console.groq.com/keys for free to play around.
from qownnotes.
Many thanks for this interesting development, Patrizio. Unfortunately, the AI toolbar doesn't function properly in my portable installation (24.5.4, with previously customised toolbars and layout). Only one button can be enabled manually (first row, far right):
On a clean portable install, this is how it looks with two drop-down lists (AI toolbar moved down to improve screenshot):
Is there anything I can do to make it work in my existing installation? In the AI toolbar settings, AI backend selector
and AI model selector
(which provide the drop-down lists) are not listed, and I couldn't find those in any of the toolbar items in the left column.
from qownnotes.
Update: the issue has been fixed by editing QOwnNotes.ini
. I removed some lines (struck out below) and re-numbered (highlighted in bold) the subsequent lines:
5\name=aiToolbar
5\title=AI toolbar
5\items=@invalid()
6\name=windowToolbar
6\title=window toolbar
6\items=actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size
7\name=quitToolbar
7\title=quit toolbar
7\items=action_Export_note_as_PDF_markdown, actionExport_preview_HTML, customAction_pandocExport, action_Settings, action_Quit
New code:
5\name=windowToolbar
5\title=window toolbar
5\items=actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size
6\name=quitToolbar
6\title=quit toolbar
6\items=action_Export_note_as_PDF_markdown, actionExport_preview_HTML, customAction_pandocExport, action_Settings, action_Quit
from qownnotes.
If the toolbar gets too long it's just cut off, you can either move toolbar items to somewhere else or turn off toolbars you don't need.
from qownnotes.
It's not the length. I could move the AI toolbar item to the start, and it would still show only one button (after adding it manually — until then, there was no button on the AI toolbar).
Anyway, editing it out of the INI file fixed the issue.
from qownnotes.
Only one button? Did you try to move the enable button from the main menu to a toolbar manually?
There is an AI toolbar with the button and two selectors, that just can be turned on...
from qownnotes.
There is an AI toolbar with the button and two selectors, that just can be turned on...
I turned it on after upgrading to 24.5.4, and only a blank toolbar (no icons) appeared.
Only one button? Did you try to move the enable button from the main menu to a toolbar manually?
Yes, and that's how I managed to show the 'database' button. The two dropdown list items are nowhere to be found.
from qownnotes.
I turned it on after upgrading to 24.5.4, and only a blank toolbar (no icons) appeared.
Really!? What OS and what Qt version do you have?
Yes, and that's how I managed to show the 'database' button. The two dropdown list items are nowhere to be found.
Yes, there is no drop-down in the main menu. Those are added in source code, like e.g. the workspace selector. 🤔
from qownnotes.
Really!? What OS and what Qt version do you have?
Windows 11, Qt 5.15.2 (official 24.5.2 build). Also occurs with Windows 10.
from qownnotes.
I just tried it on a Windows 8 VM. Updated from a year-old release of QOwnNotes. The AI Toolbar was intact for me, just cut off because there was no space to show it in full... I made a little room and the backend and model selector were present.
from qownnotes.
Is the toolbar layout/buttons customised?
from qownnotes.
The AI toolbar? No.
from qownnotes.
I customised other toolbars' buttons before the AI toolbar was introduced. Those changes are stored in the QOwnNotes.ini file. Maybe this is what resulted in my issue. After all, a clean portable install of 24.5.4 has no problems with the AI toolbar.
from qownnotes.
Hm, maybe...
And you are really sure the toolbar was not just cut off? Your first screenshot doesn't really show that. 🤔
from qownnotes.
Definitely not cut off. Both rows are fully presented. I've highlighted the AI toolbar, showing the blank space where the drop-down lists should have been:
from qownnotes.
If there is not enough room, the whole widget will not be shown. I can't say if there was enough room on your screenshot.
from qownnotes.
I have a backup of the INI file before I modified it. Here are screenshots of the entire program using it:
Upon start-up, the AI Toolbar is hiding here:
AI toolbar moved up to the top row and expanded. No buttons are visible:
No button listed in the AI toolbar settings:
Enable AI support added from the Edit toolbar item list:
This is the result — one button:
from qownnotes.
24.5.8
- You can now also select an AI model to use in the Edit main menu, instead of
only in the AI toolbar (for #3026)
24.5.7
- There now is a new scripting command
script.inputDialogGetMultiLineText
to open an
input dialog with a multi-line text edit- For more information please take a look at
Opening an input dialog with a multi-line text edit
- For more information please take a look at
- The scripting command
script.inputDialogGetText
will now return an empty
string, ifCancel
was clicked orEscape
was pressed- For more information please take a look at
Opening an input dialog with a line edit
- For more information please take a look at
24.5.5
- Try to fix build on very old build systems again (for #3026)
- The scripting command
script.inputDialogGetItem
will now return an empty
string, ifCancel
was clicked orEscape
was pressed- For more information please take a look at
Opening an input dialog with a select box
- For more information please take a look at
24.5.4
- Try to fix build on very old build systems (for #3026)
24.5.3
- QOwnNotes now has AI support, currently for Groq
(because you can get free API keys) and OpenAI
(for #3026)- There is a new AI toolbar where can turn the service on, and you can select the AI backend and model
- As a first step, there is a new script
AI Autocompletion
in the script repository
that uses the selected AI model to autocomplete the current block in the note text edit - You can now add a OpenAI API key in the new AI settings
- Use the new
script.aiComplete(prompt)
scripting command to your own imagination (see below)
- There now is a new scripting command
script.aiComplete(prompt)
to use a completion prompt
on the currently selected AI model (for #3026)- For more information please take a look at the
Scripting documentation
- For more information please take a look at the
- There now is a new scripting command
script.noteTextEditCurrentBlock()
to get
the text of the current block (for #3026)- For more information please take a look at the
Scripting documentation
- For more information please take a look at the
24.5.2
- The first part of the upcoming AI support is already visible
from qownnotes.
Also, see the blog post AI support was added to QOwnNotes.
from qownnotes.
Related Issues (20)
- [FEATURE] DrawIO integration HOT 9
- [BUG] qownnotes padlock to decrypt inactive HOT 7
- [BUG] QOwnNotes 24.4.0 has immediate segfault on FreeBSD 13.2 HOT 10
- [I] LaTeX math script generates empty icons instead of images HOT 2
- [SUPPORT] Opening a link to a note from scripting panel? HOT 9
- [BUG] macOS release build is failing HOT 1
- [BUG] Line count font size does not resize with text HOT 9
- [BUG] Slow accessing settings after Nextcloud connection is defined HOT 7
- [FEATURE] Make text highlighting themeable too HOT 9
- [FEATURE] Option to show full file path in statusbar HOT 16
- [BUG] Freezes and "Not responding" when reloading script engine on Windows HOT 17
- [BUG] List Dot on the left side when in RTL mode in the preview window HOT 5
- [BUG] Windows - Opening settings is slow -> Some registry keys are read 72 times HOT 13
- [I] "Move notes to subfolder..." does not stay in folder but jumps to root folder HOT 3
- [BUG] macdeoloyqt not found with jurplel/install-qt-action@v4 HOT 2
- [BUG] xml formatting in markdown HOT 5
- [FEATURE] Shortcut for switching from ltr to trl and dynamic one HOT 3
- [FEATURE][USABILITY] Switching between INS/OVR mode in QOwnNotes HOT 8
- [BUG] Cannot disable dark mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qownnotes.