116 Commits

Author SHA1 Message Date
Louis
54750ed315
fix: mac users should not see GPU settings (#1255) 2023-12-29 16:45:40 +07:00
Louis
850a42cfb0
fix: engine settings GUI - feature toggle (#1252)
## Description
This feature is not fully implemented.
Blocking issues: #1250
2023-12-29 16:10:10 +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
cbc63da831
fix: #1183 Reveal in finder does not work on windows (#1239)
* fix(OpenFile): #1183 reveal in finder does not work on windows

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

Signed-off-by: James <james@jan.ai>
2023-12-28 13:00:20 +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
Faisal Amir
7c1d1efd4e
fix: enable enter command on dialog confirmation delete thread (#1218)
* fix: enable enter command on dialog confirmation delete thread

* fix: update copy delete thread dialog confirmation
2023-12-27 15:38:04 +07:00
Faisal Amir
4cd7466659 feat: temporary link how to import model 2023-12-26 15:37:16 +07:00
Faisal Amir
dd0a18ad1d fix: darkmode broken color 2023-12-25 11:28:07 +07:00
0xSage
cf4de3f30f chore: copy fixes 2023-12-22 12:11:09 +08:00
Faisal Amir
c95c765812 fix: added dialog confimation clean thread 2023-12-21 10:34:54 +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
2fb7bfc020
fix: ui issue - all models are activated (#1120) 2023-12-20 16:39:50 +07:00
Louis
5a0cec931e
fix: should not hide empty message away (#1116) 2023-12-20 15:53:27 +07:00
Faisal Amir
040987d1cd
fix: remote model always active badges (#1113)
* fix: remote model always active badge and doesn't have menu start and stop model

* fix: remote model condition check

---------

Co-authored-by: Louis <louis@jan.ai>
2023-12-20 15:11:55 +07:00
Louis
a485fa9c1f
fix: handle chat completion state with enter button (#1114) 2023-12-20 14:59:40 +07:00
Louis
e0370210a7
fix: #1096 yield error message upon thread switching (#1109) 2023-12-20 14:58:47 +07:00
Faisal Amir
e21cbc752a
fix: update copy setting page (#1105) 2023-12-20 10:44:06 +07:00
Faisal Amir
e71070ac03 fix: search recommended model 2023-12-19 21:16:58 +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
Faisal Amir
ed04d850c1 fix: update copy dialog confimation delete thread 2023-12-19 14:09:23 +07:00
Faisal Amir
6efc52f3bd fix: added dialog confirmation when delete thread 2023-12-19 14:09:23 +07:00
NamH
7a148ea025
feat(ModelSetting): #1065 update state of model setting between threads (#1090)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-19 13:15:15 +07:00
Faisal Amir
c1800b8f57 fix: system monitor broken layout when responsive 2023-12-19 12:37:55 +07:00
Faisal Amir
99acaffd2c fix: showig placeholder when model metadata size is empty 2023-12-19 10:52:22 +07:00
Faisal Amir
87facacb9a fix: autoresize chatbox textarea 2023-12-19 10:52:22 +07:00
Faisal Amir
aa69bc5f46 feat: copy button for code block 2023-12-18 22:42:19 +07:00
0xSage
c556427905 more copy nits 2023-12-15 16:33:49 +08:00
0xSage
6158f8593a chore: in app copy fixes 2023-12-15 16:24:15 +08:00
Faisal Amir
a83a3d4565 feat: app theme depend on localstorage instead native theme electron 2023-12-14 20:14:44 +07:00
Louis
cb3055ca2e
fix: #995 - Fix onboarding state and model sorting (#1009)
* fix: #995 - Fix onboarding state and model sorting

* fix: typo
2023-12-14 20:11:17 +07:00
Faisal Amir
4f41dab9b5 feat: move stop inference button into the send button 2023-12-14 16:40:51 +07:00
Faisal Amir
01939afb40 fix: separate model start loader 2023-12-14 13:42:21 +07:00
Faisal Amir
c17a4fec6e feat: fake loader when starting model 2023-12-14 13:42:21 +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
Louis
b939692187 chore: stop inference event 2023-12-08 23:07:30 +07:00
hiro
fb8729bff3 fix: Check model engine openai for Use 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
Faisal Amir
e836eb1a2e Remove console.log 2023-12-07 15:05:26 +07:00
Faisal Amir
f033360fdb fix formatting syntax 2023-12-07 15:05:26 +07:00
Faisal Amir
004b7b8a64 bug: fix tag description showing a title and fix card right panel 2023-12-06 16:17:55 +07:00
Louis
a3bc76892c
chore: update model ranking (#874)
* fix/models-sorting-order

* fix: cover height should be fixed
2023-12-06 14:21:42 +07:00
Faisal Amir
d63c9c3d46 Add cover image model hub screen 2023-12-06 13:05:39 +07:00
Louis
f3fbade975
fix: delete message break the entire thread (#869) 2023-12-06 11:41:16 +07:00
NamH
aa8e700be5
fix: update wrong main view state when use a model (#861)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-12-05 18:21:03 +07:00
Louis
848bdbc148
fix: handle crash issue on hljs highlighting (#859) 2023-12-05 16:30:47 +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
Faisal Amir
27b62ed91a Temporary hide tabs element on hub screen 2023-12-05 10:34:55 +07:00