SillyTavern/public/scripts
erew123 e857db40fb
Updated AllTalk Extension to support AllTalk V2
1. Core Feature Addition:
   - Added AllTalk V1/V2 server version selection
   - Added RVC (Realistic Voice Conversion) support for V2
   - RVC features are automatically disabled when V1 is selected

2. Code Improvements:
   - Replaced custom debounce implementation with shared utils.js debounce utility
   - Fixed linting issues:
     - Converted HTML attribute quotes in template literals to single quotes
     - Added trailing commas where required
     - Fixed console.error message formatting

3. New Settings/Properties Added:
   ```javascript
   server_version: 'v2' (default)
   rvc_character_voice: 'Disabled'
   rvc_character_pitch: '0'
   rvc_narrator_voice: 'Disabled'
   rvc_narrator_pitch: '0'
   ```

4. Bug Fixes/Improvements:
   - Better error handling for RVC voice fetching
   - Improved URL handling for V1/V2 differences in API responses
   - Enhanced settings initialization and validation

5. Structural Changes:
   - Added RVC-specific UI elements and controls
   - Added version-specific logic for API endpoints
   - Improved settings synchronization between UI and backend

**NOTE** On line 70 there is an eslint bypass:

```javascript
        // HTML template literals can trigger ESLint quotes warnings when quotes are used in HTML attributes.
        // Disabling quotes rule for this one line as it's a false positive with HTML template literals.
        // eslint-disable-next-line quotes
        let html = `<div class="at-settings-separator">AllTalk V2 Settings</div>`;
```

The reason is:
1. ESLint's quotes rule wants all strings to use single quotes
2. However, this is a template literal containing HTML, where double quotes are standard for attributes
3. I tried various solutions:
   - Using single quotes: `<div class='at-settings-separator'>`
   - Using double quotes: `<div class="at-settings-separator">`
   - Even tried escaping quotes
   But ESLint just kept flagging it as an error
2024-11-15 13:14:38 +00:00
..
autocomplete
extensions Updated AllTalk Extension to support AllTalk V2 2024-11-15 13:14:38 +00:00
slash-commands Fix tools-list 2024-10-06 13:01:14 +03:00
templates Update translation-related stuff a little 2024-10-07 00:04:49 +07:00
util Handle aborting status check gracefully 2024-09-07 23:27:46 +02:00
BulkEditOverlay.js [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
PromptManager.js Chat Completion: switch to async token handling 2024-10-12 01:07:36 +03:00
RossAscends-mods.js Merge pull request #2994 from artisticMink/fix-double-quotes 2024-10-17 22:19:48 +03:00
authors-note.js Work on tl 2024-10-01 21:25:20 +07:00
backgrounds.js Adjust default extension prompts, remove square brackets 2024-09-22 12:58:46 +03:00
bookmarks.js Fix shift+click in chat manager 2024-09-13 21:35:42 +03:00
browser-fixes.js [chore] Add JSDoc 2024-10-18 19:46:37 +03:00
bulk-edit.js
cfg-scale.js
char-data.js
chats.js Indicate connected textarea for expanded editor 2024-10-21 11:01:55 +03:00
constants.js
dragdrop.js
dynamic-styles.js [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
extensions-slashcommands.js Returns doesn't support HTML, ditto 2024-09-27 01:19:45 +03:00
extensions.js Refactor extension slash commands into own file 2024-09-25 23:18:37 +02:00
f-localStorage.js
filters.js
group-chats.js Add missing import 2024-10-06 19:13:01 +03:00
horde.js Display more of the description. Remove debug log 2024-09-17 22:06:54 +03:00
i18n.js Localize only the moment instance 2024-10-28 11:07:39 +02:00
input-md-formatting.js Markdown hotkeys for textareas (#2800) 2024-09-14 14:16:26 +03:00
instruct-mode.js Add .git to jsconfig ignore 2024-10-06 19:12:28 +03:00
kai-settings.js Add empty tool calls to streaming processors 2024-10-02 01:59:53 +03:00
keyboard.js
loader.js
login.js [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
logit-bias.js
logprobs.js correctly interpret some alternate whitespaces in token names 2024-10-19 00:24:35 -04:00
macros.js [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
nai-settings.js NovelAI: Increase tier token limits 2024-10-17 23:47:47 +03:00
openai.js MistralAI: Explicitly set context size for ministral 2024-10-18 20:52:17 +03:00
personas.js Unify default user avatars 2024-09-16 22:08:40 +03:00
popup.js Use a resize observer to center the popup after an image is loaded when polyfilled 2024-10-10 10:41:40 +07:00
power-user.js TextGenWebUI: remove legacy API mode 2024-10-15 00:32:56 +03:00
preset-manager.js Add parentheses for clarity 2024-10-09 01:31:45 +03:00
samplerSelect.js fix sampler select color highlights 2024-09-09 11:29:04 +09:00
scrapers.js Correct async calls to init scrapers 2024-09-29 11:27:07 +02:00
secrets.js WebSearch: Add endpoint for Tavily 2024-10-23 23:38:17 +03:00
server-history.js
setting-search.js
showdown-exclusion.js
showdown-underscore.js Fix codeblock underscores with language 2024-08-25 21:18:15 +03:00
slash-commands.js /popup: add scroll argument, allow scroll by default 2024-10-23 23:03:07 +03:00
sse-stream.js Fix smooth streaming 2024-10-14 10:02:39 +00:00
stats.js
sysprompt.js Fix sysprompts set with commands 2024-09-25 14:58:24 +00:00
tags.js Refactor findChar to utils 2024-09-29 03:20:01 +02:00
templates.js
textgen-models.js Featherless: Fix model pagination init 2024-10-18 20:05:50 +03:00
textgen-settings.js Backport llama.cpp-related DRY fixes from staging (#3051) 2024-11-06 19:47:30 +02:00
tokenizers.js TextGenWebUI: remove legacy API mode 2024-10-15 00:32:56 +03:00
tool-calling.js Tool Calling: stringify errors instead of silently failing 2024-10-09 22:39:55 +03:00
user.js Add a noauto query param to login 2024-10-07 09:17:43 +07:00
utils.js Localize only the moment instance 2024-10-28 11:07:39 +02:00
variables.js [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
world-info.js add export to the getworldentry function 2024-10-14 00:16:30 +03:00