mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
chore: remove useless comments
This commit is contained in:
parent
08697b63c5
commit
b8c0f8dbec
3 changed files with 0 additions and 17 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue