/
vizzle
/
CommitSage
Обзор
Документация
Войти
/
vizzle
/
CommitSage
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/utils/textProcessing.ts
13 строк
471 B
Ivan K
refactor: update eslint config to new format
20 июн 2025, 12:39
20 июн 2025, 12:39
3a52f35
Код
Авторство
О чём код?
/** * Utility functions for processing text responses from AI models */ /** * Removes any content between <think></think> tags from the input text * @param text - The input text that may contain think tags * @returns The text with all think tag content removed */ export function removeThinkTags(text: string): string { // Remove all content between <think> tags, including the tags themselves return text.replace(/<think>[\s\S]*?<\/think>/g, '').trim(); }