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

Method list

python/copilot/generated/rpc.py:25091–25094  ·  view source on GitHub ↗

Lists Copilot models available to the authenticated user.\n\nArgs:\n params: Optional GitHub token used to list models for a specific user instead of the global auth context.\n\nReturns:\n List of Copilot models available to the resolved user, including capabilities and billing metadata.

(self, params: ModelsListRequest, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

25089 self._client = client
25090
25091 async def list(self, params: ModelsListRequest, *, timeout: float | None = None) -> ModelList:
25092 "Lists Copilot models available to the authenticated user.\n\nArgs:\n params: Optional GitHub token used to list models for a specific user instead of the global auth context.\n\nReturns:\n List of Copilot models available to the resolved user, including capabilities and billing metadata."
25093 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25094 return ModelList.from_dict(_patch_model_capabilities(await self._client.request("models.list", params_dict, **_timeout_kwargs(timeout))))
25095
25096
25097# Experimental: this API group is experimental and may change or be removed.

Calls 5

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45