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)
| 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. |