chore: remove useless comments

This commit is contained in:
mateo-berri 2026-04-23 11:45:34 -07:00 committed by Sameer Kankute
parent 08697b63c5
commit b8c0f8dbec
No known key found for this signature in database
3 changed files with 0 additions and 17 deletions

View file

@ -1203,12 +1203,6 @@ class AmazonConverseConfig(BaseConfig):
output_config: Optional[OutputConfigBlock] = inference_params.pop(
"outputConfig", None
)
# Strip routing prefixes (e.g. ``converse/``) and pass the provider
# explicitly so the declarative ``supports_output_config`` flag in
# ``model_prices_and_context_window.json`` is actually consulted.
# Passing ``custom_llm_provider=None`` would make ``_supports_factory``
# silently return False for any model whose name doesn't resolve to a
# known provider prefix on its own.
if not _supports_factory(
model=strip_bedrock_routing_prefix(model),
custom_llm_provider="bedrock",

View file

@ -171,12 +171,6 @@ class AmazonAnthropicClaudeConfig(AmazonInvokeConfig, AnthropicConfig):
anthropic_request.pop("model", None)
anthropic_request.pop("stream", None)
anthropic_request.pop("output_format", None)
# ``model`` reaches this transformation with an ``invoke/`` routing
# prefix (e.g. ``invoke/us.anthropic.claude-opus-4-6-v1``) which is
# not a valid provider and makes ``_supports_factory`` silently
# return False. Strip the routing prefix and pass the provider
# explicitly so the declarative ``supports_output_config`` flag in
# ``model_prices_and_context_window.json`` is actually consulted.
if not _supports_factory(
model=strip_bedrock_routing_prefix(model),
custom_llm_provider="bedrock",

View file

@ -510,11 +510,6 @@ class AmazonAnthropicClaudeMessagesConfig(
# 5b. Bedrock Invoke supports output_config (effort) for Claude 4.6+ models,
# but older models do not — strip it to avoid request rejection.
# Ref: https://github.com/BerriAI/litellm/issues/22797
# ``model`` still carries the ``invoke/`` routing prefix here, which
# is not a valid provider and makes ``_supports_factory`` silently
# return False. Strip the prefix and pass the provider explicitly so
# the declarative ``supports_output_config`` flag in the cost map
# is actually consulted.
if not _supports_factory(
model=strip_bedrock_routing_prefix(model),
custom_llm_provider="bedrock",