diff --git a/README.md b/README.md
index 0cf66fa..26f15d3 100644
--- a/README.md
+++ b/README.md
@@ -83,6 +83,7 @@ To use Internet search you need a [Tavily API key](https://app.tavily.com/home).
## DONE
+- [x] DALL-E as tool
- [x] Google Gemini API
- [x] Prompt anywhere
- [x] Cancel commands
diff --git a/css/panel.css b/css/panel.css
index 2eaf639..0c1e61f 100644
--- a/css/panel.css
+++ b/css/panel.css
@@ -4,7 +4,7 @@
font-size: 10pt;
padding-left: 32px;
padding-right: 32px;
- margin-bottom: 24px;
+ margin-bottom: 16px;
}
.settings form .group label {
diff --git a/css/themes/base.css b/css/themes/base.css
index b4f567d..84bf477 100644
--- a/css/themes/base.css
+++ b/css/themes/base.css
@@ -4,6 +4,10 @@
margin-bottom: 32px;
}
+.message .image-container {
+ margin-bottom: 12px;
+}
+
.message .body, .message .actions {
margin: 0px 32px;
}
@@ -108,4 +112,9 @@
.message .image-container:hover .download {
display: block;
-}
\ No newline at end of file
+}
+
+.message.assistant .actions {
+ position: relative;
+ top: -16px;
+}
diff --git a/css/themes/openai.css b/css/themes/openai.css
index 0dec406..b5183cd 100644
--- a/css/themes/openai.css
+++ b/css/themes/openai.css
@@ -43,13 +43,7 @@
border-radius: 8px;
}
-.messages.openai .message.text .actions {
+.messages.openai .message .actions {
position: relative;
top: -16px;
}
-
-.messages.openai .message.image .actions {
- position: relative;
- top: -4px;
-}
-
diff --git a/defaults/settings.json b/defaults/settings.json
index ad3f44a..88ee697 100644
--- a/defaults/settings.json
+++ b/defaults/settings.json
@@ -11,7 +11,6 @@
},
"instructions": {
"default": "You are a helpful assistant. You are here to help the user with any questions they have.",
- "routing": "Your role is to determine if the following request is a text or an image generation request. You just reply TEXT or IMAGE.",
"titling": "You are an assistant whose task is to find the best title for the conversation below. The title should be just a few words.",
"titling_user": "Provide a title for the conversation above. Do not return anything other than the title. Do not wrap responses in quotes."
},
@@ -106,6 +105,9 @@
"plugins": {
"browse": {},
"python": {},
- "tavily": {}
+ "tavily": {},
+ "dalle": {
+ "enabled": true
+ }
}
}
diff --git a/src/App.vue b/src/App.vue
index a5490fc..6075937 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -17,14 +17,12 @@ onMounted(() => {
let platform = {
'win32': 'windows',
'darwin': 'macos',
- }[window.api.platform]||''
+ }[window.api.platform]||'generic'
// add it everywhere
- if (platform) {
- window.platform = platform
- document.platform = platform
- document.querySelector('body').classList.add(platform)
- }
+ window.platform = platform
+ document.platform = platform
+ document.querySelector('body').classList.add(platform)
})
diff --git a/src/components/MessageItem.vue b/src/components/MessageItem.vue
index 0dfe703..23c9ff8 100644
--- a/src/components/MessageItem.vue
+++ b/src/components/MessageItem.vue
@@ -9,18 +9,15 @@