mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Update docs/source/messages_api.md
Co-authored-by: Philipp Schmid <32632186+philschmid@users.noreply.github.com>
This commit is contained in:
parent
02912ad273
commit
58ddedec16
@ -92,7 +92,8 @@ print(chat_completion)
|
||||
|
||||
## Hugging Face Inference Endpoints
|
||||
|
||||
TGI is now integrated with [Inference Endpoints](https://huggingface.co/inference-endpoints/dedicated) and can be easily accessed with only a few lines of code. Here's an example of how to use IE with TGI using OpenAI's Python client library:
|
||||
The Messages API is integrated with [Inference Endpoints](https://huggingface.co/inference-endpoints/dedicated).
|
||||
Every endpoint that uses "Text Generation Inference" with an LLM, which has a chat template can now be used. Below is an example of how to use IE with TGI using OpenAI's Python client library:
|
||||
|
||||
> **Note:** Make sure to replace `base_url` with your endpoint URL and to include `v1/` at the end of the URL. The `api_key` should be replaced with your Hugging Face API key.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user