chore: fix lint curly brace in embeddings.ts

This commit is contained in:
Tarun Sukhani
2026-02-05 13:34:13 +00:00
parent 8e5fe5fc14
commit 50f095ecb0

View File

@@ -49,7 +49,9 @@ export class Embeddings {
*/
private truncateToContext(text: string): string {
const maxChars = this.contextLength * 3;
if (text.length <= maxChars) return text;
if (text.length <= maxChars) {
return text;
}
// Try to truncate at a word boundary
let truncated = text.slice(0, maxChars);