Custom exception for when Ollama model is not found
| 15 | logger = logging.getLogger(__name__) |
| 16 | |
| 17 | class OllamaModelNotFoundError(Exception): |
| 18 | """Custom exception for when Ollama model is not found""" |
| 19 | pass |
| 20 | |
| 21 | def check_ollama_model_exists(model_name: str, ollama_host: str = None) -> bool: |
| 22 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected