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

Function stream

packages/llm/src/route/client.ts:396–402  ·  view source on GitHub ↗
(request: LLMRequest)

Source from the content-addressed store, hash-verified

394 prepareWith(request) as Effect.Effect<PreparedRequestOf<Body>, LLMError>
395
396export function stream(request: LLMRequest): Stream.Stream<LLMEvent, LLMError> {
397 return Stream.unwrap(
398 Effect.gen(function* () {
399 return (yield* Service).stream(request)
400 }),
401 ) as Stream.Stream<LLMEvent, LLMError>
402}
403
404export function generate(request: LLMRequest): Effect.Effect<LLMResponse, LLMError> {
405 return Effect.gen(function* () {

Callers 1

generateWithFunction · 0.70

Calls 1

streamMethod · 0.80

Tested by

no test coverage detected