MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeDelta

Function makeDelta

src/services/api/openAICompatWsV2Native.test.ts:38–46  ·  view source on GitHub ↗
(content: string, id?: string)

Source from the content-addressed store, hash-verified

36}
37
38function makeDelta(content: string, id?: string): string {
39 return JSON.stringify({
40 method: 'chat.completions.delta',
41 params: {
42 ...(id ? { id } : {}),
43 data: JSON.stringify({ choices: [{ delta: { content } }] }),
44 },
45 })
46}
47
48function makeCompleted(id?: string): string {
49 return JSON.stringify({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected