(model: str)
| 2121 | |
| 2122 | |
| 2123 | def _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 | |
| 2132 | def _requested_transport_name(*, api_format: str, endpoint_name: str) -> str: |
no outgoing calls
no test coverage detected