refactor: drop unused native endpoint aliases in responses and messages

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-09-13 04:15:49 +00:00
parent 5d41295c2a
commit e100fe924a
2 changed files with 2 additions and 10 deletions

View file

@ -566,7 +566,7 @@ def anthropic_messages_handler(
model=model,
provider=litellm.LlmProviders(custom_llm_provider),
)
if anthropic_messages_provider_config is None and _deployment_supports_native_anthropic_messages(
if anthropic_messages_provider_config is None and _deployment_passes_through_anthropic_messages(
kwargs.get("model_info")
):
from litellm.llms.openai_like.messages.transformation import (
@ -664,7 +664,3 @@ def anthropic_messages_handler(
stream=stream,
kwargs=kwargs,
)
def _deployment_supports_native_anthropic_messages(model_info: object) -> bool:
return _deployment_passes_through_anthropic_messages(model_info)

View file

@ -466,7 +466,7 @@ def _resolve_responses_api_provider_config(
provider_config: Final = ProviderConfigManager.get_provider_responses_api_config(
model=model, provider=custom_llm_provider
)
if provider_config is not None or not _deployment_supports_native_responses(model_info):
if provider_config is not None or not _deployment_passes_through_responses(model_info):
return provider_config
return OpenAILikeResponsesConfig()
@ -2291,7 +2291,3 @@ async def _aresponses_websocket(
custom_llm_provider=_custom_llm_provider,
**remaining_kwargs,
)
def _deployment_supports_native_responses(model_info: object) -> bool:
return _deployment_passes_through_responses(model_info)