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
Describe the bug
When having a conversation with the trump bot, I got this error.
Error parsing JSON: SyntaxError: Expected ',' or '}' after property value in JSON at position
at JSON.parse ()
at parseJsonArrayFromText ()
The response is an array with multiple objects:
[
{
"claim": "Under Trump's leadership, America will become the leader in crypto.",
"type": "opinion",
"in_bio": false,
"already_known": false
},
{
"claim": "Trump is always ready to make America great again, even in the digital world.",
"type": "opinion",
"in_bio": false,
"already_known": false
},
{
"claim": "America is dominating the crypto space under Trump's leadership.",
"type": "opinion",
"in_bio": false,
"already_known": false
},
]
To Reproduce
Using the trump character, use OpenAI model and chat for a while.
Expected behavior
The parsing function should be robust enough to handle different responses from OpenAI.
It should be error free
The text was updated successfully, but these errors were encountered:
Hello @dantgw! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!
Describe the bug
When having a conversation with the trump bot, I got this error.
Error parsing JSON: SyntaxError: Expected ',' or '}' after property value in JSON at position
at JSON.parse ()
at parseJsonArrayFromText ()
The response is an array with multiple objects:
To Reproduce
Using the trump character, use OpenAI model and chat for a while.
Expected behavior
The parsing function should be robust enough to handle different responses from OpenAI.
It should be error free
The text was updated successfully, but these errors were encountered: