Commit Graph

620 Commits (feat/llm-add-warning)

Author SHA1 Message Date
perf3ct 0ce5307c0b
fix(llm): well this has been using the wrong value the whole time 2025-06-07 23:16:44 +07:00
perf3ct d8bbece02a
feat(e2e): llm tests mostly pass 2025-06-07 23:07:54 +07:00
perf3ct bb483558b0
feat(llm): add e2e tests for llm 2025-06-07 22:41:55 +07:00
perf3ct 7f9ad04b57
feat(llm): create unit tests for LLM services 2025-06-07 21:03:54 +07:00
Elian Doran ebb1654d0e
Merge pull request #2205 from TriliumNext/feat/llm-remove-embeddings
Remove Embeddings from LLM feature
2025-06-07 22:54:05 +07:00
perf3ct ff37050470
fix(llm): delete provider_manager for embeddings too 2025-06-07 19:33:19 +07:00
perf3ct b0d804da08
fix(llm): remove the vectorSearch stage from the pipeline 2025-06-07 18:57:08 +07:00
perf3ct 4550c12c6e
feat(llm): remove everything to do with embeddings, part 3 2025-06-07 18:30:46 +07:00
perf3ct 44a2e7df21
feat(llm): remove everything to do with embeddings, part 2 2025-06-07 18:20:06 +07:00
Elian Doran bed3c61142
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-07 21:15:38 +07:00
perf3ct 44a45780b7
feat(llm): remove everything to do with embeddings 2025-06-07 18:11:12 +07:00
Elian Doran 7281233012
chore(build): enable source maps 2025-06-07 20:12:13 +07:00
Elian Doran 4def18e882
fix(desktop): query parameters not working 2025-06-07 18:46:29 +07:00
Elian Doran 03024ef7a9
chore(desktop): bypass query error 2025-06-07 15:59:17 +07:00
Elian Doran 9907f7f60f
fix(desktop): CLS failing due to lack of listeners 2025-06-07 15:45:56 +07:00
Elian Doran ebeabe2b54
fix(desktop): adapt request mocking to express 5 2025-06-07 14:58:07 +07:00
Panagiotis Papadopoulos 0bc91349f6
refactor(routes/custom): update path "/custom/*path" for express v5 2025-06-07 14:21:37 +07:00
Panagiotis Papadopoulos 23297c9860
fix(routes): remove unused wildcard in apiRoute "/api/options/:name/:value*"
the updateOption function that handles the req.param is just destructuring `const { name, value } = req.params;` and does nothing else with the path or any params.
The remaining parts of the wildcard (which can be accessed via req.param[0]) are just ignored here.

even with express v4, this would *always* just take and process the very first part of the path, in the exact wildcard's place, e.g.

`/api/options/locale/de` and
`/api/options/locale/de/test/whatever`
would *both* end up destructuring "value" from req.param as "de" (because it is in the exact place of the 'value' wildcard)

in express v5 the wildcard behaviour changes -> here req.param.value would return an array with the paths split into separate string.

but since the code previously regarded only the first part of the path -> we can just get rid of the wildcard and use a named route param

the only thing to keep in mind: if a request with more than one "value" is received, (e.g. `/api/options/locale/de/test/whatever`) -> since we don't have the wildcard anymore  -> this will turn to a 404.
IMHO that is actually desirable here though
2025-06-07 14:21:35 +07:00
renovate[bot] 086bd10f84
fix(deps): update dependency express to v5 2025-06-07 11:15:22 +07:00
Jin bffb47645c fix: 🐛 fix SSO icon loading 2025-06-07 12:10:41 +07:00
Jin 4cafd83c25 feat: 🎸 set SSO login page ui 2025-06-07 12:10:41 +07:00
Jin db3bf4c12c feat: 🎸 set SSO login logic 2025-06-07 12:10:41 +07:00
Jin fa44a5343b feat: 🎸 support custon oidc server 2025-06-07 12:10:41 +07:00
Elian Doran c8b3cdf01b
feat(ci): introduce RelativeCI for the client 2025-06-07 13:02:37 +07:00
Elian Doran 408dcf7713
chore(release): prepare for v0.94.1 2025-06-07 12:46:18 +07:00
Elian Doran 4fd99e1728
docs(user): describe session management 2025-06-07 12:38:06 +07:00
Elian Doran 7a04c8a7fd
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-07 12:04:16 +07:00
Elian Doran 68631150af
chore(test): adjust timeout 2025-06-07 12:04:14 +07:00
Elian Doran 9ead5abc62
Merge pull request #2181 from TriliumNext/feat/llm-change-to-single-provider
LLM integration, part 4
2025-06-07 11:38:30 +07:00
Elian Doran a7f4bcda8f
fix(test): wrong assertion after changing expiration interval 2025-06-07 11:38:18 +07:00
Elian Doran 68163f90d1
fix(server): keep session cookies up to to 24h (closes #2196) 2025-06-07 11:28:30 +07:00
Elian Doran dc35ad9ace
fix(server): type errors due to session management 2025-06-07 11:27:07 +07:00
Elian Doran 244a162e42
feat(server): renew session when "Remember me" is off 2025-06-07 11:12:36 +07:00
Elian Doran f8ded7b171
test(server): sessions are cleaned up 2025-06-07 10:47:02 +07:00
Elian Doran 3cf35f9e0c
refactor(test): group login tests 2025-06-07 10:33:02 +07:00
Elian Doran 8516df8f9b
test(server): ensure session expiry date is well set 2025-06-07 10:10:04 +07:00
Elian Doran e003ec3b6f
test(server): ensure session info exists 2025-06-07 10:03:53 +07:00
Elian Doran 2ceab66b98
refactor(server): augment session data instead of replacing it at request level 2025-06-07 09:55:19 +07:00
perf3ct cb3844e627
fix(llm): fix duplicated text when streaming responses 2025-06-07 00:27:56 +07:00
perf3ct 6bc9b3c184
feat(llm): resolve sending double headers in responses, and not being able to send requests to ollama 2025-06-07 00:02:26 +07:00
perf3ct 20ec294774
feat(llm): still work on decomplicating provider creation 2025-06-06 20:30:24 +07:00
Elian Doran acaaf1f1f4
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-06 23:26:34 +07:00
Elian Doran c18451a378
fix(server): no longer working subdir due to assets (fixes #2098) 2025-06-06 23:26:30 +07:00
perf3ct 8f33f37de3
feat(llm): for sure overcomplicate what should be a very simple thing 2025-06-06 20:11:33 +07:00
perf3ct 85cfc8fbd4
feat(llm): have OpenAI provider not require API keys (for endpoints like LM Studio) 2025-06-06 19:22:39 +07:00
Elian Doran 091cd7a18a
fix(server): totp asked even if no authentication is enabled 2025-06-06 16:17:21 +07:00
Elian Doran 63a6f00a47
chore(server): add logs to debug missing session 2025-06-06 09:27:51 +07:00
renovate[bot] bc09c6f217
chore(deps): update dependency openai to v5.1.1 2025-06-06 01:30:50 +07:00
perf3ct c26b74495c
feat(llm): remove LLM deprecated functions 2025-06-05 22:34:20 +07:00
perf3ct 3a4bb47cc1
feat(llm): embeddings work and are created when launching for the first ever time 2025-06-05 21:03:15 +07:00