* Parse XML thinking content: ...
(text: string)
| 599 | * Parse XML thinking content: <thinking>...</thinking> |
| 600 | */ |
| 601 | function parseXmlThinking(text: string): string | null { |
| 602 | const match = /<thinking>([\s\S]*?)<\/thinking>/.exec(text) |
| 603 | return match ? match[1]!.trim() : null |
| 604 | } |
| 605 | |
| 606 | /** |
| 607 | * Extract usage stats from an API response. |
no outgoing calls
no test coverage detected