Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatMessage: expose from_openai_dict and to_openai_dict utility functions #8638

Open
anakin87 opened this issue Dec 13, 2024 · 0 comments · May be fixed by #8670
Open

ChatMessage: expose from_openai_dict and to_openai_dict utility functions #8638

anakin87 opened this issue Dec 13, 2024 · 0 comments · May be fixed by #8670
Assignees
Labels
P2 Medium priority, add to the next sprint if no P1 available

Comments

@anakin87
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium priority, add to the next sprint if no P1 available
Projects
None yet
2 participants