()
| 162 | // Simulates: streaming for ~33 minutes, then SSE connection drops |
| 163 | // and the SDK raises openai.APIError("Network connection lost.") |
| 164 | async function* failingStream(): AsyncGenerator<never> { |
| 165 | throw new OpenAIAPIError(undefined, undefined, 'Network connection lost.', undefined); |
| 166 | // Make this an async generator (unreachable) |
| 167 | yield undefined as never; |
| 168 | } |
| 169 | |
| 170 | const msg = new OpenAILegacyStreamedMessage( |
| 171 | failingStream() as AsyncIterable<never>, |
no outgoing calls
no test coverage detected