MCPcopy Create free account
hub / github.com/TanStack/ai / chatStream

Method chatStream

packages/ai-grok-build/src/adapters/text.ts:197–205  ·  view source on GitHub ↗
(
    options: TextOptions<GrokBuildTextProviderOptions>,
  )

Source from the content-addressed store, hash-verified

195 }
196
197 async *chatStream(
198 options: TextOptions<GrokBuildTextProviderOptions>,
199 ): AsyncIterable<StreamChunk> {
200 if (this.protocol(options) === 'streaming-json') {
201 yield* this.chatStreamNdjson(options)
202 return
203 }
204 yield* this.chatStreamAcp(options)
205 }
206
207 private async *chatStreamAcp(
208 options: TextOptions<GrokBuildTextProviderOptions>,

Callers 3

Calls 3

protocolMethod · 0.95
chatStreamNdjsonMethod · 0.95
chatStreamAcpMethod · 0.95

Tested by

no test coverage detected