(model_id: str)
| 29 | |
| 30 | |
| 31 | def _provider_and_core(model_id: str) -> tuple[str, str]: |
| 32 | value = str(model_id or "").strip().lower() |
| 33 | if "/" in value: |
| 34 | provider, core = value.split("/", 1) |
| 35 | return provider, core |
| 36 | return "", value |
| 37 | |
| 38 | |
| 39 | def _contains_any(text: str, needles: tuple[str, ...]) -> bool: |
no outgoing calls
no test coverage detected