Commit Graph

3211 Commits

Author SHA1 Message Date
based
42aa7fd316 mistral proxy support 2023-12-31 06:21:40 +10:00
Cohee
060bc60794
Merge pull request #1614 from LenAnderson/editorconfig-markdown-fix 2023-12-30 15:39:26 +02:00
LenAnderson
520fa99a00 don't trim trailing whitespace in markdown files 2023-12-30 11:42:27 +00:00
Cohee
a436a2536f
Merge pull request #1608 from paniphons/staging
Add Alpaca-Single-Turn context templates
2023-12-29 16:40:08 +02:00
Paniphon
9fb631b2f1
Add Alpaca-Single-Turn instruct template 2023-12-29 01:23:31 +07:00
Paniphon
3a4c5f6a05
Add Alpaca-Single-Turn context template 2023-12-29 01:22:03 +07:00
Cohee
13004eba69
Merge pull request #1607 from artisticMink/wi-for-combine-prompts-event 2023-12-28 19:09:03 +02:00
maver
ee70593a7e Add world info to generate_before_combine_prompts event data 2023-12-28 17:03:36 +01:00
Cohee
05a6b64064
Merge pull request #1606 from LenAnderson/better-extension-reload
only reload ST after extension popup closed
2023-12-28 13:23:40 +02:00
LenAnderson
0590b36838 only reload ST after extension popup closed 2023-12-28 10:46:25 +00:00
Cohee
8dd4543e93 Remove macro from user messages when using bias 2023-12-28 11:19:56 +02:00
Cohee
47cb017a45 #1589 Add 'cache_prompt' for l.cpp 2023-12-25 02:42:03 +02:00
Cohee
352b00caca Merge branches 'staging' and 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-12-24 23:11:11 +02:00
Cohee
3b2ea4b0e7
Merge pull request #1592 from rigbyb/comfyui_fix
ComfyUI request/prompt fix
2023-12-24 23:10:51 +02:00
RigbyB
b6570e775d ComfyUI request/prompt fix 2023-12-24 21:02:04 +00:00
Cohee
4b254a75bc Add scale icon 2023-12-24 20:02:11 +02:00
Cohee
f8dece9d88 Always remove logit bias and stop from vision 2023-12-24 20:01:59 +02:00
Cohee
a9e074dae1 Don't recreate first message if generation was run at least once 2023-12-24 02:47:00 +02:00
Cohee
a8fb306c12 Add multimodal captioning for ooba 2023-12-24 01:43:29 +02:00
Cohee
88993bd3e8 Add check for server plugin id clash 2023-12-24 00:00:20 +02:00
Cohee
73548faa33 Bump package version 2023-12-23 23:56:09 +02:00
Cohee
736223a86a
Merge pull request #1587 from SillyTavern/staging
Staging
2023-12-23 20:47:48 +02:00
Cohee
70b9c96c7f
Merge pull request #1586 from Doa86/negative-character-prompts
Negative Character Prompts
2023-12-23 20:45:18 +02:00
Cohee
fd373fb821 Use file URL for import 2023-12-23 19:46:32 +02:00
Cohee
8e1a84691b
Merge pull request #1562 from valadaptive/plugin-router
Server plugin API rework
2023-12-23 19:08:31 +02:00
Cohee
f1453a3e8a Await plugin cleanup 2023-12-23 19:05:21 +02:00
Cohee
ea85cfcbdd Plugin cleanup and validation fixes 2023-12-23 19:03:13 +02:00
Cohee
437a6c1f40 Merge branch 'staging' into plugin-router 2023-12-23 18:39:18 +02:00
Cohee
69509925c4 #1584 Chinese language codes Deepl 2023-12-23 18:37:30 +02:00
Doa
41ac2c07b2 Adding negative character prompts for img sources that support it 2023-12-23 16:19:22 +00:00
Cohee
db3bf42d63 Fix Firefox number arrows not updating the slider 2023-12-23 16:09:03 +02:00
Cohee
b7a338e130 Move all Horde requests to server 2023-12-22 22:10:09 +02:00
Cohee
89d70539b9 Alternative continue method for chat completions 2023-12-22 20:24:54 +02:00
Cohee
3bf14f0c56
Merge pull request #1582 from LenAnderson/config-avatar-thumb-png
Add option in config.yaml to use png for avatar thumbs
2023-12-22 18:10:59 +02:00
LenAnderson
f862ffafd2 add option in config.yaml to use png for avatar thumbs 2023-12-22 14:23:50 +00:00
Cohee
18445f527b Fix select2 empty message background + correct before selector 2023-12-22 02:22:09 +02:00
Cohee
45f6cb0fa8 Add chunked translate for long messages 2023-12-22 00:05:23 +02:00
Cohee
9cf6cef0a4 Fix aborting generation on KoboldCpp via Text Completion 2023-12-21 23:14:28 +02:00
Cohee
b782a8cc03 Add util for trim v1 2023-12-21 22:40:08 +02:00
Cohee
09fd772a20 #1579 Add ooba character yaml import 2023-12-21 21:46:09 +02:00
Cohee
4621834c87 Short formatting path for empty messages 2023-12-21 20:50:30 +02:00
Cohee
a85a6cf606 Allow displaying unreferenced macro in message texts 2023-12-21 20:49:03 +02:00
Cohee
39e0b0f5cb Remove custom Handlebars helpers for extensions. 2023-12-21 20:33:50 +02:00
Cohee
343c33e331 Stricter Horde prompt sanitation 2023-12-21 20:22:21 +02:00
valadaptive
8fb26284e2
Clean up Generate(), part 2 (#1578)
* Move StreamingProcessor constructor to the top

Typical code style is to declare the constructor at the top of the class
definition.

* Remove removePrefix

cleanupMessage does this already.

* Make message_already_generated local

We can pass it into StreamingProcessor so it doesn't have to be a global
variable.

* Consolidate setting isStopped and abort signal

Various places were doing some combination of setting isStopped, calling
abort on the streaming processor's abort controller, and calling
onStopStreaming. Let's consolidate all that functionality into
onStopStreaming/onErrorStreaming.

* More cleanly separate streaming/nonstreaming paths

* Replace promise with async function w/ handlers

By using onSuccess and onError as promise handlers, we can use normal
control flow and don't need to remember to use try/catch blocks or call
onSuccess every time.

* Remove runGenerate

Placing the rest of the code in a separate function doesn't really do
anything for its structure.

* Move StreamingProcessor() into streaming code path

* Fix return from circuit breaker

* Fix non-streaming chat completion request

* Fix Horde generation and quiet unblocking

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-12-21 20:20:28 +02:00
Cohee
bddccd0356 Missed several context bind cases 2023-12-21 17:19:42 +02:00
Cohee
fac4169dd8
Merge pull request #1568 from DonMoralez/staging
(claude)reworked prefix, sysprompt, console messages, sequence check
2023-12-21 17:02:05 +02:00
Cohee
ffb711d802 Unify Claude request logging with other API sources 2023-12-21 16:59:43 +02:00
Cohee
b5e59c819c Merge branch 'staging' into claude-rework 2023-12-21 16:52:43 +02:00
Cohee
e1afe41c91 Fix custom expression duplication 2023-12-21 16:50:30 +02:00