Skip to content

auto-download model for library users #47

@dogancanbakir

Description

@dogancanbakir

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions