PG1204 opened a new issue, #7196:
URL: https://github.com/apache/texera/issues/7196

   ### What happened?
   
   `_HF_MODEL_ID_PATTERN` claims (in its comment) to reject `..` segments, but 
`[A-Za-z0-9._-]+` matches `..`, so `org/..` passes validation and can 
path-traverse within the HF API URL. Conversely, the mandatory `/` rejects 
legacy single-segment Hub IDs like `gpt2` or `bert-base-uncased`, which are 
still valid models.
   
   File: `.../huggingFace/codegen/HuggingFaceCodegenBase.scala` 
(`_HF_MODEL_ID_PATTERN`).
   
   
   ### How to reproduce?
   
   Set the model to `gpt2` -> operator raises "Invalid Hugging Face model ID". 
Set it to `org/..` → passes validation.
   
   ### 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]

Reply via email to