469 Commits

Author SHA1 Message Date
NamH
101268f6f3
feat: integrating cortex (#3001)
* feat: integrating cortex

* Temporary prevent crash

Signed-off-by: James <namnh0122@gmail.com>

* fix yarn lint

Signed-off-by: James <namnh0122@gmail.com>

* refactor: remove core node module - fs - extensions and so on (#3151)

* add migration script for threads, messages and models

Signed-off-by: James <namnh0122@gmail.com>

* remove freq_penalty and presence_penalty if model not supported

Signed-off-by: James <namnh0122@gmail.com>

* add back models in my models

Signed-off-by: James <namnh0122@gmail.com>

* fix api-url for setup API key popup

Signed-off-by: James <namnh0122@gmail.com>

* fix using model name for dropdown model

Signed-off-by: James <namnh0122@gmail.com>

* fix can't click to hotkey

Signed-off-by: James <namnh0122@gmail.com>

* fix: disable some UIs

Signed-off-by: James <namnh0122@gmail.com>

* fix build

Signed-off-by: James <namnh0122@gmail.com>

* reduce calling HF api

Signed-off-by: James <namnh0122@gmail.com>

* some ui update

Signed-off-by: James <namnh0122@gmail.com>

* feat: modal migration UI  (#3153)

* feat: handle popup migration

* chore: update loader

* chore: integrate script migration

* chore: cleanup import

* chore: moving out spinner loader

* chore: update check thread message success migrate

* chore: add handle script into retry button

* remove warning from joi

Signed-off-by: James <namnh0122@gmail.com>

* chore: fix duplicate children

* fix: path after migrating model

Signed-off-by: James <namnh0122@gmail.com>

* chore: apply mutation for config

* chore: prevent calling too many create assistant api

Signed-off-by: James <namnh0122@gmail.com>

* using cortexso

Signed-off-by: James <namnh0122@gmail.com>

* update download api

Signed-off-by: James <namnh0122@gmail.com>

* fix use on slider item

Signed-off-by: James <namnh0122@gmail.com>

* fix: ui no download model or simple onboarding (#3166)

* fix download huggingface model match with slider item

Signed-off-by: James <namnh0122@gmail.com>

* update owner_logo to logo and author

Signed-off-by: James <namnh0122@gmail.com>

* update new cortexso

Signed-off-by: James <namnh0122@gmail.com>

* Add install python step for macos

* add engine table

Signed-off-by: James <namnh0122@gmail.com>

* fix local icons

Signed-off-by: James <namnh0122@gmail.com>

* feat: add search feature for model hub

Signed-off-by: James <namnh0122@gmail.com>

* fix misalign switch

Signed-off-by: James <namnh0122@gmail.com>

* fix: delete thread not focus on other thread

Signed-off-by: James <namnh0122@gmail.com>

* add get model from hugging face

Signed-off-by: James <namnh0122@gmail.com>

* fix download from hugging face

Signed-off-by: James <namnh0122@gmail.com>

* small update

Signed-off-by: James <namnh0122@gmail.com>

* update

Signed-off-by: James <namnh0122@gmail.com>

* fix system monitor rounded only on the left

Signed-off-by: James <namnh0122@gmail.com>

* chore: update ui new hub screen (#3174)

* chore: update ui new hub screen

* chore: update layout centerpanel thread and hub screen

* chore: update detail model by group

* update cortexso 0.1.13

Signed-off-by: James <namnh0122@gmail.com>

* chore: add file size

Signed-off-by: James <namnh0122@gmail.com>

* chore: put engine to experimental feature

Signed-off-by: James <namnh0122@gmail.com>

* chore: open cortex folder

Signed-off-by: James <namnh0122@gmail.com>

* chore: add back user avatar

Signed-off-by: James <namnh0122@gmail.com>

* chore: minor UI hub (#3182)

* chore: add back right click thread list and update 3 dots are overlapping with the text

* chore: update position dropdown list my models

* chore: make on-device tab showing 6 items instead of 4

* chore: update style description modals detail model

* chore: update isGeneration loader and author name on modal

* feat: integrate cortex single executable

Signed-off-by: James <namnh0122@gmail.com>

* fix build

Signed-off-by: James <namnh0122@gmail.com>

* chore: added blank state

* chore: update ui component blank state

* bump cortex binary version

* fix: logic show modal migration (#3165)

* fix: logic show modal migration

* chore: fixed logic

* chore: read contain format gguf local models

* chore: change return hasLocalModel

* chore: intiial skipmigration state

* chore: filter embedding model

* fix: delete top thread not focus on any other thread

* chore: added UI no result component search models group (#3188)

* fix: remote model should show all when user config that engine

Signed-off-by: James <namnh0122@gmail.com>

* chore: set state thread and models migration using getOnInit (#3189)

* chore: set state thread and models migration using getOnInit

* chore: add state as dependecies hooks

* chore: system monitor panel show engine model (#3192)

* fix: remove config api, replace with engine

Signed-off-by: James <namnh0122@gmail.com>

* update

Signed-off-by: James <namnh0122@gmail.com>

* update reactquery

Signed-off-by: James <namnh0122@gmail.com>

* bump cortex 0.4.35

* feat: add waiting for cortex popup

Signed-off-by: James <namnh0122@gmail.com>

* chore: add loader detail model popup (#3195)

* chore: model start loader (#3197)

* chore: added model loader when user starting chat without model active

* chore: update copies loader

* fix: select min file size if recommended quant does not exist

Signed-off-by: James <namnh0122@gmail.com>

* chore: temporary hide gpu config

* fix: tensorrt not shown

Signed-off-by: James <namnh0122@gmail.com>

* fix lint

Signed-off-by: James <namnh0122@gmail.com>

* fix tests

Signed-off-by: James <namnh0122@gmail.com>

* fix e2e tests (wip)

Signed-off-by: James <namnh0122@gmail.com>

* update

Signed-off-by: James <namnh0122@gmail.com>

* fix: adding element and correct test to adapt new UI

* fix: temp skip unstable part

* fix: only show models which can be supported

Signed-off-by: James <namnh0122@gmail.com>

* Update version.txt

* update send message

Signed-off-by: James <namnh0122@gmail.com>

* fix: not allow user send message when is generating

Signed-off-by: James <namnh0122@gmail.com>

* chore: temp skip Playwright test due to env issue

* chore: temp skip Playwright test due to env issue

* update

Signed-off-by: James <namnh0122@gmail.com>

* chore: minor-ui-feedback (#3202)

---------

Signed-off-by: James <namnh0122@gmail.com>
Co-authored-by: Louis <louis@jan.ai>
Co-authored-by: Faisal Amir <urmauur@gmail.com>
Co-authored-by: Hien To <tominhhien97@gmail.com>
Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
Co-authored-by: Van-QA <van@jan.ai>
2024-07-26 17:52:43 +07:00
Nicole Zhu
c91c755bb3
fix: jan app copy nits (#3193) 2024-07-24 16:17:43 +07:00
marknguyen1302
dddf3500ec
fix: validate path in fs (#3152)
* fix: validate path in fs

* fix other fs issue

* fix test

* fix test

* fix test

* fix: do not check file exist on model status validation

* chore: bump version

* remove copyFileSync method

---------

Co-authored-by: Louis <louis@jan.ai>
2024-07-12 14:37:16 +07:00
github-actions[bot]
28608099c5
Update cortex cpp nightly to version 0.4.20 2024-07-12 14:37:16 +07:00
NamH
68ed296258
feat: add claude 3.5 sonnet (#3129)
Signed-off-by: James <namnh0122@gmail.com>
2024-07-12 14:37:15 +07:00
NamH
26afa8acd4
fix: set specific version for terminate (#3126)
Signed-off-by: James <namnh0122@gmail.com>
2024-07-12 14:37:15 +07:00
Hoang Ha
9fb95642df
Chore: Add stop token for Gemma 2b (#3125)
* add stop token

* Bump version
2024-07-12 14:37:15 +07:00
jan-service-account
2f917dfcf3
Update cortex cpp nightly to version 0.4.18 (#3114)
* Update cortex cpp nightly to version 0.4.18

* cortex 0.4.19

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-07-12 14:37:15 +07:00
Van Pham
c93f7457c2
chore: Bump-cortex-0.4.17 (#3111) 2024-07-12 14:37:14 +07:00
NamH
31dedb5774
chore: cortex version update (#3098) 2024-07-12 14:37:14 +07:00
jan-service-account
241d98f99c
Update cortex cpp nightly to version 0.4.18 (#3072)
* Update cortex cpp nightly to version 0.4.17

* update linux downloadnitro

* c‌ortex 0.4.18

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-07-12 14:37:14 +07:00
Nathan
08c60a70c2
add time weighted retrieval (#2908)
* add time weighted retrieval

* add missing configuration for timeWeightedVectorStore

* resolving conflict

* add missing configuration for timeWeightedVectorStore

* resolving conflict

* fix linting issues

* fix build failed due to requirement for useTimeWeightedRetriever in AssistantTool

* update web packages complying the new structure

---------

Co-authored-by: thu <thu@treehouse.finance>
2024-07-12 14:37:13 +07:00
Hoang Ha
852ff18d74
bump version (#3082) 2024-06-21 16:21:20 +07:00
Hoang Ha
71a707aa77
adjust correct ngl number (#3081) 2024-06-21 14:34:38 +07:00
NamH
a91fe5c584
fix: streaming anthropic models (#3079)
Signed-off-by: James <namnh0122@gmail.com>
2024-06-21 11:47:02 +07:00
hiento09
e9e1435aff
Revert "Update cortex cpp nightly to version 0.4.12-16.06.24" (#3052) 2024-06-17 10:34:06 +07:00
github-actions[bot]
52e965a75c Update cortex cpp nightly to version 0.4.12-16.06.24 2024-06-16 11:42:23 +00:00
Hoang Ha
f702506e58
Chore: model hub v0.5.1 update (#3036)
* init model

* init qwen2

* version bump

* refactor: correct icon

* chore: Refactor/issue template feature request (#3037)

* refactor: add issue template form for bug

* refactor: config blank_issues_enabled: false

* refactor: config feature request

* refactor: config feature request

---------

Co-authored-by: Van-QA <van@jan.ai>

* refactor: correct icon

* refactor: allow blank issue

---------

Co-authored-by: Van-QA <van@jan.ai>
Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-06-13 15:06:07 +07:00
Van Pham
c7f0edae34
chore: Refactor/issue template and extension version bump (#3035)
* refactor: add issue template form for bug

* Bump extension v‌‌ersion for FA

* refactor: config blank_issues_enabled: false

---------

Co-authored-by: Van-QA <van@jan.ai>
2024-06-13 13:53:14 +07:00
Van Pham
1f5cce887a
chore: Bump-cortex-0.4.13 (#3027) 2024-06-12 16:09:17 +07:00
NamH
6ee5d16e5c
fix: duplicate role inside messages cause some model to refuse to answer (#3006)
* fix: duplicate role inside messages cause some model to refuse to answer

Signed-off-by: James <namnh0122@gmail.com>

* update

* Bump cortex to 0.4.12

* some model require not empty message

update

---------

Signed-off-by: James <namnh0122@gmail.com>
Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-06-10 16:19:31 +07:00
Realmbird
d6bd493d93
Added NVIDIA API to new jan after jan rework (#2934)
* Added NVIDIA API to new jan

* Changed paramters

* chore: some small text update

- remove databrick since it does not work when I tested
- correct some texts

---------

Co-authored-by: James Nguyen <jamesnguyen@Jamess-Laptop.local>
2024-06-04 12:20:43 +07:00
NamH
d7f161f668
fix: scan the models folder recursive to find model metadata file (#2982)
Co-authored-by: James <james@jan.ai>
2024-06-04 10:14:11 +07:00
NamH
0a150b373c
chore: upgrade version model extension for hf auth token (#2983)
Co-authored-by: James <james@jan.ai>
2024-06-03 13:46:29 +07:00
NamH
02478b3242
feat: add input actions for setting item (#2978)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2024-06-02 22:41:27 +07:00
NamH
4edef30e0e
feat: allow user to register their access token (#2974)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2024-05-31 13:15:06 +07:00
Hoang Ha
bd5a0ea8ab
Chore: Model Hub update (#2966)
* fix: correct size

* version bump

* add: codestral 22b

* add: codestral 22b

* versino bump

* upgrade to v3

* Update stop token default-model.json 

confirmed with Rex

* fix: whitespace

---------

Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-05-30 12:33:47 +07:00
Van Pham
9ac5696e35
chore/Bump-cortex-0.4.11 (#2962) 2024-05-29 17:57:41 +07:00
Hoang Ha
25daba9696
Chore: aya update (#2941)
* init

* init

* fix: correct format

* version bump

* add: aya 8b, aya 35b, phi3

* fix: stop token

* fix: stop token
2024-05-24 18:10:23 +07:00
Van Pham
9cf9fa0dd3
Bump cortex to 0.4.9 (#2940) 2024-05-24 13:01:25 +07:00
Van Pham
f7c089c765
Bump cortex to 0.4.8 (#2938) 2024-05-22 21:21:02 +07:00
Hoang Ha
385ebb7750
Chore: phi3 long-context update (#2936)
* init

* init

* fix: correct version

* version bump

* correct url

* remove small

* correct size
2024-05-22 21:20:42 +07:00
Hoang Ha
65b8d8e66b
Fix: Phi-3 doesn't display (#2928)
* fix: params correction

* add phi

* version bump
2024-05-20 23:45:06 +07:00
Louis
e78d057f0f
fix: cortex process is not terminated properly (#2921)
* chore: bump cortex-cpp to 0.4.6

* Bump cortex 0.4.7

---------

Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-05-18 14:14:56 +07:00
Louis
537ef20a54
chore: replace nitro by cortex-cpp (#2912) 2024-05-16 17:46:49 +07:00
Hoang Ha
218259945f
Chore: Add phi3 (#2914)
* init

* version bump

* fix: correct template
2024-05-16 14:58:21 +07:00
Louis
1130979008
fix: cohere stream param does not work (#2907) 2024-05-15 17:27:37 +07:00
Hoang Ha
eb7e96393b
add: gpt4o (#2899) 2024-05-14 14:16:12 +07:00
Hoang Ha
1e0d4f3753
Feat: Adjust model hub v0.4.13 (#2879)
* fix: correct phi3

* redundant phi2 dolphin

* add: hermes llama3

* add: ngl settings

* correct ctx len

* correct ngl

* correct maxlen + ngl

* disable phi3

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* remove redundant  hermes pro

* add ngl

* add ngl

* add ngl

* remove miqu

* add ngl

* add ngl

* add ngl

* add ngl

* remove redundant

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* add ngl

* version package bump

* feat: resolve issue of cannot found model in the extensions due to the removal

* feat: completely remove hermes-pro-7b

* feat: completely remove openhermes-neural-7b and miqu-70b, and add llama3-hermes-8b via renaming from Rex

* fix: correct description

---------

Co-authored-by: Van-QA <van@jan.ai>
2024-05-13 11:48:03 +07:00
Henry
efbc96dad9
feat: inference anthropic extension (#2885)
* feat: implement inference anthropic extension

* chore: format style and correct typo of other extensions
2024-05-11 19:22:05 +07:00
Hoang Ha
2008aae100
Feat: Correct context length for models (#2867)
* fix: correct ctx

* version bump

* fix: correct ctxlen

* fix: correct ctxlen

* version bump

* fix: correct ctx + q4

* fix: correct ctxlen

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx len

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* fix: correct ctx

* version bump
2024-05-06 18:04:51 +07:00
Inchoker
d2266405cc
Add OpenRouter (#2826)
* Add OpenRouter

* fix cohere setting description

* fix: update to auto router

* fix: auto router

* add: config parameters

* fix: correct max tokens

---------

Co-authored-by: Jack Tri Le <Jack>
Co-authored-by: Hoang Ha <64120343+hahuyhoang411@users.noreply.github.com>
2024-05-06 17:36:52 +07:00
Henry
1e3e5a83f4
feat/implement-inference-martian-extension (#2869) 2024-05-06 15:24:07 +07:00
Henry
86fda1cf6c
feat: add model gpt-4 turbo (#2836)
* feat: add model gpt-4 turbo

* fix: correct naming

---------

Co-authored-by: Hoang Ha <64120343+hahuyhoang411@users.noreply.github.com>
2024-05-06 10:43:15 +07:00
Henry
4c88d03aa5
feat: add remote model command-r (#2868) 2024-05-06 10:37:57 +07:00
Hoang Ha
092a572684
Feat: Remote API Parameters Correction (#2802)
* fix: change to gpt4 turbo

* add: params

* fix: change to gpt 3.5 turbo

* delete: redundant

* fix: correct description

* version bump

* add: params

* fix: version bump

* delete: deprecated

* add: params

* add: new model

* chore: version bump

* fix: version correct

* add: params

* fix: version bump

* fix: change to gpt4 turbo

* add: params

* fix: change to gpt 3.5 turbo

* delete: redundant

* fix: correct description

* version bump

* add: params

* fix: version bump

* delete: deprecated

* add: params

* add: new model

* chore: version bump

* fix: version correct

* add: params

* fix: version bump

* fix: llama2 no longer supported

* fix: reverse mistral api

* fix: add params

* fix: mistral api redundant params

* fix: typo

* fix: typo

* fix: correct context length

* fix: remove stop

---------

Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com>
2024-05-04 15:44:19 +07:00
Louis
63a2f22414
Merge branch 'dev' into main 2024-04-25 14:14:54 +07:00
Hoang Ha
355ed9ff4f
Merge pull request #2812 from janhq/fix/model-version
Feat: Bump version
2024-04-24 22:48:29 +07:00
Hoang Ha
f9a8e06a4f
fix: version bump 2024-04-24 22:46:56 +07:00
Hoang Ha
eb3593e96a
fix: bump version 2024-04-24 22:24:22 +07:00