why
#1
by
YaserDS-777
- opened
client = OpenAI(
base_url="https://api-inference.huggingface.co/v1/",
api_key=TOKEN,
)
i cant understand what is use of above object? is it necessary add it
HI! You can check out reference code here: https://github.com/huggingface/huggingface-llama-recipes/blob/main/inference-api.ipynb
My guess is that this piece of code is there because OpenAI client is more easy to use than the HF Client itself for Llama 3.1 :)