(text: string)
| 261 | await this.db.write(); |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | private removeThinkTags(text: string): string { |
| 266 | if (text.includes('<think>') && text.includes('</think>')) { |
| 267 | const match = text.match(/<\/think>\s*([\s\S]*?)$/); |
| 268 | if (match) { |
| 269 | return match[1].trim(); |
| 270 | } |
| 271 | } |
| 272 | return text; |
| 273 | } |
no outgoing calls
no test coverage detected