MCPcopy Create free account
hub / github.com/github/copilot-sdk / makeChunk

Function makeChunk

test/harness/replayingCapiProxy.ts:1420–1428  ·  view source on GitHub ↗
(
    delta: ChatCompletionChunk.Choice.Delta,
  )

Source from the content-addressed store, hash-verified

1418 );
1419
1420 const makeChunk = (
1421 delta: ChatCompletionChunk.Choice.Delta,
1422 ): ChatCompletionChunk => ({
1423 id: completion.id,
1424 object: "chat.completion.chunk",
1425 created: completion.created,
1426 model: completion.model,
1427 choices: [{ index: 0, delta, finish_reason: null, logprobs: null }],
1428 });
1429
1430 const chunks: ChatCompletionChunk[] = [];
1431

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…