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

Function _anthropic_messages_url

uncommon_route/proxy.py:2096–2102  ·  view source on GitHub ↗
(base_url: str)

Source from the content-addressed store, hash-verified

2094
2095
2096def _anthropic_messages_url(base_url: str) -> str:
2097 root = str(base_url or "").rstrip("/")
2098 if root.endswith("/messages"):
2099 return root
2100 if root.endswith("/v1"):
2101 return f"{root}/messages"
2102 return f"{root}/v1/messages"
2103
2104
2105def _anthropic_transport_base(base_url: str, family: str) -> str:

Calls

no outgoing calls