dit.New() currently errors with model.json not found if the file isn't on disk. Only the CLI auto-downloads. Library consumers (e.g. projectdiscovery/httpx#2495) end up reimplementing the same fetch.
Move the download fallback into the library so dit.New() lazily fetches model.json from Hugging Face to ~/.dit/ on first use.
dit.New()currently errors withmodel.json not foundif the file isn't on disk. Only the CLI auto-downloads. Library consumers (e.g. projectdiscovery/httpx#2495) end up reimplementing the same fetch.Move the download fallback into the library so
dit.New()lazily fetchesmodel.jsonfrom Hugging Face to~/.dit/on first use.