这是indexloc提供的服务,不要输入任何密码
Skip to content

Update HubApi tests to account for resolve-cache URLs #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Jul 11, 2025

The api endpoints may now return a resolve-cache URL:

curl -I "https://huggingface.co/enterprise-explorers/Llama-2-7b-chat-coreml/resolve/main/config.json"
...
location: /api/resolve-cache/models/enterprise-explorers/Llama-2-7b-chat-coreml/eaf97358a37d03fd48e5a87d15aff2e8423c1afb/config.json?%2Fenterprise-explorers%2FLlama-2-7b-chat-coreml%2Fresolve%2Fmain%2Fconfig.json=&etag=%22d6ceb92ce9e3c83ab146dc8e92a93517ac1cc66f%22
...

@pcuenca
Copy link
Member Author

pcuenca commented Jul 11, 2025

cc @ardaatahan @ZachNagengast in case this is relevant for caching/downloading/verification

@pcuenca pcuenca merged commit e5bf062 into main Jul 11, 2025
2 checks passed
@pcuenca pcuenca deleted the fix-hub-api-tests branch July 11, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant