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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to