mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
Merge pull request #1802 from Technologicat/modelname
{{model}} substitution to get name of current LLM
This commit is contained in:
commit
03ad72b6c7
@ -2179,6 +2179,7 @@ function substituteParams(content, _name1, _name2, _original, _group, _replaceCh
|
|||||||
environment.user = _name1 ?? name1;
|
environment.user = _name1 ?? name1;
|
||||||
environment.char = _name2 ?? name2;
|
environment.char = _name2 ?? name2;
|
||||||
environment.group = environment.charIfNotGroup = _group ?? name2;
|
environment.group = environment.charIfNotGroup = _group ?? name2;
|
||||||
|
environment.model = getGeneratingModel();
|
||||||
|
|
||||||
return evaluateMacros(content, environment);
|
return evaluateMacros(content, environment);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user