Commit Graph

6287 Commits

Author SHA1 Message Date
Cal 7a598a439a switch to custom sort comparitor 2024-10-09 15:10:37 -06:00
Cohee c21e1ac3f7 [wip] Add buttons for renaming presets 2024-10-09 23:22:00 +03:00
Cohee 9f23a7852f NovelAI: Increase repetition penalty precision 2024-10-09 22:55:33 +03:00
InspectorCaracal 84140f4e4f add `/sort` slash command 2024-10-09 13:54:39 -06:00
Cohee 42f8b86b11 Tool Calling: stringify errors instead of silently failing 2024-10-09 22:39:55 +03:00
Cohee 4bdaca5f8e Featherless: More specifity for selectors 2024-10-09 22:14:49 +03:00
Cohee f436000a9d Featherless: Fix /model command 2024-10-09 22:04:08 +03:00
Cohee 80f9d90918 Merge branch 'staging' into featherless-models 2024-10-09 21:51:59 +03:00
Cohee 0a84c094e7 Hide old models selector 2024-10-09 21:51:55 +03:00
Cohee 151a77cd36 Initialize page on load 2024-10-09 21:51:31 +03:00
DarokCx 64ff555425 BugFix and UI improvements 2024-10-09 13:56:31 -04:00
Cohee 3fd7ca90ed Tool Calling: Don't try to parse if tool calling is not supported 2024-10-09 10:49:02 +00:00
Cohee e7fe218810
Merge pull request #2953 from QuantumEntangledAndy/feat/AdditionalLogins
Add additional login methods
2024-10-09 13:43:39 +03:00
Cohee 15efdb6609
Merge pull request #2962 from SillyTavern/cohere-v2
Migrate Cohere to /v2/chat
2024-10-09 10:29:04 +03:00
Cohee 7162f9d562 Cohere: Swap message and tool plan in extractMessageFromData 2024-10-09 10:27:54 +03:00
Cohee c49138dfea Tool Calling: Make formatMessage async 2024-10-09 03:56:24 +03:00
Cohee bc0f5bf4ce Tool Calling: add shouldRegister function to tool defintion 2024-10-09 03:53:32 +03:00
Cohee 10f51f5d90 ImageGen: Add a placeholder for {{prefixedPrompt}} in the message template
Closes #2946
2024-10-09 03:44:22 +03:00
Cohee de57123e62 Change GenerateImage tool description 2024-10-09 02:57:08 +03:00
Cohee 5765ea8500 Merge branch 'staging' into feat/AdditionalLogins 2024-10-09 01:34:29 +03:00
Cohee bdaf7b9258
Merge pull request #2955 from Yokayo/staging
Add rename buttons for advanced formatting presets
2024-10-09 01:33:52 +03:00
Cohee 26716686ba Add parentheses for clarity 2024-10-09 01:31:45 +03:00
Cohee 7061753d84 Fix old name prepopulate, run formatter 2024-10-09 01:29:23 +03:00
Cohee c2935ba4a7 Migrate Cohere to /v2/chat
Closes #2916
2024-10-08 23:50:09 +03:00
DarokCx 9b3552631a Text sizing correction. 2024-10-07 15:26:13 -04:00
Cohee 9e50ff34c9 Make Run on edit actually work
Fixes #2958
2024-10-07 20:21:07 +03:00
DarokCx 09035a71dc Added sort by date Added 2024-10-07 10:02:11 -04:00
QuantumEntangledAndy 1cda7003d1
Add a noauto query param to login 2024-10-07 09:17:43 +07:00
Cohee 591f61d354 Don't split tool calls and tool results 2024-10-07 01:32:46 +03:00
Cohee 7db85e7ed8 Limit tool calls recursion 2024-10-07 00:22:27 +03:00
Cohee f82a479a90 Fix select2 buttons alignment 2024-10-06 23:18:41 +03:00
Cohee 89bad21881 Allow tool registration on swipes 2024-10-06 22:25:23 +03:00
Cohee 6b022e783d Fix tool call reuse between Claude and OAI 2024-10-06 22:22:19 +03:00
Cohee f7ec2e47d6 Indicates extensions that add tools in the list 2024-10-06 21:58:59 +03:00
Cohee a4256ccf57 ImageGen: rename Enable function tool => Use function tool 2024-10-06 21:19:06 +03:00
Cohee 927c2418e0 Group tool calls in the result 2024-10-06 20:19:58 +03:00
Yokayo 4b0d342e8b Update translation-related stuff a little 2024-10-07 00:04:49 +07:00
Yokayo 88d52ea587 Merge branch 'staging' of https://github.com/Yokayo/SillyTavern into staging 2024-10-06 23:52:46 +07:00
Yokayo 90ef3e51c0 Add advanced formatting presets renaming buttons 2024-10-06 23:52:41 +07:00
Cohee 2e36f45e24 Fix types for dompurify and toastr 2024-10-06 19:51:59 +03:00
Cohee 680dc80649 Extend exclude list for frontend jsconfig 2024-10-06 19:26:37 +03:00
Cohee fcadd62e8c Merge branch 'staging' into tool-calling 2024-10-06 19:13:32 +03:00
Cohee 912525fdd9 Add missing import 2024-10-06 19:13:01 +03:00
Cohee c8ef4b02bc Add .git to jsconfig ignore 2024-10-06 19:12:28 +03:00
Cohee 303df1087a ImageGen: Configurable tool prompt description, encode response URI 2024-10-06 13:27:06 +03:00
Cohee 96862be6b0 Fix tools-list 2024-10-06 13:01:14 +03:00
Cohee 077ba8b03d Add slash commands for tools management 2024-10-06 12:49:08 +03:00
Cohee 7dea59f026 Format tool result if JSON 2024-10-05 20:54:37 +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 030313c584
Merge pull request #2951 from SillyTavern/intl-quotes
Support more pairs of international quotes
2024-10-05 20:31:14 +03:00
Cohee 704bb9dc0f
Merge pull request #2950 from SillyTavern/moment-locales
Localize chat timestamps
2024-10-05 20:27:39 +03:00
Cohee a5be889852 Extend quote list for TTS 2024-10-05 20:14:07 +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 24300642dd Cleaner HTML Diff 2024-10-05 19:48:20 +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
Cohee ebe2929dfd Localize chat timestamps 2024-10-05 17:07:17 +03:00
Yokayo aaa5a84d58 Get rid of numbered keys 2024-10-05 20:19:42 +07:00
Cohee 3b4a455ef8 Split Custom OAI prompt post-processing modes 2024-10-05 16:09:39 +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 68376f7dd0 Indicate no content on function result 2024-10-05 00:20:28 +03:00
Cohee 6a304e8884 Fix generation looping 2024-10-05 00:20:06 +03:00
Cohee c3078a67e1 Claude: Add prefill/tool interaction warning 2024-10-04 23:33:31 +03:00
Cohee 01fc5113d7 Fix ghost messages 2024-10-04 23:13:56 +03:00
Cohee 8ff9ef3610 Image Generation: Fix race condition in adding images to chat 2024-10-04 21:58:55 +03:00
Cohee bc5e7b1ee8 Fix description in tool definition 2024-10-04 21:49:24 +03:00
Yokayo 17fb9815b3
Merge branch 'SillyTavern:staging' into staging 2024-10-04 23:13:12 +07:00
Yokayo c98e3fd57d Change translation keys 2024-10-04 23:12:48 +07:00
Cohee 689dbad2d1 Merge branch 'staging' into tool-calling 2024-10-04 14:28:47 +00:00
Cohee 23639ce1fe
Merge pull request #2942 from QuantumEntangledAndy/DialogPoly
Polyfill for dialogues in old safari on iOS
2024-10-04 16:41:46 +03:00
Cohee 441465f08b [chore] Run eslint 2024-10-04 16:37:56 +03: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 d5d8d6c876 Remove warning log for unregister 2024-10-04 13:05:03 +00:00
Cohee c853547b11 Add a function tool for image generation 2024-10-04 13:04:19 +00:00
Cohee 8c095f204a Fix error on streaming if the processor was already destroyed 2024-10-04 12:00:20 +00:00
Cohee db04fff3df Claude: Streamed tool calls parser 2024-10-04 11:31:15 +00:00
M0cho 38875fb940 Supports Gemini context length reduction. 2024-10-04 20:16:24 +09:00
M0cho d53baed5cf Supports Gemini 1.5-Flash-8b
for Product Ready version.
2024-10-04 20:16:12 +09:00
Cohee ca1f6a56c3 Merge branch 'tool-calling' of https://github.com/SillyTavern/SillyTavern into tool-calling 2024-10-04 13:39:13 +03:00
Cohee 0cab91e0f8 Add Claude streamed tool parser 2024-10-04 13:39:08 +03:00
Cohee 4a2989718c ESLint and JSDoc fixes 2024-10-04 10:34:17 +00:00
QuantumEntangledAndy bd48c2445a
Make dialog css edits dependant on polyfil 2024-10-04 16:57:59 +07:00
QuantumEntangledAndy 3e465d155c
Include polyfill css 2024-10-04 15:26:48 +07:00
Cohee c3c10a629e Claude: new prompt converter + non-streaming tools 2024-10-04 03:41:25 +03:00
Cohee 559f1b81f7 Remove tool calling for Cohere v1 2024-10-04 02:11:46 +03:00
Cohee 01f03dbf50 Support MistralAI streaming tool calls 2024-10-04 01:51:41 +03: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
FriedCaper 6fc8588a8f On ctrl-enter when editing, focus text input 2024-10-03 18:49:13 -03:00
Cohee 5cf64a2613 Update tool registration 2024-10-04 00:39:28 +03:00
Cohee 6558b10675 Show an error when all tools fail 2024-10-04 00:11:36 +03:00
Cohee 576352817e Merge branch 'staging' into tool-calling 2024-10-03 22:36:02 +03:00
Cohee 1278b5c309 Fix character attachment content saving into settings.json 2024-10-03 22:13:37 +03:00
Cohee 90809852c2 Hide message on streaming tool calls 2024-10-03 13:23:53 +00:00
Cohee da9200c82e Skip adding tool messages as regular chats 2024-10-03 12:59:59 +00:00
Cohee 6706cce10d Groq: Add new models and multimodal captions 2024-10-03 08:41:45 +03:00
Cohee 1e076a3e43 Prettify displayed message 2024-10-02 23:32:29 +03:00
Cohee 2b7c03f3b0 Nicely format message for tool calls 2024-10-02 23:13:11 +03:00
Cohee 2dad86e076 Delete empty message before tool invocations 2024-10-02 23:12:49 +03:00
DarokCx fa52fb4ae6 Ui bug Fixes 2024-10-02 15:40:20 -04: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 3335dbf1a7 Add empty tool calls to streaming processors 2024-10-02 01:59:53 +03:00
Cohee e8b9720425 Budgeting fix 2024-10-02 01:56:27 +03:00
Cohee 63724a2b38 eslint update 2024-10-02 01:54:47 +03:00
Cohee 68c87f7e7a
Fix code scanning alert no. 231: Prototype-polluting function
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-02 01:53:03 +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
ceruleandeep 3dad029091 Add Featherless to modelSelectMap for /model 2024-10-02 06:55:32 +10:00
Cohee bb1139bda9 Merge branch 'staging' into model-write-in 2024-10-01 21:26:34 +03:00
Cohee 7d0cc9e372 Remove commented debug code 2024-10-01 20:48:45 +03:00
Cohee d3120afc60 Merge branch 'staging' into swipe-nums-for-all-mes 2024-10-01 20:46:10 +03:00
Cohee 6ba60e8f60
Merge pull request #2830 from nyxkrage/patch-2
Append continuation message after prefill when using "Continue Prefill" with Claude
2024-10-01 20:44:24 +03:00
Cohee a23c31dd09 Update visuals and labels of CC postfix/prefix drawers 2024-10-01 20:42:03 +03:00
DarokCx e7e3a09ce4 bugfixes 2024-10-01 13:01:12 -04: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 cd297f926e Smaller swipe arrows 2024-10-01 19:38:25 +03:00
Cohee 7747050233 Merge branch 'staging' into swipe-nums-for-all-mes 2024-10-01 19:27:20 +03:00
Cohee 33222191be Remove confusing toast from listvar 2024-10-01 19:15:53 +03:00
Cohee 89642f217d Merge branch 'staging' into send-commands-return-value 2024-10-01 19:08:34 +03:00
DarokCx aea985d78c added new filter and css fix 2024-10-01 12:02:18 -04:00
Yokayo 5b9504e7bb
Merge branch 'SillyTavern:staging' into staging 2024-10-01 21:26:07 +07:00
Yokayo 7f9023d3c2 Work on tl 2024-10-01 21:25:20 +07:00
Cohee c76fc7d23c /model: Better support for write-in controls 2024-10-01 15:02:14 +03:00
Cohee ab966db1e5 Refactor ensureSelectionExists for more readability 2024-10-01 14:28:34 +03:00
Cohee 42d24dbc47 Fix free mode extension on empty chats when {{charPrefix}} is used 2024-10-01 14:24:27 +03:00
Cohee 5363529068 Merge branch 'staging' into sd-args 2024-10-01 14:16:01 +03:00
Cohee 5489dd61a7 Pass /continue error to slash command executor 2024-10-01 14:14:19 +03:00
Cohee b4529e75c6 Don't wrap empty sysprompts in instruct mode 2024-10-01 13:16:55 +03:00
Cohee 6b61abc8ed Extract logic for enum providers 2024-10-01 02:30:24 +03:00
Wolfsblvt f6726db9fb Fix empty script injections on /listinjects 2024-10-01 01:30:20 +02:00
Wolfsblvt 56265540db sanitize HTML on html returns
- I had it in there for some time, I even tested it... likely gone during some commits
2024-10-01 01:23:34 +02:00
Cohee a63f99b8ce Add /imagine-style command 2024-10-01 02:11:24 +03:00
Cohee 909ac0c622 Merge branch 'staging' into sd-args 2024-10-01 02:08:14 +03:00
Cohee d96bb3dcea Merge branch 'send-commands-return-value' of https://github.com/SillyTavern/SillyTavern into send-commands-return-value 2024-10-01 01:55:24 +03:00
Wolfsblvt 398ae6ba2e Update doReturn() API with objectToHtmlFunc
- Allow future commands to provide a different "object to HTML" converter func than "object to text", if need be
2024-10-01 00:53:19 +02:00
Cohee d82dc4952b Merge branch 'staging' into send-commands-return-value 2024-10-01 01:52:33 +03:00
Wolfsblvt f317b1b764 Oversight, missed /send in refactoring... 2024-10-01 00:41:14 +02:00
Wolfsblvt 7a1b43eb89 Refactor /classify-expressions, deprecating...
- Update /classify-expressions, deprecating the old "format"
- Fix some oversights
2024-10-01 00:37:21 +02:00
Wolfsblvt 697b3b2034 Refactor /listvar, deprecate its "format" arg
- Update /listvar
- Fix toasts not doing correct HMTL here
2024-10-01 00:23:00 +02:00
Wolfsblvt 62fd450c59 Refactor /listinjects, deprecate its "format" arg 2024-10-01 00:06:18 +02:00
Cohee 392c98455e Merge branch 'staging' into patch-2 2024-10-01 00:39:23 +03:00
Cohee 7ac7398568 Remove debug log. Fix comment 2024-10-01 00:37:33 +03:00
Wolfsblvt e3c0c5442c Update /ask with return types, defaulting 'pipe' 2024-09-30 23:37:21 +02:00
Wolfsblvt d8379edee7 Update return types as optional via named arg
- Update the modified slash commands for chat sending to use the named arg
- Add `slashCommandReturnHelper` for shared funcitonality on return type usage
2024-09-30 23:32:24 +02:00