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

Function modelsResponse

src/node/services/copilotOauthService.test.ts:44–46  ·  view source on GitHub ↗

Models list response from Copilot API.

(models: string[] = ["gpt-5", "claude-sonnet-4"])

Source from the content-addressed store, hash-verified

42
43/** Models list response from Copilot API. */
44function modelsResponse(models: string[] = ["gpt-5", "claude-sonnet-4"]): Response {
45 return jsonResponse({ data: models.map((id) => ({ id })) });
46}
47
48// Helper to mock globalThis.fetch without needing the `preconnect` property.
49function mockFetch(

Callers 1

Calls 1

jsonResponseFunction · 0.70

Tested by

no test coverage detected