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:
aishwary-dongre 2026-09-04 18:09:10 +00:00
parent abc80708c1
commit dc29b96933

View file

@ -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",