From 6f614c484b36ca492c565152b961468dbd8db126 Mon Sep 17 00:00:00 2001 From: allenliang2022 Date: Thu, 13 Aug 2026 19:13:04 +0800 Subject: [PATCH] fix(github_copilot): explain the inherited dict annotations for the type gate --- litellm/llms/github_copilot/chat/transformation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/llms/github_copilot/chat/transformation.py b/litellm/llms/github_copilot/chat/transformation.py index d74a478882f..4ceb7338c0e 100644 --- a/litellm/llms/github_copilot/chat/transformation.py +++ b/litellm/llms/github_copilot/chat/transformation.py @@ -137,11 +137,11 @@ class GithubCopilotConfig(OpenAIConfig): def map_openai_params( self, - non_default_params: dict, - optional_params: dict, + non_default_params: dict, # mutable-ok: matches the BaseConfig override signature + optional_params: dict, # mutable-ok: matches the BaseConfig override signature model: str, drop_params: bool, - ) -> dict: + ) -> dict: # mutable-ok: matches the BaseConfig override signature # OpenAIConfig routes non-o-series/non-gpt-5 models to OpenAIGPTConfig, whose # whitelist has neither key, so advertising them alone dropped them (#25666) supported: Final = frozenset(self.get_supported_openai_params(model)) & _REASONING_PARAMS