(model_client: Any)
| 237 | |
| 238 | |
| 239 | def _model_endpoint(model_client: Any) -> str: |
| 240 | config = getattr(model_client, "config", None) |
| 241 | for key in ("openai_endpoint", "anthropic_endpoint", "openrouter_endpoint"): |
| 242 | value = getattr(config, key, "") |
| 243 | if value: |
| 244 | return str(value) |
| 245 | return "" |
| 246 | |
| 247 | |
| 248 | # --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected