Mistral: Use hex toolid encoding
This commit is contained in:
parent
f82a479a90
commit
87d73af0ac
|
@ -545,7 +545,7 @@ function convertMistralMessages(messages, charName = '', userName = '') {
|
||||||
lastMsg.prefix = true;
|
lastMsg.prefix = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sanitizeToolId = (id) => crypto.hash('sha512', id, 'base64').slice(0, 9);
|
const sanitizeToolId = (id) => crypto.hash('sha512', id, 'hex').slice(0, 9);
|
||||||
|
|
||||||
// Doesn't support completion names, so prepend if not already done by the frontend (e.g. for group chats).
|
// Doesn't support completion names, so prepend if not already done by the frontend (e.g. for group chats).
|
||||||
messages.forEach(msg => {
|
messages.forEach(msg => {
|
||||||
|
|
Loading…
Reference in New Issue