mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
fix: remove Final from mapped_thinking to allow clamped reassignment
basedpyright flagged mapped_thinking as Final while the clamp fix reassigns it after capping the budget. Dropping Final resolves the reportGeneralTypeIssues gate failure without changing behavior.
This commit is contained in:
parent
abc80708c1
commit
dc29b96933
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ class AmazonConverseConfig(BaseConfig):
|
|||
reasoning_config: Final = self._transform_reasoning_effort_to_reasoning_config(reasoning_effort)
|
||||
optional_params.update(reasoning_config)
|
||||
else:
|
||||
mapped_thinking: Final = AnthropicConfig._map_reasoning_effort(
|
||||
mapped_thinking = AnthropicConfig._map_reasoning_effort(
|
||||
reasoning_effort=reasoning_effort,
|
||||
model=model,
|
||||
custom_llm_provider="bedrock",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue