Is lets callers match with errors.Is(err, ErrAmbiguousImport) without caring about the typed shape.
(target error)
| 55 | // Is lets callers match with errors.Is(err, ErrAmbiguousImport) without caring |
| 56 | // about the typed shape. |
| 57 | func (e *AmbiguousImportError) Is(target error) bool { |
| 58 | return target == ErrAmbiguousImport |
| 59 | } |
| 60 | |
| 61 | // ambiguousModalities enumerates the HF pipeline_tag values that are narrow |
| 62 | // enough to be confident we should surface ambiguity instead of a generic |
no outgoing calls