Commit f7ec32e
committed
fix: strip markdown code blocks from AI responses
Removes markdown code block wrappers that may surround AI-generated content before parsing. This prevents deserialization errors when the AI model returns valid JSON wrapped in triple backticks with language identifiers.
Extracts the actual content from patterns like ```json\n{...}\n``` to ensure clean parsing of the response data.1 parent fc49766 commit f7ec32e
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
0 commit comments