Commit Graph
13 Commits
Author SHA1 Message Date
huchukato a32ec41975 Correct terminology: API Key -> HF token
- Updated all references to use 'HF token' instead of 'API Key'
- Clarified that token is only for private repositories
- Updated environment variable name to HUGGINGFACE_TOKEN
- More accurate documentation of token purpose
2026-02-21 02:53:21 +01:00
huchukato f0637a39e6 Add huggingface_hub CLI fallback for downloads
- Added subprocess CLI fallback when library fails
- Uses 'python -m huggingface_hub download' command
- Three-tier approach: library -> CLI -> manual
- More robust downloads with official tools
- CLI handles retries, resume, and progress automatically
2026-02-21 02:52:25 +01:00
huchukato e90c5a638a Fix missing method and URL field for downloads
- Added get_model_version_info() method for compatibility
- Added 'url' field to download_info for ChunkDownloader
- This should fix both the AttributeError and 'Invalid URL None' errors
- Downloads should now work properly with huggingface_hub fallback
2026-02-21 02:49:51 +01:00
huchukato 4592fb6540 Add huggingface_hub library support for better downloads
- Added huggingface_hub import with fallback
- Enhanced download_file() to use official library when available
- Better error handling and retry logic
- More robust than manual HTTP requests
- Falls back to manual download if library not available

This should solve many download issues we encountered!
2026-02-21 02:47:59 +01:00
huchukato be56c9cfff Add missing search_models_meili method for HuggingFace search
- Implemented Meilisearch API integration
- Added proper filters for types, base models, NSFW
- Added sorting options (Most Downloaded, etc.)
- Fixed search functionality that was not working
- Search should now work properly in the UI
2026-02-21 02:35:00 +01:00
huchukato 66e00264a0 Initial HuggingFace API implementation
- Converted CivitaiAPI to HuggingFaceAPI
- Updated all references from civitai to huggingface
- Renamed web files (CSS/JS)
- Implemented core HF API methods:
  * search_models()
  * get_model_info()
  * get_model_files()
  * download_file()
- Clean API structure for HuggingFace integration

Next: Update server routes and helpers for HF endpoints
2026-02-21 01:52:05 +01:00
MoonGoblin 2489c8565d Update search api 2025-08-09 13:22:24 +08:00
MoonGoblin c91d488875 Update bearer token 2025-06-10 23:37:52 +08:00
MoonGoblin b564a3e7eb New search url + token 2025-05-13 15:18:21 +08:00
MoonGoblin 0089081ee2 Revamp Search API
using the milliasearch multisearch api just like how it implemented in the website
2025-04-04 19:49:18 +07:00
MoonGoblin e3daea29f5 some technical debt 2025-04-02 00:54:01 +07:00
MoonGoblin a0c087c90c API redone 2025-04-01 19:43:57 +07:00
MoonGoblin e08f26af06 First commit 2025-04-01 15:02:49 +07:00