MCPcopy Index your code
hub / github.com/simstudioai/sim / okResponse

Function okResponse

apps/sim/app/api/providers/together/models/route.test.ts:50–55  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

48const TOGETHER_MODELS_URL = 'https://api.together.ai/v1/models'
49
50const okResponse = (body: unknown) => ({
51 ok: true,
52 status: 200,
53 statusText: 'OK',
54 json: vi.fn().mockResolvedValue(body),
55})
56
57const errorResponse = (status: number, statusText = 'Unauthorized') => ({
58 ok: false,

Callers 1

route.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected