mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
chore: fix lint curly brace in embeddings.ts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user