MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _requested_transport_name

Function _requested_transport_name

uncommon_route/proxy.py:2132–2137  ·  view source on GitHub ↗
(*, api_format: str, endpoint_name: str)

Source from the content-addressed store, hash-verified

2130
2131
2132def _requested_transport_name(*, api_format: str, endpoint_name: str) -> str:
2133 if str(api_format or "").strip().lower() == "anthropic" or str(endpoint_name or "").strip().lower() == "messages":
2134 return "anthropic-messages"
2135 if str(endpoint_name or "").strip().lower() == "responses":
2136 return "openai-responses"
2137 return "openai-chat"
2138
2139
2140def _supports_native_anthropic_transport(

Callers 2

_choose_transportFunction · 0.85
_handle_chat_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected