Update glhf.js

Fixed some logging
This commit is contained in:
Sweaterdog 2025-06-07 17:02:42 -07:00 committed by GitHub
parent 6ae7b82a53
commit 69332f6a19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,7 @@ export class GLHF {
if (typeof finalRes === 'string') {
finalRes = finalRes.replace(/<thinking>/g, '<think>').replace(/<\/thinking>/g, '</think>');
}
log(JSON.stringify(messages), finalRes);
log(JSON.stringify([{ role: 'system', content: systemMessage }].concat(turns)), finalRes);
return finalRes;
}