Replies: 1 comment 1 reply
-
|
Thanks for reporting @sanin17. Moving this to issues. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on a project using browser-use with Azure Open AI (via langchain library in python) to do some automation. I'm using a self-hosted Phoenix to trace and improve the prompts. I can see the traces just fine, but when I click on the "Playground" button to work with the prompt, I get the error "Unable to parse span input messages, expected messages which include a role and content".
A little more info - the only way I am able to see the raw JSON is to click the "Add to Dataset" button which shows the json input. In it, I see some of the json objects in the messages array to only contain role, but no content. An example:
{ "role" : "assistant" }, { "role": "tool" }, {"role" : "user", "content": "Action Result: Scrolled to Text" }Because some of the roles don't have a "content", it cannot parse it into the playground. My Gemini based research shows that Langchain Azure Open AI library will omit the "content" field if the string is empty, but it's still valid for there to be a role without content because the assistant may trigger a tool, like the example above. (The above example is just a portion of the messages array, there's tools array that follows as well)
Is this a known issue on your end? Somewhere the standard is not being adhered to and I'm wondering if Phoenix could be a bit more resilient here to replay a trace if this situation exists.
Beta Was this translation helpful? Give feedback.
All reactions