mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
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:
parent
9524892627
commit
21be2785ae
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue