MCPcopy Create free account
hub / github.com/anomalyco/opencode / streamError

Function streamError

packages/llm/src/route/client.ts:220–224  ·  view source on GitHub ↗
(route: string, message: string, cause: Cause.Cause<unknown>)

Source from the content-addressed store, hash-verified

218}
219
220const streamError = (route: string, message: string, cause: Cause.Cause<unknown>) => {
221 const failed = cause.reasons.find(Cause.isFailReason)?.error
222 if (failed instanceof LLMErrorClass) return failed
223 return ProviderShared.eventError(route, message, Cause.pretty(cause))
224}
225
226function makeFromTransport<Body, Prepared, Frame, Event, State>(
227 input: MakeTransportInput<Body, Prepared, Frame, Event, State>,

Callers 1

buildFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected