| 7 | } |
| 8 | |
| 9 | interface ToolBlockState { |
| 10 | index: number; |
| 11 | name: string; |
| 12 | id: string; |
| 13 | buffer: string; |
| 14 | open: boolean; |
| 15 | } |
| 16 | |
| 17 | export function streamOpenRouterToAnthropic(upstream: Response, options: StreamOptions): Response { |
| 18 | if (!upstream.body) throw new Error('Upstream response has no body to stream'); |
nothing calls this directly
no outgoing calls
no test coverage detected