haystack/releasenotes/notes/deprecate-method-to-openai-format-fb2538cf3f610d2a.yaml
Stefano Fiorucci e17d0c4192
chore: deprecate to_openai_format and create similar utility functions (#8146)
* deprecate and add new specific functions

* reno
2024-08-02 16:47:17 +02:00

8 lines
302 B
YAML

---
deprecations:
- |
Deprecate the method `to_openai_format` of the `ChatMessage` dataclass.
This method was never intended to be public and was only used internally.
Now, each Chat Generator will know internally how to convert the messages to
the format of their specific provider.