ChatMessage
: expose from_openai_dict
and to_openai_dict
utility functions
#8638
Labels
P2
Medium priority, add to the next sprint if no P1 available
This was initially discussed in https://github.com/deepset-ai/haystack-private/issues/95.
OpenAI dictionary format is a standard, and some users would benefit from exposing conversion functions.
We should already have the code to do that, buried in the
OpenAIChatGenerator
implementation.The text was updated successfully, but these errors were encountered: