Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AI error #3058

Open
Gadgetroch opened this issue Jul 24, 2024 · 12 comments
Open

[BUG] AI error #3058

Gadgetroch opened this issue Jul 24, 2024 · 12 comments
Labels
Stale No activity for a while Type: Support

Comments

@Gadgetroch
Copy link

Hi,

I have put my secret key, but when i use ctrl + space, i get this :

Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found

And more, there a way to change ctrl + space ?

Thank's

@Gadgetroch Gadgetroch changed the title [BUG] AI Autocomplete error [BUG] AI error Jul 24, 2024
@pbek
Copy link
Owner

pbek commented Jul 24, 2024

Can you please post the output from the debug settings that you can copy when you get into the settings dialog in QOwnNotes and head over to the Debug section of it?

Is there any other useful log output if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel (by right-clicking on the panel and selecting Debug in Options).

And more, there a way to change ctrl + space ?

Shortcuts settings 😉

@Gadgetroch
Copy link
Author

QOwnNotes Debug Information

General Info

Current Date: mer. juil. 24 19:55:14 2024
Version: 24.7.3
Build date: Jul 21 2024
Build number: 1114
Platform: linux (xcb)
Operating System: Ubuntu Core 22
Build architecture: x86_64
Current architecture: x86_64
Release: Snapcraft
Qt Version (build): 5.15.3
Qt Version (runtime): 5.15.3
Portable mode: no
Settings path / key: /home/rsette/snap/qownnotes/11560/.config/PBE/QOwnNotes.conf
Application database path: /home/rsette/snap/qownnotes/11560/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments: /snap/qownnotes/11560/usr/bin/QOwnNotes, -style=Breeze, --snap
Qt Debug: 0
Locale (system): fr_FR
Locale (interface): empty
Primary screen resolution: 1920x1080
Screen resolution(s): 1920x1080, 1920x1080
Icon theme: Tango
Notes in current note folder: 1
Calendar items: 0
Enabled scripts: 2
Database drivers: QSQLITE

Server Info

serverUrl: empty
appIsValid: no
notesPathExists: empty
connectionErrorMessage: empty

Spellchecking

Enabled: true
Selected language: en_US
Language codes: en_US, fr
Language names: American English (United States), français
Application dictionaries path: /home/rsette/snap/qownnotes/11560/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 2

Note folder par défaut

id: 2
isCurrent: yes
activeTagId: 1
localPath: /home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: no
isUseGit: no
allowDifferentNoteFileName: no
activeNoteSubFolder name: empty
database file: /home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes/notes.sqlite

Cloud connections

Cloud connection Par défaut

id: 1
isCurrent: yes
serverUrl: empty
username: empty
accountId: empty

Enabled scripts

Script AI Autocompletion

id: 1
path: /home/rsette/snap/qownnotes/11560/.local/share/PBE/QOwnNotes/scripts/ai-autocompletion/ai-autocompletion.qml
variablesJson: empty
identifier: ai-autocompletion
version: 0.0.1
minAppVersion: 24.5.3

Script AI Text Tool

id: 2
path: /home/rsette/snap/qownnotes/11560/.local/share/PBE/QOwnNotes/scripts/ai-text-tool/ai-text-tool.qml
variablesJson: empty
identifier: ai-text-tool
version: 0.1.0
minAppVersion: 24.5.7

Settings

AboutDialog/geometry (QByteArray): <binary data>
ActiveNoteHistoryItem (NoteHistoryItem): <binary data>
Debug/fakeOldVersionNumber (QString): false
Debug/fileLogging (QString): false
DictionaryManagerDialog/geometry (QByteArray): <binary data>
DictionaryManagerDialog/mainSplitterState (QByteArray): <binary data>
Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
Editor/autoBracketClosing (QString): true
Editor/autoBracketRemoval (QString): true
Editor/disableCursorBlinking (QString): false
Editor/editorWidthInDFMOnly (QString): true
Editor/highlightCurrentLine (QString): true
Editor/indentSize (QString): 4
Editor/removeTrailingSpaces (QString): false
Editor/showLineNumbers (QString): false
Editor/useTabIndent (QString): false
Editor/vimMode (QString): false
LastUpdateCheck (QDateTime): 2024-07-24T19:53:34.515
MainWindow/geometry (QByteArray): <binary data>
MainWindow/mainToolBar.iconSize (QString): 22
MainWindow/menuBarGeometry (QByteArray): <binary data>
MainWindow/noteTextEdit.code.font (QString): monospace,10,-1,2,50,0,0,0,0,0
MainWindow/noteTextEdit.font (QString): Sans,10,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font (QString): monospace,10,-1,2,50,0,0,0,0,0
MainWindow/noteTextView.font (QString): Sans,10,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.ignoreCodeFontSize (QString): true
MainWindow/noteTextView.refreshDebounceTime (QString): 600
MainWindow/noteTextView.rtl (QString): false
MainWindow/noteTextView.underline (QString): true
MainWindow/noteTextView.useEditorStyles (QString): true
MainWindow/noteTextView.useInternalExportStyling (QString): true
MainWindow/tagTreeWidgetExpandState-2 (QString): 1
MessageBoxOverride/remove-note-folder (QString): 16384
MessageBoxOverride/remove-notes (QString): 16384
MessageBoxOverride/remove-script (QString): 16384
MessageBoxOverride/remove-tags (QString): 16384
MessageBoxOverride/script-install-successful (QString): 1024
NoteFolder-2/NoteTabNameList: empty
NoteFolder-2/NoteTabStickinessList: empty
NoteFolder-2/NoteTabSubFolderPathDataList: empty
NoteHistory-2 (QVariantList): <variant list with 2 item(s)>
NoteHistoryCurrentIndex-2 (QString): 1
PiwikClientId (QString): <hidden>
ScriptRepositoryDialog/geometry (QByteArray): <binary data>
ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data>
SearchEngineId (QString): 2
SettingsDialog/geometry (QByteArray): <binary data>
SettingsDialog/mainSplitterState (QByteArray): <binary data>
ShowSystemTray (QString): false
StartHidden (QString): false
TagAddDialog/geometry (QByteArray): <binary data>
WelcomeDialog/geometry (QByteArray): <binary data>
acceptAllExternalModifications (QString): false
ai/currentBackend (QString): openai
ai/enabled (bool): true
ai/groq/apiKey (QString): <hidden>
ai/openai/apiKey (QString): <hidden>
ai/openai/currentModel (QString): gpt-4o
allowNoteEditing (bool): true
allowOnlyOneAppInstance (QString): true
appMetrics/disableAppHeartbeat (QString): false
appMetrics/disableTracking (QString): false
appMetrics/notificationShown (QString): true
autoReadOnlyMode (QString): false
autoReadOnlyModeTimeout (QString): 30
automaticNoteFolderDatabaseClosing (QString): false
checkSpelling (bool): true
closeTodoListAfterSave (QString): false
cryptoKey (QString): <hidden>
currentNoteFolderId (QString): 2
currentWorkspace (QString): initial
cursorWidth (QString): 1
darkMode (QString): false
darkModeColors (QString): false
darkModeIconTheme (QString): false
darkModeTrayIcon (QString): false
defaultNoteFileExtension (QString): md
demoNotesCreated (QString): true
disableAutomaticUpdateDialog (QString): true
disableSavedSearchesAutoCompletion (QString): false
dockWasInitializedOnce (QString): true
enableNoteTree (QString): false
enableSocketServer (QString): true
enableWebAppSupport (QString): false
externalEditorPath (QString): empty
fullyHighlightedBlockquotes (QString): false
gitCommitInterval (QString): 30
gitExecutablePath (QString): empty
gitLogCommand (QString): empty
guiFirstRunInit (bool): true
ignoreAllExternalModifications (QString): false
ignoreAllExternalNoteFolderChanges (QString): false
ignoreNoteSubFolders (QString): ^\.
ignoredNoteFiles (QString): empty
imageScaleDown (QString): false
imageScaleDownMaximumHeight (QString): 1024
imageScaleDownMaximumWidth (QString): 1024
initialLayoutIdentifier (QString): full
insertTimeFormat (QString): empty
interfaceFontSize (QString): 11
interfaceLanguage (QString): empty
internalIconTheme (QString): false
itemHeight (QString): 23
legacyLinking (QString): false
localTrash/autoCleanupDays (QString): 30
localTrash/autoCleanupEnabled (QString): true
localTrash/supportEnabled (QString): true
markdownHighlightingEnabled (QString): true
navigationPanelAutoSelect (QString): true
navigationPanelHideSearch (QString): false
networking/ignoreSSLErrors (QString): true
networking/proxyType (QString): 2
newNoteAskHeadline (QString): false
noteEditIsCentralWidget (QString): true
noteFileExtensionList (QStringList): md, txt
noteListPreview (QString): false
noteSaveIntervalTime (QString): 10
noteSubfoldersPanelDisplayAsFullTree (QString): true
noteSubfoldersPanelHideSearch (QString): false
noteSubfoldersPanelOrder (QString): 0
noteSubfoldersPanelShowFullPath (QString): false
noteSubfoldersPanelShowNotesRecursively (QString): false
noteSubfoldersPanelShowRootFolderName (QString): true
noteSubfoldersPanelSort (QString): 0
noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false
notesPanelOrder (QString): 0
notesPanelSort (QString): 1
notesPath (QString): /home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes
notifyAllExternalModifications (QString): false
overrideInterfaceFontSize (QString): false
ownCloud/supportEnabled (QString): false
ownCloud/todoCalendarBackend (QString): 3
ownCloud/todoCalendarCalDAVPassword (QString): <hidden>
ownCloud/todoCalendarCalDAVServerUrl (QString): empty
ownCloud/todoCalendarCalDAVUsername (QString): empty
ownCloud/todoCalendarCloudConnectionId (QString): 1
ownCloud/todoCalendarDisplayNameList: empty
ownCloud/todoCalendarEnabledList: empty
ownCloud/todoCalendarEnabledUrlList: empty
ownCloud/todoCalendarUrlList: empty
ownCloudInfo/appIsValid (bool): false
ownCloudInfo/connectionErrorMessage (QString): empty
ownCloudInfo/notesPathExistsText (QString): empty
ownCloudInfo/serverVersion (QString): empty
restoreCursorPosition (QString): true
restoreLastNoteAtStartup (QString): true
restoreNoteTabs (QString): true
savedSearches/noteFolder-2 (QStringList): Note 2024-07-24T19.55.04, Note 2024-07-24T17.41.25
showMatches (QString): true
showMenuBar (bool): true
showStatusBar (bool): true
showStatusBarNotePath (QString): true
showStatusBarRelativeNotePath (QString): false
spellCheckLanguage (QString): en_US
startInReadOnlyMode (QString): false
systemIconTheme (QString): false
tagWasAddedToNote (QString): true
taggingShowNotesRecursively (QString): false
tagsPanelHideNoteCount (QString): false
tagsPanelHideSearch (QString): false
tagsPanelOrder (QString): 0
tagsPanelSort (QString): 0
todoCalendarSupport (QString): true
toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List
toolbar/1/name (QString): mainToolBar
toolbar/1/title (QString): barre d'outils principale
toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote
toolbar/2/name (QString): formattingToolbar
toolbar/2/title (QString): barre d'outils de formatage
toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time
toolbar/3/name (QString): insertingToolbar
toolbar/3/title (QString): barre d'outils d'insertion
toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note
toolbar/4/name (QString): encryptionToolbar
toolbar/4/title (QString): barre d'outils de chiffrement
toolbar/5/items (QStringList): actionEnable_AI, actionAiBackendComboBox, actionAiModelComboBox
toolbar/5/name (QString): aiToolbar
toolbar/5/title (QString): Barre d’outils d’IA
toolbar/6/items (QStringList): 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
toolbar/6/name (QString): windowToolbar
toolbar/6/title (QString): barre d'outils de fenêtre
toolbar/7/items (QString): action_Quit
toolbar/7/name (QString): quitToolbar
toolbar/7/title (QString): quitter la barre d’outils
toolbar/size (QString): 7
useNoteFolderButtons (QString): false
useUNIXNewline (QString): false
webAppClientService/serverUrl (QString): wss://app.qownnotes.org
webAppClientService/token (QString): <hidden>
webSocketServerService/bookmarksNoteName (QString): Bookmarks
webSocketServerService/bookmarksTag (QString): bookmarks
webSocketServerService/commandSnippetsNoteName (QString): Commands
webSocketServerService/commandSnippetsTag (QString): commands
webSocketServerService/port (QString): 22222
workspace-initial/name (QString): Complet
workspace-initial/noteSubFolderDockWidgetVisible (QString): true
workspace-initial/windowState (QByteArray): <binary data>
workspaces (QString): initial

System environment

SHELL: /bin/zsh
SESSION_MANAGER: local/rsette-gaming:@/tmp/.ICE-unix/2036,unix/rsette-gaming:/tmp/.ICE-unix/2036
QT_ACCESSIBILITY: 1
__EGL_VENDOR_LIBRARY_DIRS: /snap/qownnotes/11560/etc/glvnd/egl_vendor.d:/snap/qownnotes/11560/usr/share/glvnd/egl_vendor.d
SNAP_REVISION: 11560
XDG_CONFIG_DIRS: /snap/qownnotes/11560/etc/xdg:/etc/xdg
XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session0
XDG_MENU_PREFIX: xfce-
SNAP_REAL_HOME: /home/rsette
SNAP_USER_COMMON: /home/rsette/snap/qownnotes/common
QTCOMPOSE: /snap/qownnotes/11560/usr/share/X11/locale
FONTCONFIG_PATH: /snap/qownnotes/11560/etc/fonts
SSH_AUTH_SOCK: /tmp/ssh-XXXXXXe7Lg4W/agent.2036
XDG_DATA_HOME: /home/rsette/snap/qownnotes/11560/.local/share
XDG_CONFIG_HOME: /home/rsette/snap/qownnotes/11560/.config
XCURSOR_PATH: /snap/qownnotes/11560/data-dir/icons:/snap/qownnotes/11560/usr/share/icons
SNAP_INSTANCE_KEY: empty
DESKTOP_SESSION: lightdm-xsession
SSH_AGENT_PID: 2080
GDK_PIXBUF_MODULE_FILE: /home/rsette/snap/qownnotes/common/.cache/gdk-pixbuf-loaders.cache
GTK_MODULES: gail:atk-bridge
XDG_SEAT: seat0
SNAP_EUID: 1000
PWD: /home/rsette
LOGNAME: rsette
XDG_SESSION_DESKTOP: lightdm-xsession
QT_QPA_PLATFORMTHEME: gtk3
XDG_SESSION_TYPE: x11
GIT_COMMITTER_NAME: QOwnNotes
XAUTHORITY: /home/rsette/.Xauthority
TEMPDIR: /tmp
SNAP_CONTEXT: nOGlQCv_x0Xm5zuujW6SRxjwpBAP3jtgX7BJenlxG5aSZp9kF0bP
XDG_GREETER_DATA_DIR: /var/lib/lightdm/data/rsette
GST_PLUGIN_SCANNER: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
GIT_EXEC_PATH: /snap/qownnotes/11560/usr/lib/git-core
HOME: /home/rsette/snap/qownnotes/11560
LANG: fr_FR.UTF-8
XDG_CURRENT_DESKTOP: XFCE
QTWEBENGINEPROCESS_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/qt5/libexec/QtWebEngineProcess
SNAP_ARCH: amd64
SNAP_INSTANCE_NAME: qownnotes
SNAP_USER_DATA: /home/rsette/snap/qownnotes/11560
DISABLE_WAYLAND: 1
TMPDIR: /tmp
XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0
SNAP_LAUNCHER_ARCH_TRIPLET: x86_64-linux-gnu
SNAP_REEXEC: empty
GIT_AUTHOR_EMAIL: [email protected]
SNAP_UID: 1000
QT_QPA_PLATFORM: xcb
XDG_CACHE_HOME: /home/rsette/snap/qownnotes/common/.cache
QT_PRINTER_MODULE: qtubuntu-print
GIT_COMMITTER_EMAIL: [email protected]
XDG_SESSION_CLASS: user
GTK_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/gtk-2.0
XLOCALEDIR: /snap/qownnotes/11560/usr/share/X11/locale
USER: rsette
GIT_TEMPLATE_DIR: /snap/qownnotes/11560/usr/share/git-core/templates
SNAP: /snap/qownnotes/11560
SNAP_COMMON: /var/snap/qownnotes/common
SNAP_VERSION: 24.7.3
DISPLAY: :0.0
SHLVL: 1
GDK_PIXBUF_MODULEDIR: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders
LOCPATH: /snap/qownnotes/11560/usr/lib/locale
SNAP_LIBRARY_PATH: /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void
SNAP_COOKIE: nOGlQCv_x0Xm5zuujW6SRxjwpBAP3jtgX7BJenlxG5aSZp9kF0bP
XDG_VTNR: 7
LIBGL_DRIVERS_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/dri
XDG_SESSION_ID: 2
SNAP_DATA: /var/snap/qownnotes/11560
GST_PLUGIN_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/gstreamer-1.0
QML2_IMPORT_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/qt5/qml
LD_LIBRARY_PATH: /var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void:/snap/qownnotes/11560/lib:/snap/qownnotes/11560/usr/lib:/snap/qownnotes/11560/usr/lib/x86_64-linux-gnu:/snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/dri
XDG_RUNTIME_DIR: /run/user/1000/snap.qownnotes
QTCHOOSER_NO_GLOBAL_DIR: 1
LIBVA_DRIVERS_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/dri
GST_PLUGIN_SYSTEM_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/gstreamer-1.0
EMAIL: [email protected]
FONTCONFIG_FILE: /snap/qownnotes/11560/etc/fonts/fonts.conf
SNAP_NAME: qownnotes
XDG_DATA_DIRS: /home/rsette/snap/qownnotes/11560/.local/share:/home/rsette/snap/qownnotes/11560:/snap/qownnotes/11560/data-dir:/snap/qownnotes/11560/usr/share:/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share
GIT_AUTHOR_NAME: QOwnNotes
PATH: /snap/qownnotes/11560/usr/sbin:/snap/qownnotes/11560/usr/bin:/snap/qownnotes/11560/sbin:/snap/qownnotes/11560/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
GDMSESSION: lightdm-xsession
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
VDPAU_DRIVER_PATH: /usr/lib/x86_64-linux-gnu/vdpau/
QT_PLUGIN_PATH: /snap/qownnotes/11560/usr/lib/x86_64-linux-gnu/qt5/plugins
GIO_MODULE_DIR: /home/rsette/snap/qownnotes/common/.cache/gio-modules
QT_SELECT: snappy-qt5
PULSE_SERVER: unix:/run/user/1000/snap.qownnotes/../pulse/native
XKB_CONFIG_ROOT: /snap/qownnotes/11560/usr/share/X11/xkb

[19:57:38] [debug] openLinkAtCursorPosition - 'emit urlClicked( urlString )': ""
[19:57:38] [debug] solveEquation - 'text': "Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found "
[19:57:38] [debug] autoComplete - 'text': ""
[19:57:38] [debug] completeSync - 'json': QJsonObject({"messages":[{"content":"Complete this sentence, don't add the text from the prompt: Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found ","role":"user"}],"model":"gpt-4o"})
[19:57:47] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"

There are nothing else

@Gadgetroch
Copy link
Author

[19:57:38] [debug] openLinkAtCursorPosition - 'emit urlClicked( urlString )': ""
[19:57:38] [debug] solveEquation - 'text': "Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found "
[19:57:38] [debug] autoComplete - 'text': ""
[19:57:38] [debug] completeSync - 'json': QJsonObject({"messages":[{"content":"Complete this sentence, don't add the text from the prompt: Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found ","role":"user"}],"model":"gpt-4o"})
[19:57:47] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:15] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:16] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:19] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:19] [debug] openLinkAtCursorPosition - 'emit urlClicked( urlString )': ""
[19:58:19] [debug] solveEquation - 'text': "ceci est un test"
[19:58:19] [debug] autoComplete - 'text': "test"
[19:58:19] [debug] completeSync - 'json': QJsonObject({"messages":[{"content":"Complete this sentence, don't add the text from the prompt: ceci est un test","role":"user"}],"model":"gpt-4o"})
[19:58:20] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:20] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"
[19:58:23] [debug] openLinkAtCursorPosition - 'emit urlClicked( urlString )': ""
[19:58:23] [debug] solveEquation - 'text': ""
[19:58:23] [debug] autoComplete - 'text': "ceci est un"
[19:58:23] [debug] completeSync - 'json': QJsonObject({"messages":[{"content":"Complete this sentence, don't add the text from the prompt: ceci est un test","role":"user"}],"model":"gpt-4o"})
[19:58:24] [debug] storing note file: "Note 2024-07-24T19.55.04.md"
[19:58:24] [debug] stored note: Note: 1 "Note 2024-07-24T19.55.04" "Note 2024-07-24T19.55.04.md" 0 "" false
[19:58:24] [debug] storeUpdatedNotesToDisk - 'count': 1
[19:58:24] [status] 1 note enregistrée sur le disque
[19:58:25] [debug] currentLocalPath - 'currentLocalPath': "/home/rsette/Rocco/Document/Computer/Nextcloud/private/Document/Notes"

@Gadgetroch
Copy link
Author

I have AI Text Tool for shortcut but not AI Autocompletion :

image

@pbek
Copy link
Owner

pbek commented Jul 24, 2024

The "AI Autocompletion" script is using the autocompletion hook. The autocompletion in QOwnNotes has a shortcut.

Do you maybe have a similar issue as #3052?
Does the Groq API work for you?

@Gadgetroch
Copy link
Author

No issue with groq

@pbek
Copy link
Owner

pbek commented Jul 24, 2024

Hm, maybe some permission problem with your API key?

@Gadgetroch
Copy link
Author

Gadgetroch commented Jul 24, 2024 via email

@Gadgetroch
Copy link
Author

image

@pbek
Copy link
Owner

pbek commented Jul 24, 2024

Then I don't know why the API returns a 404 for you. ️🤷🏻

@EXCIDIVM
Copy link

I have the same issue right now. Just entered my unrestricted OpenAI API Key and getting this message as well:

Error transferring https://api.openai.com/v1/chat/completions - server replied: Not Found

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the Stale No activity for a while label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale No activity for a while Type: Support
Projects
None yet
Development

No branches or pull requests

3 participants