Update litellm/llms/github_copilot/chat/transformation.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Timothy Oluwatobi Ojebiyi 2026-05-16 08:32:32 +01:00 committed by GitHub
parent 9524892627
commit 21be2785ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: