added substr derivations with one example

This commit is contained in:
Karl-Johan Alm
2024-11-21 13:01:29 +09:00
parent c30dde8471
commit 3789381c6c
2 changed files with 21 additions and 11 deletions

View File

@@ -1252,7 +1252,7 @@ async function getStatusTextgen() {
const data = await response.json();
if (data) {
const { chat_template, chat_template_hash } = data;
console.log(`${wantsContextDerivation} ${wantsInstructDerivation} We have chat template ${chat_template.split('\n')[0]}...`);
console.log(`We have chat template ${chat_template.split('\n')[0]}...`);
const templates = await deriveTemplatesFromChatTemplate(chat_template, chat_template_hash);
if (templates) {
const { context, instruct } = templates;