Duplicated from huggingchat/chat-ui
0abf663
1
2
3
4
5
6
7
export function trimPrefix(input: string, prefix: string) { if (input.startsWith(prefix)) { return input.slice(prefix.length); } return input; }