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

Function stopContentBlock

src/services/api/openAICompatInferenceClient.ts:1194–1203  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

1192 }
1193
1194 const stopContentBlock = (index: number): BetaRawMessageStreamEvent | null => {
1195 if (stoppedContentIndices.has(index)) {
1196 return null
1197 }
1198 stoppedContentIndices.add(index)
1199 return {
1200 type: 'content_block_stop',
1201 index,
1202 } as BetaRawMessageStreamEvent
1203 }
1204
1205 const resolveToolKey = (
1206 toolCall: OpenAIStreamToolCallDelta,

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected