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
The current implementation assumes that every message has the content field. However, this is an unsafe assumption, as there can also be messages with just a tool_calls array.
👟 Reproduction steps
Add an input message with tool_calls and no content
👍 Expected behavior
It should include tool_calls as a separate JSONified field.
👎 Actual Behavior with Screenshots
"gen_ai.prompt.1.role": "user",
"gen_ai.prompt.1.content": "Can you tell me the weather in San Francisco, CA?",
# This should be a tool call. Instead, it just references the previous message.
"gen_ai.prompt.2.role": "assistant",
"gen_ai.prompt.2.content": "Can you tell me the weather in San Francisco, CA?",
🤖 Python Version
3.11.6
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
I checked and didn't find similar issue
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Which component is this bug for?
OpenAI Instrumentation
📜 Description
The current implementation assumes that every message has the
content
field. However, this is an unsafe assumption, as there can also be messages with just atool_calls
array.👟 Reproduction steps
tool_calls
and nocontent
👍 Expected behavior
It should include
tool_calls
as a separate JSONified field.👎 Actual Behavior with Screenshots
🤖 Python Version
3.11.6
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: