Skip to content

Conversation

@Kosinkadink
Copy link
Collaborator

At its core, this PR is a super small slice of this one: #10045

A fast scan of model files occurs upon startup and calling the /object_info endpoint. No hashing happens at this point in time.

Only 3 http endpoints are added:

  • GET /api/assets
  • GET /api/assets/{{id:{UUID_RE}}}
  • GET /api/tags

Adds an assets database with tag support that fully reflects the work done in the previous assets PR, enabling more functionality to be added as needed without modifying database schema.

Adds an unused hashing function that uses blake3, has support for resuming hashing from midway into a file, and can accept either an absolute path as input or an open file reference.

Note: since the hashing is not enabled, requirements.txt is not updated to add blake3 as a dependency in this PR.

Adding tests would make sense. The ones in the original PR are very verbose and I have not translated them yet to be in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Core team dependency Core-Important

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants