MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / failingStream

Function failingStream

packages/kosong/test/openai-common-errors.test.ts:164–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected