huggingface / huggingface_hub

The official Python client for the Huggingface Hub.
https://huggingface.co/docs/huggingface_hub
Apache License 2.0
2.02k stars 531 forks source link

Send model_id in ChatCompletion request #2302

Closed Wauplin closed 4 months ago

Wauplin commented 4 months ago

This PR adds a model_id parameter to the InferenceClient.chat_completion method to be sent in the request payload. Solves https://github.com/huggingface/huggingface_hub/issues/2293 cc @anubhavrana

HuggingFaceDocBuilderDev commented 4 months ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Wauplin commented 4 months ago

Thanks for the review! @LysandreJik