Debanjum Singh Solanky
21c55b4c0d
Release Khoj version 1.2.0
2023-12-22 21:43:47 +05:30
Debanjum Singh Solanky
e42111a8af
Fix bump_version.sh to commit, clean-up after desktop app version bump
2023-12-22 21:42:03 +05:30
Debanjum Singh Solanky
6a8c1fe423
Sanitize rendering chat references in Web, Desktop and Obsidian clients
...
Use textContent instead of innerHTML to append references
Resolves #583
2023-12-22 18:11:49 +05:30
Debanjum
6879daccc6
Fix Chat Streaming on Obsidian, Docker Image Version and First-Run, Chat Error Messages in Clients ( #589 )
...
- Fix streaming chat response in Obsidian client
- Fix first-run, chat error message in obsidian, desktop and web clients
- Set Khoj app version to latest version in Docker images
- Tag Khoj Docker image built on release with the `latest` tag
This align docker image release cadence with client, server releases
2023-12-22 04:13:01 -08:00
Debanjum Singh Solanky
074123b9b9
Merge cloud, local dockerize workflows
...
- Delete unused config directory
2023-12-22 17:11:52 +05:30
Debanjum Singh Solanky
d101297995
Use markdown formatted chat message in chat modal
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
350fd89c8d
Clear chat history html in Obsidian if getChatHistory works too
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
8d1e988059
Update tagging of the docker image on release, push to master & PR
...
- Tag docker image with `tag_name' on release (i.e tag push)
- Else tag with 'pre' on push to master
- Else tag with 'dev' on push to PR branch
- Only tag the latest release with release tag
Previously the latest commit on master was being tagged with the
latest tag. This doesn't sync with the release cadence of the rest
of Khoj
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
b5ae64cb3c
Dynamically set Khoj app version in the Dockerization Github workflows
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
d3d47dce0b
Allow setting Khoj app version during docker build via build-args
...
This will allow troubleshooting by getting the actual khoj version
being used. Previously it was always set to a static 0.0.0 version
Command to build Khoj docker image with dynamically set current app version:
`docker-compose build server --build-arg VERSION=$(pipx run hatch version)'
2023-12-22 16:47:13 +05:30
Debanjum Singh Solanky
70607cbbbb
Update FRE message to get any Khoj client to sync files with server
2023-12-21 15:23:47 +05:30
Debanjum Singh Solanky
447c1b90e7
Fix streaming chat response in Obsidian client
...
- Convert renderIncrementalMessage to an async method as
MarkdownRenderer is an async method
- Simplify code, remove unneeded JSON check
2023-12-20 14:51:19 +05:30
Debanjum Singh Solanky
e04fe921eb
Fix first-run, chat error message in obsidian, desktop and web clients
...
- Disable chat input field if getChatHistory had error as Khoj may not
be setup correctly to chat
2023-12-20 14:03:07 +05:30
sabaimran
e3557cd8b7
Update the personality prompt to make Khoj aware that users can share data via the desktop app
2023-12-19 16:42:45 +05:30
sabaimran
927e477f68
Ignore typing error in custom action short description
2023-12-19 16:10:58 +05:30
sabaimran
946305d977
Add function to export conversations for debugging
2023-12-19 16:05:20 +05:30
sabaimran
903a01745f
Use 0px for padding for input row buttons in web
2023-12-18 16:09:06 +05:30
sabaimran
1e14a24f06
Merge pull request #586 from khoj-ai/features/misc-image-and-online-improvements
...
Improvements to chat functionality and image generation
2023-12-17 23:28:08 +05:30
sabaimran
5b092d59f4
Ignore dict assignment typing error
2023-12-17 22:34:54 +05:30
sabaimran
03cb86ee46
Update typing and object assignment for new text to image method return
2023-12-17 21:28:33 +05:30
sabaimran
0288804f2e
Render the inferred query along with the image that Khoj returns
2023-12-17 21:02:55 +05:30
sabaimran
49af2148fe
Miscellaneous improvements to image generation
...
- Improve the prompt before sending it for image generation
- Update the help message to include online, image functionality
- Improve styling for the voice, trash buttons
2023-12-17 20:25:35 +05:30
sabaimran
7cb64cb2f9
Add telemetry for image generation conversation command
2023-12-17 18:25:03 +05:30
sabaimran
e9ea0195b0
Merge pull request #585 from khoj-ai/fix/image-generation-and-csrf-cookie
...
Fix image generation setup bug and CSRF cookie for admin login
2023-12-17 16:55:45 +05:30
sabaimran
09544dee09
Add TextToImageModelConfig to the admin page
2023-12-17 16:44:19 +05:30
sabaimran
0459666beb
CSRF Cookie not set error in prod. Try fixing https forwarding for mitigation
2023-12-17 12:55:18 +05:30
sabaimran
61dde8ed89
If text to image config isn't set, send back an error message to the client
2023-12-17 12:54:50 +05:30
sabaimran
fefaa2271d
Merge pull request #584 from khoj-ai/features/enforce-usage-limits-conversation-type
...
Add a ConversationCommand rate limiter for the chat endpoint
2023-12-17 11:20:35 +05:30
sabaimran
3065cea562
Address mypy typing issues
2023-12-16 09:24:26 +05:30
sabaimran
5f6dcf9f2e
Add a rate limiter for the transcribe API endpoint
2023-12-16 09:18:56 +05:30
sabaimran
73a107690d
Add a ConversationCommand rate limiter for the chat endpoint
2023-12-16 09:03:52 +05:30
sabaimran
9b961ed496
Merge pull request #580 from khoj-ai/fix-upgrade-chat-to-create-images
...
Support Image Generation with Khoj
2023-12-07 21:17:58 +05:30
Debanjum Singh Solanky
7504669f2b
Fix rendering image on chat response in obsidian client
2023-12-05 03:48:07 -05:00
Debanjum Singh Solanky
408b7413e9
Use global openai client for transcribe, image
2023-12-05 03:36:33 -05:00
Debanjum Singh Solanky
162b219f2b
Throw unsupported error when server not configured for image, speech-to-text
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
8f2f053968
Fix rendering image on chat response in web, desktop client
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
d124266923
Reduce promise based nesting in chat JS func used in desktop, web client
...
Use async/await to reduce .then() based nesting to improve code
readability
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
6e3f66c0f1
Use base64 encoded image instead of source URL for persistence
...
The source URL returned by OpenAI would expire soon. This would make
the chat sessions contain non-accessible images/messages if using
OpenaI image URL
Get base64 encoded image from OpenAI and store directly in
conversation logs. This resolves the image link expiring issue
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
52c5f4170a
Show generated images in the chat modal of the Khoj Obsidian plugin
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
8016a57b5e
Show generated images in chat interface on Desktop client
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
cc051ceb4b
Show generated images in chat interface on Web client
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
252b35b2f0
Support /image slash command to generate images using the chat API
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
1d9c1333f2
Configure text to image models available on server
...
- Currently supports OpenAI text to image model, by default dall-e-3
- Allow setting the text to image model via CLI during server setup
2023-12-04 21:27:53 -05:00
Debanjum Singh Solanky
f0222f6d08
Make save_to_conversation_log helper function reusable
...
- Move it out to conversation.utils from generate_chat_response function
- Log new optional intent_type argument to capture type of response
expected. This can be type responses by Khoj e.g speech, image. It
can be used to render responses by Khoj appropriately on clients
- Make user_message_time argument optional, set the time to now by
default if not passed by calling function
2023-12-04 19:42:12 -05:00
sabaimran
d2ddbef08f
Use a unique name for the temp PDF generated
2023-12-04 19:27:00 -05:00
sabaimran
d20746613a
Properly filter out empty PDFs for indexing
2023-12-04 16:15:17 -05:00
Debanjum Singh Solanky
316b7d471a
Handle offline chat model retrieval when no internet
...
Offline chat shouldn't fail on retrieve_model when no internet,
if model was previously downloaded and usable offline
2023-12-04 13:46:25 -05:00
Debanjum Singh Solanky
2b09caa237
Make online results an optional argument to the gpt converse method
2023-12-04 12:15:29 -05:00
Debanjum Singh Solanky
7009793170
Migrate to OpenAI Python library >= 1.0
2023-12-03 18:16:00 -05:00
sabaimran
62a89f79b7
Merge pull request #577 from khoj-ai/fix/user-subscription-email-not-exists
...
Fix null exception when user does not exist for subscription
2023-12-03 15:14:31 -08:00