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

Function fetchOverride

src/services/api/inferenceClient.test.ts:94–104  ·  view source on GitHub ↗
(input, init)

Source from the content-addressed store, hash-verified

92 | undefined
93
94 const fetchOverride: FetchOverride = async (input, init) => {
95 request = {
96 url: input instanceof Request ? input.url : String(input),
97 method: init?.method,
98 headers: new Headers(init?.headers),
99 }
100 return new Response(JSON.stringify({ data: [{ id: 'test-model' }] }), {
101 status: 200,
102 headers: { 'content-type': 'application/json' },
103 })
104 }
105
106 return {
107 fetchOverride,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected