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

Function sseData

src/services/api/openAICompatInferenceClient.test.ts:927–927  ·  view source on GitHub ↗
(payload: unknown)

Source from the content-addressed store, hash-verified

925describe('OpenAICompatInferenceClient', () => {
926 it('streams OpenAI chat chunks as Anthropic-style events with raw headers preserved', async () => {
927 const sseData = (payload: unknown) => `data: ${JSON.stringify(payload)}\n\n`
928 const events = [
929 sseData({
930 id: 'chatcmpl-1',

Callers 2

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected