Mistral: Use hex toolid encoding

This commit is contained in:
Cohee 2024-10-06 23:43:13 +03:00
parent f82a479a90
commit 87d73af0ac
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ function convertMistralMessages(messages, charName = '', userName = '') {
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).
messages.forEach(msg => {