Commit Graph

7816 Commits

Author SHA1 Message Date
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 6185974e17 Claude: Use multi-part system prompt, cache tools 2024-10-05 18:04:08 +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
Cohee 8b13c40e0d Claude: fix prefills 2024-10-04 21:48:35 +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
X00LA 9820478296
Add german readme (#2914)
* Create readme-de-de.md

* Update readme-ja_jp.md

Add link to german readme

* Rename readme-de-de.md to readme-de_de.md

Fixed wrong file name

* Update readme-ru_ru.md

Add link to german readme

* Update readme-zh_cn.md

Add link to german readme

* Update readme.md

Add link to german readme

* Update readme-de_de.md

Add message about outdated information

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Add suggested change for merge

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update readme-de_de.md

Fixing issues for merging with original branch;

* Update readme-de_de.md

Fix using wront template for translation; (used release readme) :(

* Update readme-de_de.md

Changed overlooked remaining “Zweig” to “Branch”.

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

* Update .github/readme-de_de.md

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>

---------

Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>
2024-10-04 16:07:50 +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 cc3cc58a06 Claude: fix token counting when tool_calls are used 2024-10-04 12:24:10 +00:00
Cohee 8c095f204a Fix error on streaming if the processor was already destroyed 2024-10-04 12:00:20 +00:00
Cohee 130eb4bc33
Merge pull request #2945 from M0ch0/staging
Support new gemini-1.5-flash-8B model, and flash-002's context reduction.
2024-10-04 14:32:46 +03: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
Cohee ac8a381501
Merge pull request #2940 from FriedCaper/dont-send-while-editing
Keyboard shortcut related fixes
2024-10-04 01:27:17 +03:00
Cohee 777b2518bd Allow returning page if transcript extraction failed 2024-10-04 01:12:12 +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 6cb82fc21e Add json param to /transcript 2024-10-04 00:39:45 +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