MCPcopy Create free account
hub / github.com/continuedev/continue / contentChunk

Function contentChunk

extensions/cli/src/stream/streamChatResponse.test.ts:30–44  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

28
29 // Helper to create a content chunk
30 function contentChunk(content: string): ChatCompletionChunk {
31 return {
32 id: "test",
33 object: "chat.completion.chunk",
34 created: Date.now(),
35 model: "test-model",
36 choices: [
37 {
38 index: 0,
39 delta: { content },
40 finish_reason: null,
41 },
42 ],
43 };
44 }
45
46 // Helper to create a tool call chunk
47 function toolCallChunk(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected