haystack/releasenotes/notes/hfapigenerator-3b1c353a4e8e4c55.yaml
Stefano Fiorucci 1d083861ff
feat: HuggingFaceAPIGenerator (#7464)
* draft

* docstrings and more tests

* deprecation; reno

* pydoc config

* better error messages

* rm unneeded else

* make params mandatory

* Apply suggestions from code review

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>

* document enum

* Update haystack/utils/hf.py

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>

* fix test

---------

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
2024-04-05 18:48:13 +02:00

14 lines
480 B
YAML

---
features:
- |
Introduce `HuggingFaceAPIGenerator`. This text-generation component supports different Hugging Face APIs:
- free Serverless Inference API
- paid Inference Endpoints
- self-hosted Text Generation Inference.
This generator will replace the `HuggingFaceTGIGenerator` in the future.
deprecations:
- |
Deprecate `HuggingFaceTGIGenerator`. This component will be removed in Haystack 2.3.0.
Use `HuggingFaceAPIGenerator` instead.