-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
questionFurther information is requestedFurther information is requestedstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Description
Right now, due to the logic in GenerateAnswerNode (used by SmartScraperGraph), JsonOutputParser is always added when llm_model is an instance of ChatOpenAI. As I am using models that may not always return valid JSON, I prefer to use StrOutputParser to handle the raw llm response content, before trying to parse JSON directly.
I could use JsonOutputParser too if there is way to add/perform error handling for invalid JSON.
dosubot
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requestedstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed