3605 Commits

Author SHA1 Message Date
perf3ct
aadb8cce5d
fix the duplicated...messages through the websocket? 2025-04-15 01:29:12 +00:00
perf3ct
3bddb60ecc
get anthropic sdk to send tools
nice

close

what is even going on lol

anthropic tools mostly work
2025-04-15 01:08:25 +00:00
perf3ct
2bc2aa857f
wooo, tool execution container shows for openai 2025-04-14 20:15:14 +00:00
perf3ct
c04e3b2c89
okay openai tool calling response is close to working 2025-04-14 19:39:29 +00:00
perf3ct
6750467edc
Merge branch 'develop' into ai-llm-integration 2025-04-14 19:27:08 +00:00
perf3ct
7c97493b5c
fix the note_creation tool 2025-04-14 19:13:53 +00:00
perf3ct
e65c5ddd46
Do a better job of not having the frontend lockup if the session doesn't exist 2025-04-14 19:06:26 +00:00
Elian Doran
5675e6366b
chore(api): document getWeekNote 2025-04-14 18:36:54 +03:00
perf3ct
9a68155edc
saving chats finally works again, even if the UI is kinda...broken
wow
2025-04-13 21:26:43 +00:00
perf3ct
f252f53e82
Yeah, this kinda looks okay for tool execution 2025-04-13 20:12:17 +00:00
perf3ct
c9bb0fb219
put more websocket logic into the stream handler 2025-04-13 19:44:04 +00:00
perf3ct
d1edf59f97
well this at least allows for streaming responses when no tool calls are made 2025-04-13 17:56:57 +00:00
Elian Doran
84c2ebd7f3
docs(api): pin common classes 2025-04-13 18:48:04 +03:00
Panagiotis Papadopoulos
a979e87a7f refactor(cookiePath): remove non-working cookiePath option
this option will currently not work => the cookie will never
be set by the server, if you use a different path other than "/"

in order for this to work we would need to introduce some kind of
"custom route prefix", that would make express serve the routes with
the custom prefix — but that kinda falls more into a reverse proxy
job territory.

So let's remove this feature for now and amend the docs on how to
correctly handle the cookies per instance via the reverse proxy.
2025-04-13 10:53:34 +02:00
perf3ct
263c869091
hmm 2025-04-12 19:09:25 +00:00
perf3ct
6bba1be5f4
Structure tool response 2025-04-12 17:23:25 +00:00
perf3ct
519076148d
do a better job of implementing a stream_handler 2025-04-12 17:13:37 +00:00
perf3ct
253dbf92fa
this at least works to send responses when there's no tool calls 2025-04-12 17:03:36 +00:00
Elian Doran
84883a6e26
docs(backend_api): generate frontend script API as well 2025-04-12 13:30:24 +03:00
Elian Doran
e8f6e2d433
docs(backend_api): set proper module name 2025-04-12 13:19:03 +03:00
Elian Doran
dd42c067f9
docs(backend_api): set proper entry point and include all internal modules 2025-04-12 13:13:39 +03:00
Elian Doran
27ccc56b6d
feat(import/markdown): handle markup in note title 2025-04-12 12:46:00 +03:00
Elian Doran
7fba2dfb8b
fix(launcher): clarify quick search (closes #1680) 2025-04-12 11:14:38 +03:00
perf3ct
80c29e2a01
Do a better job of handling tools 2025-04-11 22:52:09 +00:00
Elian Doran
d05bc03074
feat(in-app-help): use preprocessed subtree data 2025-04-12 00:48:51 +03:00
Elian Doran
460014e54f
feat(docs-edit): don't include HTML wrappers 2025-04-12 00:27:15 +03:00
Jon Fuller
91c31d279b
Potential fix for code scanning alert no. 64: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-04-11 13:36:41 -07:00
Jon Fuller
6cc4b7e226
Potential fix for code scanning alert no. 55: Useless regular-expression character escape
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-04-11 13:31:43 -07:00
Jon Fuller
8b2176344a
Potential fix for code scanning alert no. 62: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-04-11 13:31:32 -07:00
Jon Fuller
50f4f822b3
Potential fix for code scanning alert no. 60: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-04-11 13:30:43 -07:00
Jon Fuller
3cda253d61
Potential fix for code scanning alert no. 61: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-04-11 13:30:25 -07:00
Jon Fuller
8727ff95f1
Merge branch 'develop' into ai-llm-integration 2025-04-11 13:27:51 -07:00
perf3ct
681e8bb1ce
streaming works for ollama :) 2025-04-11 20:26:47 +00:00
perf3ct
451e5ea31f
getting closer to streaming?
even closer?

closer streaming...

this is darn close
2025-04-11 20:18:20 +00:00
Elian Doran
2e4524361b
feat(export/markdown): preserve include section 2025-04-11 20:00:32 +03:00
Elian Doran
539e3f1b6a
feat(export/markdown: trim confusing whitespace in lists 2025-04-11 19:25:22 +03:00
Elian Doran
6231ac59d6
chore(edit-docs): change import mechanism 2025-04-11 14:02:55 +03:00
Jin
998abb35be fix: 🐛 fix calendar unit test error 2025-04-10 21:12:56 +02:00
Jin
a554085681 fix: 🐛 fix tray.ts build error 2025-04-10 21:01:00 +02:00
Elian Doran
32a6aed93b
Merge remote-tracking branch 'origin/develop' into calendar 2025-04-10 21:25:58 +03:00
Elian Doran
64869f80ee
chore(release): 0.92.7 2025-04-10 21:06:20 +03:00
Panagiotis Papadopoulos
1979affa8a refactor(auth): simplify hasRedirectBareDomain
following change suggestion requested here
https://github.com/TriliumNext/Notes/pull/1668#pullrequestreview-2755816018
2025-04-10 19:49:00 +02:00
Panagiotis Papadopoulos
a819166ae5 fix(auth): avoid "Error: Option 'redirectBareDomain' doesn't exist" on new installations
fixes #1667
2025-04-10 19:49:00 +02:00
perf3ct
b68ff88840
some more docstrings 2025-04-09 21:33:30 +00:00
perf3ct
6fe2b87901
rip out openai custom implementation in favor of sdk 2025-04-09 21:16:29 +00:00
perf3ct
f71351db6a
also rip out our custom anthropic implementation 2025-04-09 21:08:30 +00:00
perf3ct
53223b5750
well, we ripped out our custom ollama implementation in favor of the SDK 2025-04-09 20:33:55 +00:00
perf3ct
7f92dfc3f1
okay I can call tools? 2025-04-09 20:15:21 +00:00
perf3ct
b05b88dd76
yes, this finally does set streaming to true 2025-04-09 19:53:45 +00:00
perf3ct
59a358a3ee
use this new providerMetadata approach 2025-04-09 19:21:34 +00:00