335 Commits

Author SHA1 Message Date
Louis
9579e8647b
fix: empty response on some generation attempts (#4454) 2025-01-15 19:26:54 +07:00
Doan Bui
ffec1cfde3
feat: delete all threads (#4446)
* add delete all threads

* add testcase

* add testcase

* fix lint

* fix linter

* fix linter

* change position Delete All Threads
2025-01-15 11:00:31 +07:00
Faisal Amir
2a0601f75a
feat: remote engine management (#4364)
* feat: remote engine management

* chore: fix linter issue

* chore: remove unused imports

* fix: populate engines, models and legacy settings (#4403)

* fix: populate engines, models and legacy settings

* chore: legacy logics update configured remote engine

* fix: check exist path before reading

* fix: engines and models persist - race condition

* chore: update issue state

* test: update test cases

* chore: bring back Cortex extension settings

* chore: setup button gear / plus based apikey

* chore: fix remote engine from welcome screen

* chore: resolve linter issue

* chore: support request headers template

* chore: update engines using header_template instead of api_key_template

* chore: update models on changes

* fix: anthropic response template

* chore: fix welcome screen and debounce update value input

* chore: update engines list on changes

* chore: update engines list on change

* chore: update desc form add modal remote engines

* chore: bump cortex version to latest RC

* chore: fix linter

* fix: transform payload of Anthropic and OpenAI

* fix: typo

* fix: openrouter model id for auto routing

* chore: remove remote engine URL setting

* chore: add cohere engine and model support

* fix: should not clean on app launch - models list display issue

* fix: local engine check logic

* chore: bump app version to latest release 0.5.13

* test: fix failed tests

---------

Co-authored-by: Louis <louis@jan.ai>
2025-01-14 17:29:56 +07:00
Louis
b4d2176280
Merge pull request #4408 from janhq/main
Sync release 0.5.13 into dev
2025-01-06 21:01:49 +07:00
Louis
4b6eceb339
fix: max_tokens revert back to 8192 automatically when creating a new thread 2025-01-03 12:54:21 +07:00
Louis
da55b46240
Merge pull request #4360 from janhq/main
chore: sync latest main into dev
2024-12-30 22:37:02 +07:00
Faisal Amir
a6a0cb325b
feat: local engine management (#4334)
* feat: local engine management

* chore: move remote engine into engine page instead extension page

* chore: set default engine from extension

* chore: update endpoint update engine

* chore: update event onEngineUpdate

* chore: filter out engine download

* chore: update version env

* chore: select default engine variant base on user device specs

* chore: symlink engine variants

* chore: rolldown.config in mjs format

* chore: binary codesign

* fix: download state in footer bar and variant status

* chore: update yarn.lock

* fix: rimraf failure

* fix: setup-node@v3 for built-in cache

* fix: cov pipeline

* fix: build syntax

* chore: fix build step

* fix: create engines folder on launch

* chore: update ui delete engine variant with modal confirmation

* chore: fix linter

* chore: add installing progress for Local Engine download

* chore: wording

---------

Co-authored-by: Louis <louis@jan.ai>
2024-12-30 17:27:51 +07:00
Louis
81ad90b951
fix: stop button is gone after switching to a new model (#4356) 2024-12-30 14:30:34 +07:00
Louis
9b8d8ab3f7
chore: bump cortex 1.0.7 RC (#4355)
* chore: bump cortex 1.0.7 rc

* chore: test update
2024-12-30 13:37:16 +07:00
Louis
16dce88a75
chore: don't stop inference and hide the stop button when creating a new thread (#4354) 2024-12-30 12:32:44 +07:00
hiento09
bd0e525d66
chore: upgrade to turbo v2 and reduce ci quality gate runtime (#4324)
* chore: upgrade to turbo v2 and reduce ci quality gate runtime

* chore: upgrade to yarn v4 and deprecate turborepo

* chore: reconfigure modules and fix tests

* chore: switch to github-hosted runner

* fix: dependency resolving

* chore: clean redundant step

* chore: headless test

* chore: remove headed param

* fix: resolve dependency version

* fix: ubuntu no-sandbox test

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
Co-authored-by: Louis <louis@jan.ai>
2024-12-29 17:46:15 +07:00
Louis
a720affd93
fix: thread reset state 2024-12-26 19:12:10 +07:00
Louis
5931dbede3
fix: send message button state reset on stop 2024-12-26 19:06:24 +07:00
Louis
b28cac7083
fix: render performance while generating messages (#4328) 2024-12-23 21:04:37 +07:00
Louis
df1c465fd9
fix: app picks model automatically edge cases (#4322) 2024-12-23 15:52:18 +07:00
Louis
9c4dcd38a8
fix: update thread's title edge cases (#4320) 2024-12-23 15:24:02 +07:00
Louis
1f4c00dc41
fix: change theme settings do not work after relocated data folder (#4317) 2024-12-23 13:09:26 +07:00
Louis
24222679fb
fix: cleaning a thread should just clear out messages (#4316)
* fix: cleaning a thread should just clear out messages

* chore: clean up
2024-12-23 12:35:30 +07:00
Louis
4e43f9798d
fix: fetch threads and messages without limiting (#4304)
* fix: threads and messages are cutoff

* fix: threads sorting

* chore: bump cortex latest release and app version
2024-12-20 17:55:23 +07:00
Louis
11f4f20120
fix: thread error handling 2024-12-20 16:34:54 +07:00
Louis
a1ea94aeca
fix: attach file information into message metadata for a quick retrieval (#4298) 2024-12-19 22:01:13 +07:00
Louis
4489af6ad9
chore: deprecate Jan core's REST module - all API requests go to cortex.cpp (#4297) 2024-12-19 21:37:37 +07:00
Faisal Amir
0271774773
enhancement: set recommend model to undefined if no model available (#4296)
* enhancement: set recommend model to undefined if not lastUsedModel

* chore: update logic
2024-12-19 14:14:42 +07:00
Louis
9c5bda758d
Merge pull request #4294 from janhq/fix/context-length-is-reset-on-thread-create
fix: context length is reset while creating a new thread
2024-12-19 10:02:13 +07:00
Louis
b14c09dc00
fix: context length is reset while creating a new thread 2024-12-18 17:41:37 +07:00
Faisal Amir
7d07e995ab
feat: handle case thread when original model deleted (#4280) 2024-12-18 18:37:26 +08:00
Louis
8613e35c15
fix: timestamp issue 2024-12-17 17:12:03 +07:00
Louis
66e37d80d6
fix: attachment preview issue 2024-12-17 16:07:11 +07:00
Louis
8cc24df902
chore: clean up 2024-12-16 20:48:10 +07:00
Louis
bb106eba01
fix: image and attachments 2024-12-16 17:27:06 +07:00
Louis
5a4c5eee83
Merge branch 'dev' into feat/threads-messages-requests-to-backend 2024-12-13 13:12:57 +07:00
Louis
f6ba447f1b
test: update test cases 2024-12-12 16:38:56 +07:00
Louis
174f1c7dcb
feat: reroute threads and messages requests to the backend 2024-12-12 16:38:55 +07:00
Louis
aac2216aef
fix: 4238 - fix default max_tokens set on remote models 2024-12-12 13:20:39 +07:00
Louis
fe190658c1
fix: 4209 - Inconsistent max tokens value persistence 2024-12-04 12:31:40 +07:00
Louis
7f8517afc5
fix: 4165 - Refactor message builder to avoid sending empty messages 2024-12-03 15:16:48 +07:00
Louis
304ae4fbc8
test: update test case 2024-11-30 19:27:29 +07:00
Louis
339917c131
fix: Glitch theme applies on launch. 2024-11-30 19:04:49 +07:00
Louis
0485134343
fix: token speed should not be calculated based on state updates 2024-11-29 09:34:38 +07:00
Faisal Amir
9a3a8d1464 fix: remove filter on recommend model 2024-11-28 21:46:30 +07:00
Faisal Amir
7bd59f0c84
fix: default local model from starter screen (#4151)
* fix: default local model starter screen

* chore: update logic recommend model

* chore: cleanup import
2024-11-28 13:49:20 +07:00
Louis
3a68f29c0f
fix: app re-render issues caused by bad state handling 2024-11-27 22:48:41 +07:00
Louis
8642588694
Merge pull request #4141 from janhq/fix/wrong-component-wrapping-cause-excessive-app-rerender
fix: wrong component wrapping and state handling cause excessive app re-render
2024-11-27 20:10:54 +07:00
Louis
6d1d890fd0
test: correct test cases 2024-11-27 18:37:04 +07:00
Louis
eab19b30cf
fix: wrong component wrapping cause excessive app rerender 2024-11-27 18:11:57 +07:00
Louis
e0f1330e3a
test: fix test case 2024-11-27 17:01:04 +07:00
Louis
873dd41460
fix: 4098 - factory reset closes the app & never opens again on Linux 2024-11-27 15:27:59 +07:00
Louis
614cf7774f
fix: 4086 - editing message should not send follow-up messages 2024-11-25 17:31:05 +07:00
Faisal Amir
dd308db17b
fix: auto select model when finished download from starter screen (#4083) 2024-11-22 12:52:37 +07:00
Louis
f709c7723f
fix: factory reset hang on wiping data 2024-11-21 23:10:48 +07:00