Fix mistral

This commit is contained in:
kwaroran
2024-08-24 15:45:47 +09:00
parent 32014d6501
commit 7603c60134
2 changed files with 10 additions and 4 deletions

View File

@@ -10,7 +10,9 @@
}, {
"role": "assistant",
"content": "Hello, I'm a bot!"
}]
}],
"eos_token": "",
"bos_token": ""
}, null, 4)
let output = "";
const onInput = () => {
@@ -19,6 +21,8 @@
const values = JSON.parse(json);
output = template.render(values);
} catch (e) {
//log error stack of e
console.error(e.stack);
output = `Error: ${e}`
}
}