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

Function _anthropic_response_model_name

uncommon_route/proxy.py:2123–2129  ·  view source on GitHub ↗
(model: str)

Source from the content-addressed store, hash-verified

2121
2122
2123def _anthropic_response_model_name(model: str) -> str:
2124 value = str(model or "").strip()
2125 if not value:
2126 return value
2127 if value.startswith("anthropic/"):
2128 value = value.split("/", 1)[1]
2129 return re.sub(r"(\d)\.(\d)", r"\1-\2", value)
2130
2131
2132def _requested_transport_name(*, api_format: str, endpoint_name: str) -> str:

Callers 2

_build_proxy_responseFunction · 0.85
_handle_chat_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected