MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isFinalChunk

Function isFinalChunk

web/src/llm-api/opencode-zen.ts:562–566  ·  view source on GitHub ↗
(data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

560}
561
562function isFinalChunk(data: Record<string, unknown>): boolean {
563 const choices = data.choices as Array<Record<string, unknown>> | undefined
564 if (!choices || choices.length === 0) return true
565 return choices.some((choice) => choice.finish_reason != null)
566}
567
568async function handleResponse({
569 userId,

Callers 1

handleResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected