15 Commits

Author SHA1 Message Date
perf3ct
e401c8c930
fix(client): also move the logic from the server to the client lol 2025-06-11 14:30:33 +00:00
perf3ct
23ce896681
feat(client): show warning when running through rosetta 2 2025-06-11 14:04:42 +00: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 +03:00
perf3ct
44a45780b7
feat(llm): remove everything to do with embeddings 2025-06-07 18:11:12 +00: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 +03:00
perf3ct
49e123f399
feat(llm): create endpoints for starting/stopping embeddings 2025-06-05 18:47:25 +00:00
perf3ct
52fb5fa298
feat(server): add metrics endpoint and functionality 2025-05-26 19:50:04 +00:00
Elian Doran
8b11f25f0c
chore(highlightjs): introduce client-level list of themes 2025-05-18 17:12:45 +03:00
Elian Doran
a333f8a59a
fix(server): async routes causing transaction issues 2025-05-14 22:58:53 +03:00
Elian Doran
c8ace1e0b2
refactor(server): use separate method for async route 2025-05-14 22:30:02 +03:00
Elian Doran
6f3339211c
refactor(server): separate routes from route API 2025-05-14 22:11:30 +03:00
Elian Doran
e817a55660
chore(nx/server): fix api_docs_js_1.default.register is not a function 2025-04-22 21:35:09 +03:00
Elian Doran
b2af043110
chore(nx/server): move source code 2025-04-22 17:16:41 +03:00
Elian Doran
62dbcc0a2e
chore(nx): move all monorepo-style in subfolder for processing 2025-04-22 10:06:06 +03:00
Elian Doran
5058891af8
chore(monorepo/server): move server-side source code 2025-04-18 12:09:56 +03:00