8372e7bf9d
"gradually replacing property access with a dot operator" ( #4965 )
...
* "gradually replacing property access with a dot operator"
https://github.com/SillyTavern/SillyTavern/pull/4963#discussion_r2663003561
(?<=\w|\])\['([a-zA-Z]\w+)'\]
My regex found 593 matches across 47 files.
Also, two typos.
* Fixed chat[0].chat_metadata type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664275854
* Fixed `swipedElementsDiv[0]?.getAnimations().filter((a) => a.animationName` type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664274593
* Fixed config.MESSAGE_SANITIZE and config.MESSAGE_ALLOW_SYSTEM_UI type errors.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664266271
* Fixed group.date_last_chat type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664295652
* Reverted SlashCommandParser dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664310931
* LLM fixed canUseNegativeLookbehind.result; type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664314288
* Reverted chat-completions.js bodyParams and headers dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664317848
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664320088
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664324438
* Reverted openai.js data dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664326244
* Reverted tests/frontend/MacroEnvBuilder.e2e.js env.dynamicMacros dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664330990
* Partially reverted `window` dot property access.
* Reverted result.json() and settings dot property access.
* Reverted google.js headers dot property access.
* Fixed regex: `(?<=\w|\])\['([a-zA-Z]\w*)'\]`
* Swapped window to globalThis with dot property access.
* LLM fixed canUseNegativeLookbehind type.
* Refactor property access
* Consistency
---------
Co-authored-by: user <user@exmaple.com >
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2026-01-08 23:58:21 +02:00
Cohee
e37b709e96
Add Harmony template ( #4431 )
...
* Add Harmony template
* Add Thinking instruct variant and reasoning template
* Specify template hash from unsloth
* Add ggml-org template hash
2025-08-24 20:36:49 +03:00
kallewoof
c3e3fdb0ca
chat templates: add Kimi K2 (Moonshot AI) chat template derivation ( #4283 )
...
* chat templates: add Kimi K2 (Moonshot AI) chat template derivation
* tweak chatml substring derivation
2025-07-18 11:04:57 +03:00
Cohee
fbb6180bc1
Adjust scoped variable naming, format comments
2025-06-29 18:09:47 +03:00
kallewoof and Cohee
1b2976ae1d
feature: customizable mappings for presets per model name / chat template ( #4153 )
...
* feature: customizable mappings for presets per chat template
This adds the ability to assign custom context/instruct presets on a per-chat-template(-hash) basis. Users using custom templates may use this feature to auto-enable the preset of their choice, rather than the built-in defaults.
* fix: do not use chat tempate based instruct preset derivation if a preset was auto-selected already
This fixes issues where regex matched presets are overridden.
* reset chat template hash on connect
* handle derive_mappings being null
* unorthodox eslint requirement adherence
* button styling
* un-nest derivation related properties
* Migrate setting
* add bind model to preset button to the miscellaneous section
* switch to unified button for model preset mappings
* fix bind UI
* eslint
* do not include koboldcpp/ggml-model-xxx.gguf in preset saving
* review fixes
* stray console.log / eslint
* Update checkbox state if no model map exists
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-06-29 18:04:00 +03:00
Karl-Johan Alm
644b988b74
chat-templates: reorder by version and add missing template
2025-05-12 14:26:18 +09:00
Karl-Johan Alm
2d366117dd
chat preset: GLM-4
2025-04-25 15:22:51 +09:00
Karl-Johan Alm
f180d22680
chat-template: gemma 3
2025-03-14 13:57:48 +09:00
Eradev
552a418bae
Merge branch 'staging' into staging-3071-v2
2025-01-28 10:49:53 -05:00
Karl-Johan Alm
93b18e6440
fix: corrects the preset name and adds deepseek v2.5 hash.
2025-01-22 21:36:18 +09:00
Karl-Johan Alm
7877e6601d
add presets for DeepSeek R1 models
2025-01-22 13:13:41 +09:00
Eradev
1f9fa74786
Rewritten minLogLevel feature
2025-01-15 10:02:32 -05:00
Karl-Johan Alm
8d67bdee84
Add Tulu templates
2024-11-27 11:58:12 +09:00
Karl-Johan Alm
eec20dab95
template derivation: explicitly skip derivation attempt if chat_template is empty
2024-11-25 17:03:21 +09:00
Cohee
c8e6ba4d7f
Add template hash for gemma-2-2b
2024-11-23 17:38:12 +02:00
Cohee
b9cc763d51
Fix typo in file name
2024-11-23 17:30:50 +02:00