PG1204 opened a new issue, #7194: URL: https://github.com/apache/texera/issues/7194
### What happened? ### What happened? In `_post_with_fallback`, any provider returning 401 immediately returns with "Invalid HF API token", even though one provider can 401 (e.g. missing provider-specific permission) while others would succeed with the same token. The token may be perfectly valid for the cheapest working provider. File: `.../huggingFace/codegen/HuggingFaceCodegenBase.scala` (`_post_with_fallback`, the `if resp.status_code == 401` early return). Fix: only surface the 401 if every provider 401s. ### How to reproduce? Use a model where the first-tried provider rejects the token (401) but another provider serves it. The operator reports an invalid token instead of succeeding on the working provider. ### Version/Branch 1.3.0-incubating-SNAPSHOT (main) ### Commit Hash (Optional) _No response_ ### What browsers are you seeing the problem on? _No response_ ### Relevant log output ```shell ``` -- 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]
