diff --git a/aider/website/_posts/2024-08-14-code-in-json.md b/aider/website/_posts/2024-08-14-code-in-json.md index f0e9a2243..69553ad52 100644 --- a/aider/website/_posts/2024-08-14-code-in-json.md +++ b/aider/website/_posts/2024-08-14-code-in-json.md @@ -152,6 +152,8 @@ function createStripedCanvas(isStrict) { } +> Figure 1: Benchmark scores of models using either plain markdown text or JSON to return code. +> Models produce better code when they return it as plain markdown text, as compared to wrapping it in JSON for a tool function call. ## Abstract @@ -421,6 +423,9 @@ document.addEventListener('DOMContentLoaded', function () { }); +> Figure 2: Number of `SyntaxError` and `IndentationError` errors found in model generated code. +> Models tend to make more syntactic errors when asked to wrap code in JSON. + ## Conclusions