From 21be2785ae0067d8fbe2c1c59491e760e3e1a64b Mon Sep 17 00:00:00 2001 From: Timothy Oluwatobi Ojebiyi Date: Sat, 16 May 2026 08:32:32 +0100 Subject: [PATCH] Update litellm/llms/github_copilot/chat/transformation.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/llms/github_copilot/chat/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/github_copilot/chat/transformation.py b/litellm/llms/github_copilot/chat/transformation.py index c4969f67602..b18ed73f073 100644 --- a/litellm/llms/github_copilot/chat/transformation.py +++ b/litellm/llms/github_copilot/chat/transformation.py @@ -164,7 +164,7 @@ class GithubCopilotConfig(OpenAIConfig): and thinking.get("type") == "enabled" and existing_reasoning_effort is None ): - budget_tokens = thinking.get("budget_tokens", 0) + budget_tokens = thinking.get("budget_tokens") or 0 if budget_tokens >= 10000: reasoning_effort = "high" elif budget_tokens >= 5000: