MCPcopy Index your code
hub / github.com/github/copilot-sdk / model_catalog

Function model_catalog

python/e2e/_copilot_request_helpers.py:58–83  ·  view source on GitHub ↗

The synthetic ``/models`` catalog payload.

(supported_endpoints: list[str] | None = None)

Source from the content-addressed store, hash-verified

56
57
58def model_catalog(supported_endpoints: list[str] | None = None) -> dict:
59 """The synthetic ``/models`` catalog payload."""
60 model: dict = {
61 "id": "claude-sonnet-4.5",
62 "name": "Claude Sonnet 4.5",
63 "object": "model",
64 "vendor": "Anthropic",
65 "version": "1",
66 "preview": False,
67 "model_picker_enabled": True,
68 "capabilities": {
69 "type": "chat",
70 "family": "claude-sonnet-4.5",
71 "tokenizer": "o200k_base",
72 "limits": {"max_context_window_tokens": 200000, "max_output_tokens": 8192},
73 "supports": {
74 "streaming": True,
75 "tool_calls": True,
76 "parallel_tool_calls": True,
77 "vision": True,
78 },
79 },
80 }
81 if supported_endpoints is not None:
82 model["supported_endpoints"] = supported_endpoints
83 return {"data": [model]}
84
85
86def responses_events(text: str, resp_id: str = "resp_stub_1") -> list[dict]:

Callers 2

_routeMethod · 0.85

Calls

no outgoing calls

Tested by 1

_routeMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…