182 Commits

Author SHA1 Message Date
Faisal Amir
f8557c78d5
fix: think content render as markdown (#4564)
* fix: think content render as markdown

* chore: fix linter issue failed on CI
2025-02-04 14:54:21 +07:00
Faisal Amir
899f01d5c4
enhancement: update ui uploading files and images (#4562) 2025-02-03 20:36:19 +07:00
Faisal Amir
043284f51e
chore: reasoning block (#4551)
* chore: reasoning text block

* chore: update interface support all theme

* chore: update failed test

* chore: update state collapsed based on message index

* fix: use reserve_id instead of message index

* chore: clean up

* chore: fix loading indicator

---------

Co-authored-by: Louis <louis@jan.ai>
2025-02-01 22:22:45 +07:00
Faisal Amir
010802012f
fix: broken range slider ctx lenght (#4535) 2025-01-28 23:15:02 +07:00
Faisal Amir
65c9bb9fe1
enhancement: update app layout with system monitor open (#4528) 2025-01-28 12:33:03 +07:00
Louis
a8cac58355
chore: refactor - clean out useEngines - mutate swr to update 2025-01-17 12:43:35 +07:00
Louis
f328c357da
fix: remote engine revamp issues 2025-01-17 11:32:13 +07:00
Louis
1affa5a144
fix: app crashes on select cloud model first time onboarding 2025-01-16 19:59:22 +07:00
Ashley
4e387a79f7
Merge pull request #4448 from janhq/chore/update-in-app-copy
Chore: Update in-app copy
2025-01-15 11:11:37 +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
Ashley
1174772958 Updated some copies in Settings 2025-01-14 22:13:10 +07:00
Ashley
97cd0224f1 Updated parameters descriptions 2025-01-14 20:54:26 +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
Faisal Amir
3f2d2ef10d
enhancement: instruction textare using autoresize (#4404) 2025-01-06 14:45:39 +07:00
Louis
d17c2ea5e5
fix: input scrolls to the bottom when set the caret to the top (#4399)
* fix: input scrolls to the bottom on long inputs

* test: fix failed tests
2025-01-03 23:47:27 +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
3af34c0d56
chore: Refactor thread state management (#4350)
* chore: Refactor thread state management

• Replace isGeneratingResponseAtom with isBlockingSendAtom
• Update dependencies in ChatBody, ChatInput, and MessageToolbar components
• Remove unused code and variables

* chore: clean states
2024-12-29 23:05:07 +07:00
Faisal Amir
c0f3fb5007
fix: regenerate scroll bottom (#4348) 2024-12-29 20:58:46 +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
Faisal Amir
e8e5c8c5f4
fix: disabled native resize textarea when textarea autogrowing (#4326)
* fix: disabled native resize textarea when textarea autogrowing

* fix: disabled auto resize on instruction field
2024-12-23 20:39:22 +07:00
Faisal Amir
56d1ffa136
fix: scroll bottom when generation text (#4323)
* fix: scroll bottom when generation text

* chore: update logic when prepare generate

* chore: fix case no switch thread

* chore: remore dep thread id

* chore: handle fix generation without have dep thread id
2024-12-23 17:55:51 +07:00
Louis
df1c465fd9
fix: app picks model automatically edge cases (#4322) 2024-12-23 15:52:18 +07:00
Faisal Amir
abb718c57f
fix: width inputbox based on preference and remove tooltip image upload (#4315) 2024-12-23 12:14:49 +07:00
Faisal Amir
af84a3a8d9
fix: scroll bottom issue (#4308) 2024-12-20 22:39:08 +07:00
Faisal Amir
714097851a
fix: escape heading on user message item (#4301) 2024-12-19 22:38:55 +07:00
Faisal Amir
c7a5cb52e3
fix: conditional render model setting based on selected model (#4300) 2024-12-19 22:12:24 +07:00
Louis
a1ea94aeca
fix: attach file information into message metadata for a quick retrieval (#4298) 2024-12-19 22:01:13 +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
fd45e7e47f
Merge pull request #4295 from janhq/fix/no-new-thread-created-on-factory-reset
fix: new thread isn't automatically created on factory reset
2024-12-19 14:14:10 +07:00
Louis
b81b008a93
chore: use seconds timestamp system 2024-12-19 11:38:10 +07:00
Louis
4cd0e63029
fix: create new thread with default assistant 2024-12-19 11:16:17 +07:00
Louis
bdcc3ef48c
chore: fix role 2024-12-19 10:51:13 +07:00
Faisal Amir
8663a7e4bf
fix: scroll to bottom issue (#4289) 2024-12-19 10:35:00 +07:00
Faisal Amir
ffdea36b18
fix: empty tooltip on attachment icon, also fix z-index (#4290) 2024-12-19 09:22:58 +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
Faisal Amir
f2db31781e
feat: add chat width setting option for thread (#4278) 2024-12-17 13:36:15 +07:00
Faisal Amir
0164db2139
fix: starter screen layout (#4279) 2024-12-17 13:33:24 +07:00
Louis
2410de0ba9
Merge branch 'dev' into feat/threads-messages-requests-to-backend 2024-12-17 10:02:48 +07:00
cuhong
294d7ec602
Merge branch 'dev' into fix/cjk-input-issue 2024-12-17 02:32:52 +09:00
Louis
b91c3c8e75
test: fix test case 2024-12-16 22:57:06 +07:00
Louis
8cc24df902
chore: clean up 2024-12-16 20:48:10 +07:00
Louis
1de98873c1
fix: linter 2024-12-16 18:28:53 +07:00
Louis
d09b1b7a87
fix: linter 2024-12-16 17:53:59 +07:00
Louis
bb106eba01
fix: image and attachments 2024-12-16 17:27:06 +07:00
hongchan-ui
6efdb74027 chore: Fix linter issue by adjusting onKeyDown logic formatting to Prettier standard
- Refactored condition in `onKeyDown` function for better readability.
- Resolved Prettier lint error by adding line breaks and proper indentation.
2024-12-16 18:47:30 +09:00
Faisal Amir
e5a2d41206
enhancement: move token speed to bottom (#4276) 2024-12-16 15:06:17 +07:00
cuhong
3272c30b20
Merge branch 'dev' into fix/cjk-input-issue 2024-12-13 16:56:46 +09:00