4 lines
131 B
TypeScript
4 lines
131 B
TypeScript
export const ClaudeSliceTextByToken = ({ text, length }: { text: string; length: number }) => {
|
|
return text.slice(0, length);
|
|
};
|