diff --git a/README.md b/README.md index 055a262..980993a 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ To use Internet search you need a [Tavily API key](https://app.tavily.com/home). ## DONE +- [x] Different default engine/model for commands - [x] Text attachments (TXT, PDF, DOCX, PPTX, XLSX) - [x] MistralAI function calling - [x] Auto-update diff --git a/css/editor.css b/css/editor.css new file mode 100644 index 0000000..f149d04 --- /dev/null +++ b/css/editor.css @@ -0,0 +1,39 @@ + +dialog.editor header, dialog.editor main, dialog.editor footer { + background-color: white; + border: none; +} + +dialog.editor header { + font-size: 10pt; +} + +dialog.editor main { + padding-top: 0px; + padding-bottom: 0px; +} + +dialog.editor footer { + justify-content: flex-start; + flex-direction: row-reverse; +} + +dialog.editor footer button { + margin: 0px 4px; + font-size: 9.5pt; +} + +dialog.editor form .group label, +dialog.editor form .group input, +dialog.editor form .group textarea, +dialog.editor form .group select { + font-size: 9.5pt; +} + +dialog.editor form .group label { + min-width: 100px; +} + +dialog.editor textarea { + height: 120px; +} diff --git a/defaults/settings.json b/defaults/settings.json index 4d212d5..bc388c5 100644 --- a/defaults/settings.json +++ b/defaults/settings.json @@ -21,6 +21,10 @@ "fontSize": 3 } }, + "commands": { + "engine": "", + "model": "" + }, "shortcuts": { "chat": { "key": "Space", diff --git a/package-lock.json b/package-lock.json index 7cbcd4e..6d78e24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "witsy", - "version": "1.5.4", + "version": "1.5.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "witsy", - "version": "1.5.4", + "version": "1.5.5", "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "^0.20.4", diff --git a/package.json b/package.json index 72f0084..ad73baa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "witsy", "productName": "Witsy", - "version": "1.5.5", + "version": "1.6.0", "description": "Witsy: desktop AI assistant", "repository": { "type": "git", diff --git a/src/automations/commander.ts b/src/automations/commander.ts index 57a3d68..228dd20 100644 --- a/src/automations/commander.ts +++ b/src/automations/commander.ts @@ -147,8 +147,8 @@ export const runCommand = async (app: App, llm: LlmEngine, textId: string, comma // extract what we need const template = command.template; const action = command.action; - const engine = command.engine || config.llm.engine; - const model = command.model || config.getActiveModel(); + const engine = command.engine || config.commands.engine || config.llm.engine; + const model = command.model || config.commands.model || config.getActiveModel(); // const temperature = command.temperature; // build prompt diff --git a/src/screens/CommandDefaults.vue b/src/screens/CommandDefaults.vue new file mode 100644 index 0000000..23c0199 --- /dev/null +++ b/src/screens/CommandDefaults.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/screens/CommandEditor.vue b/src/screens/CommandEditor.vue index 194c2e0..ecc8809 100644 --- a/src/screens/CommandEditor.vue +++ b/src/screens/CommandEditor.vue @@ -1,5 +1,5 @@