Commit Graph

4523 Commits

Author SHA1 Message Date
Cohee 2b7c03f3b0 Nicely format message for tool calls 2024-10-02 23:13:11 +03:00
Cohee c3e9d25307 Merge branch 'staging' into tool-calling 2024-10-02 22:35: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 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 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
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
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
Cohee 3fd846fb5b Allow returning literal Infinity string from math operations 2024-09-30 23:52:01 +03:00
Cohee bed7df0038 Merge branch 'staging' into fix-math-commands 2024-09-30 23:26:04 +03:00
Cohee bc05c8de15
Merge pull request #2923 from SillyTavern/fix-piping-split-unnamed-args
Fix piping not actually using/inputting an array for empty unnamed args
2024-09-30 23:25:20 +03:00
Wolfsblvt 2dc7b5ded1 Allow using JSON arrays for math commands
- applies to all that receive a list. /add, /sub, /min, /max etc
- Parsing is the same as the other commands where we already allow "LIST" as an argument.
2024-09-30 21:24:22 +02: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
Cohee a4d02bd967 Add /imagine-source command 2024-09-30 22:00:03 +03:00
Wolfsblvt 8ff2ef086b Update defs and enums for other math commands
- Now even the commands like `/div count charnumber` work well with auto complete
2024-09-30 20:59:42 +02:00
Cohee 9af4d62cdf Extend /sd command 2024-09-30 21:51:24 +03:00
Wolfsblvt 224249a0d2 Fix /sub actually allowing more than two vals now
- Fix by subtracting all from the first value
- Update the definition too
2024-09-30 20:50:18 +02:00
Wolfsblvt 4855f25419 Update /mul, /max and /min definition
- Update command definition for /mul, /max and /min to fit the actual code behind, split them too
- Add numbersAndVariables enum provider, to centralize
2024-09-30 20:45:39 +02:00