Find answers from the community

Updated 3 months ago

Hi all how do I pass an api key to

Hi all, how do I pass an api key to access hugging face private repo? I cannot find a way to pass it. For open ai it is an enviroment variable.
s
L
3 comments
found this @Logan M but I do not get the answer (broken links)
I'm not sure which API key you need here πŸ€”

The only time i've needed an API key for huggingface was to connect to some hosted model on huggingface. Langchain has a wrapper for this that you can use in llama-index, as linked in that github issue

https://python.langchain.com/docs/integrations/llms/huggingface_hub
Add a reply
Sign up and join the conversation on Discord