Commit Graph
15 Commits
Author SHA1 Message Date
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
kallewoofandCohee 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