text
🚀 I'm excited to announce that huggingface_hub's InferenceClient now supports OpenAI's Python client syntax! For developers integrating AI into their codebases, this means you can switch to open-source models with just three lines of code. Here's a quick example of how easy it is.
🚀 I'm excited to announce that huggingface_hub's InferenceClient now supports OpenAI's Python client syntax! For developers integrating AI into their codebases, this means you can switch to open-source models with just three lines of code. Here's a quick example of how easy it is.
new_line
new_line
text
Why use the InferenceClient?
Why use the InferenceClient?
new_line
text
🔄 Seamless transition: keep your existing code structure while leveraging LLMs hosted on the Hugging Face Hub.
🔄 Seamless transition: keep your existing code structure while leveraging LLMs hosted on the Hugging Face Hub.
new_line
text
🤗 Direct integration: easily launch a model to run inference using our Inference Endpoint service.
🤗 Direct integration: easily launch a model to run inference using our Inference Endpoint service.
new_line
text
🚀 Stay Updated: always be in sync with the latest Text-Generation-Inference (TGI) updates.
🚀 Stay Updated: always be in sync with the latest Text-Generation-Inference (TGI) updates.
new_line
new_line
text
More details in 
More details in 
link
https://huggingface.co/docs/huggingface_hub/main/en/guides/inference#openai-compatibility
https://huggingface.co/docs/huggingface_hub/main/en/guides/inference#openai-compatibility
🚀 I'm excited to announce that huggingface_hub's InferenceClient now supports OpenAI's Python client syntax! For developers integrating AI into their codebases, this means you can switch to open-source models with just three lines of code. Here's a quick example of how easy it is.

Why use the InferenceClient?
🔄 Seamless transition: keep your existing code structure while leveraging LLMs hosted on the Hugging Face Hub.
🤗 Direct integration: easily launch a model to run inference using our Inference Endpoint service.
🚀 Stay Updated: always be in sync with the latest Text-Generation-Inference (TGI) updates.

More details in https://huggingface.co/docs/huggingface_hub/main/en/guides/inference#openai-compatibility
❤️
not-lain Crudepioneer kevindragan osanseviero seyf1elislam Svngoku Daemontatox ayush-thakur02 juhoinkinen
🚀
not-lain GPT007 Taylor658
🔥
not-lain
https://cdn-avatars.huggingface.co/v1/production/uploads/64b6afa756f1af7b46f1b513/f6BYi1OjTTsq0FsX4TDOI.png
Alberto Ferrer
BarraHome
user
https://cdn-avatars.huggingface.co/v1/production/uploads/1656147940537-620630b603825909dcbeba35.jpeg
Aaron C Wacker
awacke1
user
https://cdn-avatars.huggingface.co/v1/production/uploads/1659336880158-6273f303f6d63a28483fde12.png
Lucain Pouget
Wauplin
user