230 Commits

Author SHA1 Message Date
Louis
566a5a332f
refactor: deprecate the appVersion IPC and use the predefined VERSION from webpack (#1309)
## Description
According to #1287, the web version will be updated accordingly. There is no need to use the electron app version anymore. It's to reduce the IPC dependency and reduce requests.
2024-01-04 11:22:24 +07:00
Louis
051dbcb937
fix: app getting stuck at downloading 99 percent while downloading model (#1320)
Addressed a critical issue where the application would become unresponsive at the 99 percent mark during model download
2024-01-04 11:22:11 +07:00
hiento09
0a7e26d5fb
Fix memory on mac included cached and swap (#1298)
* Fix memory on mac included cached and swap

* set inteval monitor to 0.5s

---------

Co-authored-by: Hien To <hien@jan.ai>
2024-01-03 02:09:17 +07:00
hiento09
45fdadf1ea
Switch from systeminformation to os-utils to resolve bitdefender antivirus on windows, and reduce memory leak for monitor extension (#1282)
Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-01-02 13:39:22 +07:00
hiento09
1ec8174700
Feature GPU detection for Jan on Windows and Linux (#1242)
* Add js function to generate gpu and cuda detection

* inference nitro manage via json file instead of bash and bat script

* Add /usr/lib/x86_64-linux-gnu/ to linux check gpu

* chore: add CPU - GPU toggle

* correct file path

* fix: exist file sync check

* fix: get resources path

* Fix error jan/engines create existed error

* Seting sync to file

* Fix error show notification for GPU

* Set notify default to true

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
Co-authored-by: Louis <louis@jan.ai>
2023-12-29 15:56:36 +07:00
Louis
5250061c11
feat: Jan Server, API and decoupled clients (#948)
* chore: expose fs apis

* chore: correct electron import path

* update download api

Signed-off-by: James <james@jan.ai>

* update chat_completion

Signed-off-by: James <james@jan.ai>

* fix electron import

Signed-off-by: James <james@jan.ai>

* feat: adding API support at 1337 (#991)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>

* feat: Add /chat/completion api and handler

* chore: add todo for modelList

* chore: read engine.json for openai chat_completion (#1030)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>

* refactor: move routes to shared node module

* refactor: exported modules from core with types (#1172)

* refactor: exported modules from core with types

* fix: fix file reading args

* refactor: fileManager handles

* fix: app issues with server refactoring

* refactor: shared server module (#1210)

* chore: resolve main

* chore: update makefile

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: NamH <NamNh0122@gmail.com>
Co-authored-by: hiro <vuonghoainam.work@gmail.com>
2023-12-28 17:57:39 +07:00
Louis
7feaf9694d
feat: Deprecate model.json ready state in favor of .download ext (#1238)
* feat: Deprecate model.json ready state in favor of .download ext

* refactor: resolve ts ignore

* chore: fix warning

* fix: path polyfill on Windows
2023-12-28 14:06:13 +07:00
NamH
c580b4c848
feat: add engine settings (#1199)
* feat: add engine settings

Signed-off-by: James <james@jan.ai>
---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
2023-12-28 09:11:37 +07:00
Louis
85641741cf
fix: Cleared thread last message is not updated (#1225)
When a user clears the conversation in a thread, the last message displayed was still the old one. This led to confusion about whether or not the user had successfully cleared the conversation.
2023-12-27 15:35:36 +07:00
Louis
a7f186cc5e
feat: users should be able to switch models mid-thread (#1226)
## Problem
Right now users have to start a new thread to use another model which causes a lot of confusion to our users.

fixes #1201
2023-12-27 15:35:27 +07:00
NamH
771f445a6a
fix(Thread): #1168 fix newly created thread cannot select model after restart (#1176)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-23 11:16:58 +07:00
NamH
0c701f7c9b
fix(Thread): #1119 focus on the first thread to prevent blank chat screen (#1127)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-20 20:41:10 +07:00
Louis
e0370210a7
fix: #1096 yield error message upon thread switching (#1109) 2023-12-20 14:58:47 +07:00
Faisal Amir
9b448d478c
fix: toaster success deleted thread showing id intead of active model (#1111) 2023-12-20 14:58:31 +07:00
NamH
84fb5ef346
fix(Thread): #1042 allow create new thread by clicking Use in Jan Hub (#1103)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-19 17:06:57 +07:00
NamH
55ab4ae70f
fix(thread): #1043 default model to prefer active model (#1070)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-19 10:51:41 +07:00
Faisal Amir
aa69bc5f46 feat: copy button for code block 2023-12-18 22:42:19 +07:00
Louis
d9b0625b17 chore: read and write openai settings 2023-12-15 14:14:59 +07:00
Louis
3266014b29
fix: 963 can not run openai models on windows (#974) 2023-12-13 16:26:26 +07:00
hiro
df383e3d24
chore: remove ModelSettingParams import which is unused 2023-12-13 14:26:04 +07:00
NamH
121dc119f1
feat: adding model params (#886)
* feat: adding model params

Signed-off-by: James <james@jan.ai>

* chore: inference request parameter

* Improve ui right panel model params

* Remove unused import

* Update slider track for darkmode

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
Co-authored-by: Faisal Amir <urmauur@gmail.com>
2023-12-11 23:58:24 +07:00
Louis
c4d8defe94
refactor: deprecate invokers - auto proxying apis - strict types (#924)
* refactor: deprecate invokers

* refactor: define routes and auto proxying routes

* refactor: declare types for APIs, avoid making dynamic calls to any functions from the web

* chore: deprecate route handling from preload script

* refactor: deprecate unused apis
2023-12-11 13:10:53 +07:00
hiro
1177007ad6 fix: Update code based on comments from @james 2023-12-08 23:07:30 +07:00
hiro
fbf8ff9d3d fix: Update lint for engine in ThreadAssistantInfo 2023-12-08 23:06:49 +07:00
hiro
9daee14167 fix: Add hack waiting for model loading 2023-12-08 23:06:49 +07:00
hiro
975e9718bf chore: remove unused console.log 2023-12-08 23:06:49 +07:00
hiro
bb4b4c5c20 fix: Fix resend button with model object 2023-12-08 23:06:49 +07:00
hiro
6add24c643 fix: debugging 2023-12-08 23:06:49 +07:00
hiro
6f55cffb20 fix: Add model object to MessageRequest 2023-12-08 23:06:49 +07:00
hiro
ffbfaf1fd1 feat: Add Event OnModelStop emission to web 2023-12-08 23:06:49 +07:00
Louis
489c8584a9 chore: models ref event handler 2023-12-08 23:06:49 +07:00
hiro
1bc5fe64f3 fix: Use Events for init, load, stop models 2023-12-08 23:06:49 +07:00
Louis
9e6fdf8c94
fix/no-assistant-available-fresh-install (#876) 2023-12-06 16:17:10 +07:00
Louis
f3fbade975
fix: delete message break the entire thread (#869) 2023-12-06 11:41:16 +07:00
Louis
7656048e64
fix: can not download multiple models at once (#867) 2023-12-06 11:18:05 +07:00
Louis
07fc1a91f3
fix: empty assistant instruction by default (#855)
* fix: empty assistant instruction by default

* chore: there should be no error dialog for in-app update
2023-12-05 15:46:18 +07:00
NamH
dacb00ed37
fix: not update active model when using resend button (#834)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-04 17:40:47 +07:00
Faisal Amir
424b00338e
feat: revamp thread screen (#802)
* Make thread screen as default screen

* Blank state when user have not any model

* Cleanup topbar thread screen

* Improve style right panel

* Add instructions right panel

* Styling thread list history

* Resolve conflict

* Default title new thread

* Fix trigger panel sidebar

* Make default right panel false when no activethread

* Fix CI test

* chore: assistant instruction with system prompt

* Fix title and blank state explore the hub

* Claenup style thread screen and add buble message for assitant

* Remove unused import

* Styling more menus on thread list and right panel, and make max height textarea 400 pixel

* Finished revamp ui thread

* Finished system monitor UI

* Style box running models

* Make animate right panel more smooth

* Add status arround textarea for starting model info

* Temporary disable hide left panel

* chore: system resource monitoring update

* copy nits

* chore: typo

* Reverse icon chevron accordion

* Move my models into setting page

---------

Co-authored-by: Louis <louis@jan.ai>
Co-authored-by: 0xSage <n@pragmatic.vc>
2023-12-04 10:55:47 +07:00
NamH
1bf4c1b621
feat: pre-populate Jan's /models folder (#796)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-01 18:03:51 +07:00
Louis
1143bd3846
refactor: jan extensions (#799)
* refactor: rename plugin to extension
2023-12-01 11:30:29 +07:00
NamH
86e693b250
refactor: model plugin to follow new specs (#682)
* refactor: model plugin to follow new specs

Signed-off-by: James <james@jan.ai>

* chore: rebase main

chore: rebase main

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>
2023-11-29 11:36:59 +07:00
0xSage
1f59d7b167 chore: updated copy grammar 2023-11-28 18:15:36 +08:00
Louis
d74698a448
fix: error when switching between threads (#736)
* fix: error when switching between threads

* chore: fix model loading state
2023-11-27 16:02:41 +07:00
Louis
23c7586f15 chore: fix conversation summary threshold 2023-11-27 11:30:06 +07:00
Louis
26bd092f03 chore: Add a "clean option" to remove conversation messages while keeping system message 2023-11-27 11:30:06 +07:00
Louis
c5ede361c7 feat: allow user to give instruction for the conversation 2023-11-27 11:30:06 +07:00
Louis
ec7703ec8d chore: app raises error when attempting to start a model that is already starting 2023-11-25 20:09:30 +07:00
Faisal Amir
ff01a6e7ed fix bug filter the list menu from command and make a symbol base on OS 2023-11-25 19:58:19 +07:00
Louis
f7f1e3da74 fix: app shows wrong performance tag, all say not enough ram on windows 2023-11-23 16:21:01 +07:00
Louis
d0c44f70f1 fix: catch nitro exit process for a clearer message 2023-11-22 22:36:00 +07:00