You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "PG1204 (via GitHub)" <gi...@apache.org> on 2026/08/01 02:38:42 UTC
[I] HuggingFace model browser: X-HF-Token support is dead code (frontend never sends it) [texera]
PG1204 opened a new issue, #7205:
URL: https://github.com/apache/texera/issues/7205
### Task Summary
`HuggingFaceModelResource` reads an `X-HF-Token` header (and its docstring says the frontend forwards it), but no frontend code sends it, so model/task browsing is always anonymous.
### Context
Private models never appear and anonymous HF rate limits always apply. Either the frontend should forward the user's token, or the backend token-handling is dead code. This needs a product decision.
### Proposed change
Decide direction:
- Forward: send `X-HF-Token` from the model-select component's `/huggingface/models` and `/tasks` calls.
- Remove: delete the `userToken` / `sanitizeToken` paths and the cache-bypass-on-token logic.
### Required test
Forward -> assert the header is sent; Remove -> update `HuggingFaceModelResourceSpec`.
### Related
Touches the same resource as #7204 (model-browser robustness).
### Task Type
- [x] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [ ] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] HuggingFace model browser: X-HF-Token support is dead code (frontend never sends it) [texera]
Posted by "PG1204 (via GitHub)" <gi...@apache.org>.
PG1204 commented on issue #7205:
URL: https://github.com/apache/texera/issues/7205#issuecomment-5149318790
/take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org