Andrea Cosentino created CAMEL-24527:
----------------------------------------

             Summary: camel-huggingface: authToken/oauthProfile are honored 
only by the CHAT task
                 Key: CAMEL-24527
                 URL: https://issues.apache.org/jira/browse/CAMEL-24527
             Project: Camel
          Issue Type: Bug
          Components: camel-ai
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino
             Fix For: 4.23.0


HuggingFaceConfiguration.authToken (and the OAuth-resolved token) is read only 
by ChatPredictor; the other nine task predictors' getPythonScript() never pass 
a token to the pipeline. A user who sets authToken (documented "HF API token 
for private models") or oauthProfile for a gated/private model on 
text-generation, summarization, classification, question-answering, zero-shot, 
sentence-embeddings, text-to-image, ASR or TTS silently downloads 
unauthenticated and fails (401/gated) at model load.

Fix: thread the token into every task's .py, or set HF_TOKEN on the DJL 
Criteria in AbstractTaskPredictor.loadModel so all tasks inherit it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to