fix(cookbook): discover macOS HuggingFace cache location (#5978) - #6306
Open
Spoofiecus wants to merge 1 commit into
Open
Spoofiecus wants to merge 1 commit into
Spoofiecus wants to merge 1 commit into
Conversation
Spoofiecus
force-pushed
the
p4-cookbook-5978
branch
from
September 15, 2026 12:36
204d022 to
ff38c3e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The cookbook local-cache scanner (
routes/cookbook_helpers.py,_cached_model_scan_script) only listed~/.cache/huggingface/hub(Linux) and never consultedhuggingface_hub, so on macOS models cached at the platform default~/Library/Caches/huggingface/hubwere invisible in the model picker.Target branch
dev, notmain. All PRs land indev;mainis curated by the maintainer at each release. If your PR is onmainby accident, click "Edit" on this PR and change the base.Linked Issue
Fixes #5978
Type of Change
Checklist
devdocker compose uporuvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.How to Test
cd '/home/user/Odysseus Project' && ./venv/bin/python -m pytest tests/test_cookbook_helpers.py -k 'cached or hf_cache or platform or 5978' -v-> 13 passed, 1 skipped (windows-only)./api/healthhealthy; original :7000 untouched.Runtime attestation
uvicorn app:app);/api/healthhealthy; original :7000 untouched.sys.platform == 'darwin'.test_run_focusdry-run space-in-path exact-match + 1xtest_opencode_setup_provider_aliases_resolvedrift. Not caused by this PR.Visual / UI changes
None - no
static/js, CSS, HTML, SVG, or DOM rendering changed.