Files
FastGPT/src/utils/chat/claude.ts
2023-05-04 10:53:55 +08:00

4 lines
131 B
TypeScript

export const ClaudeSliceTextByToken = ({ text, length }: { text: string; length: number }) => {
return text.slice(0, length);
};