Mistral: Use hex toolid encoding

87d73af0ac7e2c4fb5268fe221b0dce781d1c369

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
src/prompt-converters.js+1 -1
@@ -545,7 +545,7 @@ function convertMistralMessages(messages, charName = '', userName = '') {
545545 lastMsg.prefix = true;
546546 }
547547
548548 const sanitizeToolId = (id) => crypto.hash('sha512', id, 'base64hex').slice(0, 9);
549549
550550 // Doesn't support completion names, so prepend if not already done by the frontend (e.g. for group chats).
551551 messages.forEach(msg => {