[Feature] Standardize Hugging Face Token syntax
Priority
P4-Low
OS type
N/A
Hardware type
N/A
Running nodes
N/A
Description
Across OPEA samples and documentation, there is a mix of syntax used to define a Hugging Face token. There is HF_TOKEN, but also HFTOKEN, HUGGING_FACE_HUB_TOKEN and HUGGINGFACEHUB_API_TOKEN all doing effectively the same thing.
It would be preferable to standardize on one single way across OPEA, so that a user is not regularly having to reset and juggle variances in environment variable declarations, and to promote a sense of professionalism, consistency, and project maturity.
Thanks!
@stevenfollis
Good suggestions.
Hugging face changed the HUGGINGFACEHUB_API_TOKEN to HF_TOKEN months ago. So there are mixed environment variable declarations.
Not all components sued the recent version, so there are different settings in code and use setting. At least, we can union the environment variable set by user.