-
Notifications
You must be signed in to change notification settings - Fork 95
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
Issue when LLM generates invalid json in agentConvo #103
Comments
To reproduce the error - Start a conversation in "chat" mode with a custom prompt, and ask a question or two. Then, select "conversational agent" mode using the button on the left of the text input, and give any prompt that will generate multiple lines of output in the json. I have created a gist with the logs and chat history to reproduce the issue |
Also experiencing this very frequently for Google and Wikipedia plugins.
|
Any prompt that will get the conversational agent to make a list with newlines inside json strings will cause the error.
From logs:
LLM Response:
ellapsed: 22.495 sec.
Error parsing JSON SyntaxError: Bad control character in string literal in JSON at position 126
at JSON.parse ()
at parseResult (webpack-internal:///(api)/./agent/agentConvo.ts:156:23)
at executeReactAgent (webpack-internal:///(api)/./agent/agentConvo.ts:134:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handler (webpack-internal:///(api)/./pages/api/planningconv.ts:40:24)
Error: Error parsing JSON
at parseResult (webpack-internal:///(api)/./agent/agentConvo.ts:160:15)
at executeReactAgent (webpack-internal:///(api)/./agent/agentConvo.ts:134:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handler (webpack-internal:///(api)/./pages/api/planningconv.ts:40:24)
The text was updated successfully, but these errors were encountered: