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

Function isFinalChunk

web/src/llm-api/siliconflow.ts:412–416  ·  view source on GitHub ↗
(data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

410}
411
412function isFinalChunk(data: Record<string, unknown>): boolean {
413 const choices = data.choices as Array<Record<string, unknown>> | undefined
414 if (!choices || choices.length === 0) return true
415 return choices.some(c => c.finish_reason != null)
416}
417
418async function handleResponse({
419 userId,

Callers 1

handleResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected