Commit Graph

5354 Commits

Author SHA1 Message Date
Cohee
80e104e723 Don't open click to edit in document mode if text selected 2024-05-27 21:50:42 +03:00
Cohee
a6e6677c32 Merge branch 'release' into staging 2024-05-27 19:58:19 +03:00
Cohee
66db820c9e Fix external style declaration filtering 2024-05-27 19:55:55 +03:00
Cohee
62a1919402 Use recursive stylesheet sanitation 2024-05-27 14:28:40 +03:00
Cohee
99e09f0b91 Improve external media removal in style blocks 2024-05-27 14:28:28 +03:00
Cohee
8726def6e0 Use recursive stylesheet sanitation 2024-05-27 14:26:59 +03:00
Cohee
1bc45d2869 Improve external media removal in style blocks 2024-05-27 13:43:59 +03:00
Cohee
2c049e5611 Remove imports from embedded styles 2024-05-27 13:26:24 +03:00
Cohee
630111c737 Remove imports from embedded styles 2024-05-27 13:25:21 +03:00
steve green
00fc40408a
allow char scpoed regex (#2271)
* Update engine.js to allow char scpoed regex

no ui because i'm not good at it, but works.

* add typedef

* update

* little fix

* Rework scoped scripts UI

* Add locale attributes

* Purge allowance on delete

* add d&d for `saved_scoped_scripts`

* better code

* Save settings on regex scope toggle

* Fix reordering logic

* Fix scoped setter

* Add unique ids for regex scripts

* Wording

* Reload chat after deleting scripts

* Reload chat after toggling scoped regex

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-26 17:19:00 +03:00
Cohee
31f4a34f5a
Merge pull request #2312 from NijikaMyWaifu/gpt4o-tokenizer-for-gemini
Use GPT-4o tokenizer for Gemini
2024-05-25 20:20:30 +03:00
Cohee
ef137f68c4 Fallback to Fuse if not parsed expression 2024-05-25 17:32:11 +03:00
Cohee
cb381595f9 Function calling for Mistral 2024-05-25 17:31:40 +03:00
Cohee
b545185f1a Transform LLM emotion response to lower 2024-05-25 17:11:58 +03:00
Cohee
fa6fc45e6f Function calling for Cohere 2024-05-25 17:09:47 +03:00
Cohee
dc8530049f Reference implementation: Set expressions with function calling 2024-05-25 15:38:32 +03:00
Cohee
a20c6bb01e Extension framework for function tool calling 2024-05-25 15:31:57 +03:00
NijikaMyWaifu
33b22bd4f8
Use GPT-4o tokenizer for Gemini
Use GPT-4o tokenizer for Gemini, as Gemini tokenizer is more similar to GPT-4o's
2024-05-25 13:26:11 +08:00
Cohee
439ef0dc5e #2308 Preserve itemized prompts for branches and checkpoints 2024-05-25 00:07:36 +03:00
Cohee
da4f0f53be Resolve char macros to message name in first message display 2024-05-24 23:41:27 +03:00
Cohee
b20cf52fe6
Merge pull request #2291 from Yokayo/staging
Localizable prompt manager
2024-05-24 22:32:04 +03:00
Cohee
761f903fdb Expand rightmost column a bit 2024-05-24 22:27:24 +03:00
Cohee
a717e2ace8 Prefer const 2024-05-24 22:25:18 +03:00
Cohee
5c3ad3e0bc Let's make the diff even cleaner! 2024-05-24 22:23:55 +03:00
Cohee
1ed1e18304 Revert async forEach executor 2024-05-24 22:23:04 +03:00
Cohee
0ebac0e2af Pretty print PM exports 2024-05-24 22:15:28 +03:00
Cohee
800c94cb93 Fix for character export HTML 2024-05-24 22:11:36 +03:00
Cohee
2f2a4fca35 Sanitize error text 2024-05-24 22:05:28 +03:00
Cohee
d5f6849c8e Fix HTML error 2024-05-24 22:04:00 +03:00
Cohee
61e5c32cd2 Fix make draggable 2024-05-24 22:00:21 +03:00
Cohee
8bcb1ef2db Merge branch 'staging' into pm-i18n 2024-05-24 21:56:34 +03:00
Cohee
0e7eff155d Fix ephemeral injects clean-up 2024-05-24 21:53:29 +03:00
daiaji
66454bb711
Add reverse proxy support to Google MakerSuite to allow some Google MakerSuite URLs to no longer be hardcoded with domain names. (#2307)
* Add reverse proxy support to Google MakerSuite.

* Remove hardcoded URLs for some Google MakerSuite API calls.

* Don't send real key to alt.endpoint

* Fix for image captioning

* Fix key validation

* +fix key check for mistral

* Fix caption key validation

* Fix tokenization endpoint use

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-24 21:38:29 +03:00
Cohee
e1dfbc0bea Merge branch 'release' into staging 2024-05-24 20:36:01 +03:00
Cohee
7dc3b06d0f /api returns current name if no params 2024-05-24 20:34:29 +03:00
Cohee
4d161768c0 New Cohere model 2024-05-24 17:17:21 +03:00
Cohee
967a7980f5 Add vector retrieval score threshold 2024-05-23 17:28:43 +03:00
Yokayo
5450bacf0f Merge branch 'staging' of https://github.com/Yokayo/SillyTavern into staging 2024-05-23 17:17:22 +07:00
Yokayo
97965b2de5 Fix templates 2024-05-23 17:16:16 +07:00
Cohee
039f3b875b Add "ephemeral" option script /inject 2024-05-23 02:34:13 +03:00
Cohee
1f46d334b1
Merge pull request #2302 from Wolfsblvt/world-override-failsafe
Implement failsafe for world creation with same name
2024-05-23 02:11:54 +03:00
Cohee
8a8e8a89dc Remove debug log.
Don't think it makes much sense
2024-05-23 02:10:39 +03:00
Cohee
a11231dd2e Revert export removal 2024-05-23 01:47:06 +03:00
Wolfsblvt
92cb70213a Fix no sanitize check on wi create 2024-05-23 00:39:49 +02:00
Wolfsblvt
ab8c67ede6 Refactor overwrite check to utility function
- Refactor overwrite check to utility function
- Don't mind me refactoring character delete functions. I tried something, but I think the refactoring still makes sense
2024-05-22 23:52:35 +02:00
Cohee
23d3b85696
Merge pull request #2295 from bdashore3/new-samplers
Add new tabby Samplers
2024-05-22 23:45:14 +03:00
Cohee
65c3dfb694 Zen sliders fix 2024-05-22 23:37:51 +03:00
Cohee
e8b96fec02 Merge branch 'staging' into new-samplers 2024-05-22 23:26:47 +03:00
Wolfsblvt
a251849f8f WI import checking for existing worlds too
- WI import uses the same check as create new world
- API endpoint to get server-side sanitized filenames
- Small changes to toast messages
2024-05-22 21:11:39 +02:00
kokansei
75a1ef4304
Add DRY Samplers to ST Staging (#2211)
* Add files via upload

* Add files via upload

* Delete public/index.html

* Add files via upload

* Delete public/scripts/textgen-settings.js

* Add files via upload

* Delete public/scripts/power-user.js

* Add files via upload

* Delete public/scripts/power-user.js

* Add files via upload

* Update power-user.js

* Update index.html

* Fix control attribution

* Fix app loading

* Put sequence breakers under DRY block

* DRY for DRY

* Update public/index.html

Co-authored-by: Philipp Emanuel Weidmann <pew@worldwidemann.com>

* Merge fix

* Add llamacpp control. Add default value for sequence breakers

* Forgot reset

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
Co-authored-by: Philipp Emanuel Weidmann <pew@worldwidemann.com>
2024-05-22 20:46:52 +03:00