1344 Commits

Author SHA1 Message Date
Cohee
c2935ba4a7 Migrate Cohere to /v2/chat
Closes #2916
2024-10-08 23:50:09 +03:00
Cohee
9e50ff34c9 Make Run on edit actually work
Fixes #2958
2024-10-07 20:21:07 +03:00
Cohee
7db85e7ed8 Limit tool calls recursion 2024-10-07 00:22:27 +03:00
Cohee
89bad21881 Allow tool registration on swipes 2024-10-06 22:25:23 +03:00
Cohee
c8ef4b02bc Add .git to jsconfig ignore 2024-10-06 19:12:28 +03:00
Cohee
077ba8b03d Add slash commands for tools management 2024-10-06 12:49:08 +03:00
Cohee
54837680f7 Fix looping on regen tool call 2024-10-05 20:54:25 +03:00
Cohee
6369882be3 Merge branch 'staging' into tool-calling 2024-10-05 20:31:28 +03:00
Cohee
1055f2e1b7 Support more pairs of international quotes 2024-10-05 20:09:54 +03:00
Cohee
a09a60ef31
Merge pull request #2930 from Yokayo/staging
Work on translation
2024-10-05 20:03:53 +03:00
Cohee
60fef3ee99 Restyle welcome 2024-10-05 19:45:41 +03:00
Cohee
47e3cf82e0 Don't call tools on stopped streams. Emit events 2024-10-05 19:08:57 +03:00
ceruleandeep
02b0000117 Add clickable buttons in Welcome chat message.
Add bool `uses_system_ui` on system messages to override sanitizer for buttons when set

Modify uponSanitizeAttribute DOMPurify hook to allow unmangled class names on attributes in some cases

Add event listener for .drawer-opener to open a navbar drawer
2024-10-05 17:27:58 +10:00
Cohee
0637223bc2 Add class to tool call messages 2024-10-05 02:05:18 +03:00
Cohee
01fc5113d7 Fix ghost messages 2024-10-04 23:13:56 +03:00
Yokayo
17fb9815b3
Merge branch 'SillyTavern:staging' into staging 2024-10-04 23:13:12 +07:00
Cohee
689dbad2d1 Merge branch 'staging' into tool-calling 2024-10-04 14:28:47 +00:00
Goshe-nite
c016319477
Fix out-of-sync pinned drawer icons (#2944)
* Fix out-of-sync pinned drawer icons

* Ugly but consistent

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-10-04 16:36:48 +03:00
Cohee
8c095f204a Fix error on streaming if the processor was already destroyed 2024-10-04 12:00:20 +00:00
Cohee
4a2989718c ESLint and JSDoc fixes 2024-10-04 10:34:17 +00:00
Cohee
447a7fba68 Only delete message if had successful tool calls 2024-10-04 01:45:37 +03:00
FriedCaper
1b3db27389 Abort Send and Continue while editing a message 2024-10-03 18:49:13 -03:00
Cohee
6558b10675 Show an error when all tools fail 2024-10-04 00:11:36 +03:00
Cohee
90809852c2 Hide message on streaming tool calls 2024-10-03 13:23:53 +00:00
Cohee
2dad86e076 Delete empty message before tool invocations 2024-10-02 23:12:49 +03:00
Cohee
c3e9d25307 Merge branch 'staging' into tool-calling 2024-10-02 22:35:33 +03:00
Cohee
85b0d135f1 Add utility function for formatting swipe counters 2024-10-02 22:22:33 +03:00
Cohee
0f8c1fa95d Save tool calls to visible chats. 2024-10-02 22:17:27 +03:00
Cohee
c94c06ed4d Implement function tool calling for OpenAI 2024-10-02 01:45:57 +03:00
Cohee
8006795897 New tool calling framework 2024-10-02 01:00:48 +03:00
Cohee
7d0cc9e372 Remove commented debug code 2024-10-01 20:48:45 +03:00
Cohee
80de28d251 Remove debug log 2024-10-01 19:50:56 +03:00
Cohee
d5b845345e Better opacity handling. Remove debug logs 2024-10-01 19:48:46 +03:00
Cohee
7747050233 Merge branch 'staging' into swipe-nums-for-all-mes 2024-10-01 19:27:20 +03:00
Yokayo
7f9023d3c2 Work on tl 2024-10-01 21:25:20 +07:00
Cohee
d82dc4952b Merge branch 'staging' into send-commands-return-value 2024-10-01 01:52:33 +03:00
Cohee
e32b701045 Merge branch 'staging' into swipe-nums-for-all-mes 2024-09-30 22:23:40 +03:00
Cohee
0d83480e90 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-30 22:15:38 +03:00
Wolfsblvt
1128de91f4 /send with return value too
- /send
- return message on `sendMessageAsUser` now
2024-09-30 18:32:21 +02:00
Cohee
dedb96ec8d Don't trim on whitespace user prefix sequence 2024-09-30 15:05:15 +00:00
RossAscends
e9e459be14 make sure old swipe counters are shown after new message added 2024-09-30 21:29:24 +09:00
RossAscends
1a0b49d5dc fix weird counter text in group chats 2024-09-30 21:19:39 +09:00
RossAscends
885a278973 split counter from chevron, smarter toggling 2024-09-30 19:51:13 +09:00
Cohee
9f0c2300d2 Add connection map aliases 2024-09-29 16:24:40 +03:00
RossAscends
034a5a48c2 initial commit, functional, needs proofing 2024-09-29 21:47:18 +09:00
Wolfsblvt
cc527a3a33 Correct async calls to init scrapers 2024-09-29 11:27:07 +02:00
Wolfsblvt
d7bad6335c Refactor findChar to utils
- Refactor and move finChar to utils, instead of slashcommands function
- Refactor scrapers to use actual init functionality
2024-09-29 03:20:01 +02:00
Cohee
5d60897cfa Fix drawer icon not changing on WI 2024-09-29 01:00:56 +03:00
Yokayo
78a287e7f5 Resolve conflict 2024-09-28 21:31:13 +07:00
Yokayo
bb76649478 Update tl 2024-09-28 20:47:37 +07:00