Parsing error occurred when using withStructuredOutput
method with nested triple backticks
#7752
Open
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
OutputParserException [Error]: Failed to parse. Text: "{"locale":"ko-KR","response":"샘플 자바스크립트 코드\n\n
javascript\nconst 변수 = 123;\nconsole.log(변수);\n
"}". Error: SyntaxError: Unexpected token j in JSON at position 0Troubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE/
llmOutput: '{"locale":"ko-KR","response":"샘플 자바스크립트 코드\n\n
javascript\\nconst variable = 123;\\nconsole.log(variable);\\n
"}',observation: undefined,
sendToLLM: false,
lc_error_code: 'OUTPUT_PARSING_FAILURE'
}
Description
Background
withStructuredOutput
for this.Problem
withStructuredOutput
.Question
withStructuredOutput
.withStructuredOutput
to handle this issue.System Info
pnpm version
platform
mac, linux
node version
package version
The text was updated successfully, but these errors were encountered: