You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
haystack_integrations\tracing\langfuse\tracer.py", line 54, in set_content_tag
messages = [m.to_openai_format() for m in value["messages"]]
^^^^^^^^^^^^^^^^^^
AttributeError: 'ChatMessage' object has no attribute 'to_openai_format'
Deprecated to_openai_format() is causing issues with tracer.py.
Need to update tracer.py from deprecated function to the new function
Deprecated function:
m.to_openai_format()
Update to:
from haystack.components.generators.openai_utils import _convert_message_to_openai_format
_convert_message_to_openai_format(m)
The text was updated successfully, but these errors were encountered:
JunK4i
changed the title
Deprecated to_openai_format() is causing issues with tracer.py
AttributeError: 'ChatMessage' object has no attribute 'to_openai_format'
Sep 18, 2024
haystack_integrations\tracing\langfuse\tracer.py", line 54, in set_content_tag
messages = [m.to_openai_format() for m in value["messages"]]
^^^^^^^^^^^^^^^^^^
AttributeError: 'ChatMessage' object has no attribute 'to_openai_format'
Deprecated to_openai_format() is causing issues with tracer.py.
Need to update tracer.py from deprecated function to the new function
Deprecated function:
m.to_openai_format()
Update to:
from haystack.components.generators.openai_utils import _convert_message_to_openai_format
_convert_message_to_openai_format(m)
The text was updated successfully, but these errors were encountered: