mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
# Summary of Changes * New UI to show preview of image uploads * ChatML message changes to support gpt-4o vision based responses on images * AWS S3 image uploads for persistent image context in conversations * Database changes to have `vision_enabled` option in server admin panel while configuring models * Render previously uploaded images in the chat history, show uploaded images for pending msgs * Pass the uploaded_image_url through to subqueries * Allow image to render upon first message from the homepage * Add rendering support for images to shared chat as well * Fix some UI/functionality bugs in the share page * Convert user attached images for chat to webp format before upload * Use placeholder to attached image for data source, response mode actors * Update all clients to call /api/chat as a POST instead of GET request * Fix copying chat messages with images to clipboard TLDR; Add vision support for openai models on Khoj via the web UI! --------- Co-authored-by: sabaimran <narmiabas@gmail.com> Co-authored-by: Debanjum Singh Solanky <debanjum@gmail.com>
123 lines
1.9 KiB
CSS
123 lines
1.9 KiB
CSS
div.main {
|
|
height: 100vh;
|
|
color: hsla(var(--foreground));
|
|
}
|
|
|
|
.suggestions {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
div.inputBox {
|
|
border: 1px solid var(--border-color);
|
|
margin-bottom: 20px;
|
|
gap: 12px;
|
|
align-content: center;
|
|
}
|
|
|
|
input.inputBox {
|
|
border: none;
|
|
}
|
|
|
|
input.inputBox:focus {
|
|
outline: none;
|
|
background-color: transparent;
|
|
}
|
|
|
|
div.inputBox:focus {
|
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
div.chatBodyFull {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
height: 100%;
|
|
}
|
|
|
|
button.inputBox {
|
|
border: none;
|
|
outline: none;
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
border-radius: 0.5rem;
|
|
padding: 0.5rem;
|
|
background: linear-gradient(var(--calm-green), var(--calm-blue));
|
|
}
|
|
|
|
div.chatBody {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
height: 100%;
|
|
}
|
|
|
|
.inputBox {
|
|
color: hsla(var(--foreground));
|
|
}
|
|
|
|
div.chatLayout {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
div.chatBox {
|
|
display: grid;
|
|
height: 100%;
|
|
}
|
|
|
|
div.titleBar {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
}
|
|
|
|
div.chatBoxBody {
|
|
display: grid;
|
|
height: 100%;
|
|
width: 70%;
|
|
margin: auto;
|
|
}
|
|
|
|
div.agentIndicator a {
|
|
display: flex;
|
|
text-align: center;
|
|
align-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
div.agentIndicator {
|
|
padding: 10px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
div.chatBody {
|
|
grid-template-columns: 0fr 1fr;
|
|
}
|
|
|
|
div.chatBox {
|
|
padding: 0;
|
|
height: min-content;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
div.inputBox {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
div.chatBoxBody {
|
|
width: 100%;
|
|
}
|
|
|
|
div.chatBox {
|
|
padding: 0;
|
|
height: min-content;
|
|
}
|
|
|
|
div.chatLayout {
|
|
gap: 0;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|