MCPcopy
hub / github.com/coder/mux / parseSentBody

Function parseSentBody

src/node/services/providerModelFactory.test.ts:1580–1582  ·  view source on GitHub ↗
(call: CapturedFetchCall)

Source from the content-addressed store, hash-verified

1578}
1579
1580function parseSentBody(call: CapturedFetchCall): Record<string, unknown> {
1581 return JSON.parse(call.init.body as string) as Record<string, unknown>;
1582}
1583
1584describe("wrapFetchWithAnthropicCacheControl — Opus 4.7+ / Sonnet 5+ wire transforms", () => {
1585 for (const model of ["claude-opus-4-7", "claude-opus-4-8", "claude-sonnet-5"] as const) {

Callers 1

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected