diff --git a/README.md b/README.md index b7df718..3362391 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ It requires inserting an API key from [OpenAI](https://platform.openai.com/accou You also need to choose which tools you wish to enable. See the [Issues](#issues) section if you have problems activating the tools. +Change shortcuts: `chrome://extensions/shortcuts` + ## Usage These are the tools that are currently available: diff --git a/manifest.json b/manifest.json index bd9c994..b4e61d3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "content_scripts": [ { "js": ["scripts/jquery.js", "scripts/content.js"], - "matches": ["https://*.overleaf.com/project/*"] + "matches": ["https://*.overleaf.com/project/*", "https://*.mildstone.org/project/*"] } ], "description": "LLM-based tools for Overleaf", @@ -18,21 +18,21 @@ "commands": { "Complete": { "suggested_key": { - "default": "Alt+C" + "default": "Ctrl + Shift + C" }, - "description": "Complete selected text" + "description": "Completa il testo selezionato" }, "Improve": { "suggested_key": { - "default": "Alt+I" + "default": "Ctrl + Shift + I" }, - "description": "Improve selected text" + "description": "Migliora il testo selezionato" }, "Ask": { "suggested_key": { - "default": "Alt+A" + "default": "Ctrl + Shift + A" }, - "description": "Use the selected text to ask GPT. It adds to the beginning of the selected text: 'In Latex, '" + "description": "Chiedi a Chat-GPT attraverso il testo selezionato" } }, "background": { diff --git a/popup/popup.html b/popup/popup.html index 33cfbf8..6235136 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -7,18 +7,18 @@ -

LeafLLM: an AI-powered Overleaf

+

LeafLLM

-
ALTI
+
AltI
Improve selected text.
-
ALTC
+
AltC
Complete selected text.
-
ALTA
+
AltA
Ask GPT.
diff --git a/scripts/service-worker.js b/scripts/service-worker.js index db87d24..eb2a752 100644 --- a/scripts/service-worker.js +++ b/scripts/service-worker.js @@ -5,7 +5,7 @@ const defaultConfigurations = { base: { n: 1, temperature: 0.5, - model: 'gpt-3.5-turbo' + model: 'gpt-4-turbo' }, Complete: { max_tokens: 512, @@ -30,9 +30,9 @@ const defaultConfigurations = { } const settings = [ - { key: 'Complete', shortcut: 'Alt+C', status: 'enabled', type: 'Command' }, - { key: 'Improve', shortcut: 'Alt+I', status: 'enabled', type: 'Command' }, - { key: 'Ask', shortcut: 'Alt+A', status: 'enabled', type: 'Command' }, + { key: 'Complete', shortcut: 'Ctrl + Shift + C', status: 'enabled', type: 'Command' }, + { key: 'Improve', shortcut: 'Ctrl + Shift + I', status: 'enabled', type: 'Command' }, + { key: 'Ask', shortcut: 'Ctrl + Shift + A', status: 'enabled', type: 'Command' }, { key: 'RequestConfiguration', value: defaultConfigurations, type: 'Configuration' } ] @@ -89,6 +89,7 @@ async function setup() { addListener('Improve') addListener('Complete') addListener('Ask') + console.log('LeafLLM service worker installed') } setup()