Update huggingface.js

Fixed an accidental enter
This commit is contained in:
Sweaterdog 2025-06-07 16:35:46 -07:00 committed by GitHub
parent 296fb1323c
commit 44be97adc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,7 @@ export class HuggingFace {
const prompt = toSinglePrompt(turns, null, stop_seq);
const model_name = this.model_name || 'meta-llama/Meta-Llama-3-8B';
const logInputMessages = [{role: 'system', content: systemMessage}, ...turns];
const input = systemMessage + "
" + prompt;
const input = systemMessage + "" + prompt;
const maxAttempts = 5;
let attempt = 0;
let finalRes = null;